Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Thursday, March 29, 2012

about activeX script error in ssis package in SQL server 2005

when i run activex Script it's shows this error

[ActiveX Script Task] Error: Retrieving the file name for a component failed with error code 0x001B6438

Moving from .NET Framework Data Access and Storage...|||So is there a solution to this?
I've had a similar error when using the "scripting.filesystemobject" from within a script task in ssis.

about activeX script error in ssis package in SQL server 2005

when i run activex Script it's shows this error

[ActiveX Script Task] Error: Retrieving the file name for a component failed with error code 0x001B6438

Moving from .NET Framework Data Access and Storage...|||So is there a solution to this?
I've had a similar error when using the "scripting.filesystemobject" from within a script task in ssis.

Tuesday, March 27, 2012

About @@ERROR in SQL 2005 online book

Here

http://msdn2.microsoft.com/en-us/library/ms190193.aspx

it is explained that @.@.ERROR will be cleared and reset.

But here:

http://msdn2.microsoft.com/en-us/library/ms190248.aspx

http://msdn2.microsoft.com/en-us/library/ms187009.aspx

we still see:

IF (@.@.ERROR <> 0)

SET @.ErrorSave = @.@.ERROR

Chester

Is there a question here?

I assume you are asking if @.@.Error is reset during the IF statement. If you read the first link, it says NO.

http://msdn2.microsoft.com/en-us/library/ms190193.aspx

@.@.Error is reset by the next TSQL command. IF is a conditional statement and does not reset the flag.|||

Hi Chester,

The second example is indeed incorrect as @.@.error will be reset to 0 by the IF statement. The local @.ErrorSave should be set after each statement and them compared:

declare @.a int, @.ErrorSave int;

set @.a = (1 / 0); -- divide by zero

set @.ErrorSave = @.@.ERROR;

if (@.ErrorSave <> 0)
begin
select @.ErrorSave AS [ErrorNumber]
end

Cheers,
Rob

|||

Hi Tom,

That's sort of incorrect - the IF will return TRUE when evaluating the statement "IF (@.@.EROR <> 0)", however @.@.ERROR is then reset by the successful completion of the evaluation:

declare @.a int, @.ErrorSave int;

set @.a = (1 / 0); -- divide by zero

if (@.@.error <> 0)
begin
select @.@.error AS [ErrorNumber] -- will return 0
end

Cheers,
Rob

|||

Here

http://msdn2.microsoft.com/en-us/library/ms190193.aspx

It says exactly:

Conditional statements, such as the IF statement, reset @.@.ERROR. If you reference @.@.ERROR in an IF statement, references to @.@.ERROR in the IF or ELSE blocks will not retrieve the @.@.ERROR information. In the following example, @.@.ERROR is reset by IF and does not return the error number when referenced in the PRINT statement.

|||

Thanks, Robert.

Actually I found this problem in one of our partner's application that was wriiten by a local Robert.

When I checked the online book, it was misleading at first .

Chester

|||Yep, you are right, my mistake.

@.@.Error is reset by the IF. The best thing to do is: SET @.errorcode = @.@.ERROR right after the command.

The @.@.Error traps so little errors, it is almost worthless. Most of the time the error in the command just terminates the stored proc and never gets to the error trap anyway, unless you use Try/Catch.

About @@ERROR in SQL 2005 online book

Here

http://msdn2.microsoft.com/en-us/library/ms190193.aspx

it is explained that @.@.ERROR will be cleared and reset.

But here:

http://msdn2.microsoft.com/en-us/library/ms190248.aspx

http://msdn2.microsoft.com/en-us/library/ms187009.aspx

we still see:

IF (@.@.ERROR <> 0)

SET @.ErrorSave = @.@.ERROR

Chester

Is there a question here?

I assume you are asking if @.@.Error is reset during the IF statement. If you read the first link, it says NO.

http://msdn2.microsoft.com/en-us/library/ms190193.aspx

@.@.Error is reset by the next TSQL command. IF is a conditional statement and does not reset the flag.|||

Hi Chester,

The second example is indeed incorrect as @.@.error will be reset to 0 by the IF statement. The local @.ErrorSave should be set after each statement and them compared:

declare @.a int, @.ErrorSave int;

set @.a = (1 / 0); -- divide by zero

set @.ErrorSave = @.@.ERROR;

if (@.ErrorSave <> 0)
begin
select @.ErrorSave AS [ErrorNumber]
end

Cheers,
Rob

|||

Hi Tom,

That's sort of incorrect - the IF will return TRUE when evaluating the statement "IF (@.@.EROR <> 0)", however @.@.ERROR is then reset by the successful completion of the evaluation:

declare @.a int, @.ErrorSave int;

set @.a = (1 / 0); -- divide by zero

if (@.@.error <> 0)
begin
select @.@.error AS [ErrorNumber] -- will return 0
end

Cheers,
Rob

|||

Here

http://msdn2.microsoft.com/en-us/library/ms190193.aspx

It says exactly:

Conditional statements, such as the IF statement, reset @.@.ERROR. If you reference @.@.ERROR in an IF statement, references to @.@.ERROR in the IF or ELSE blocks will not retrieve the @.@.ERROR information. In the following example, @.@.ERROR is reset by IF and does not return the error number when referenced in the PRINT statement.

|||

Thanks, Robert.

Actually I found this problem in one of our partner's application that was wriiten by a local Robert.

When I checked the online book, it was misleading at first .

Chester

|||Yep, you are right, my mistake.

@.@.Error is reset by the IF. The best thing to do is: SET @.errorcode = @.@.ERROR right after the command.

The @.@.Error traps so little errors, it is almost worthless. Most of the time the error in the command just terminates the stored proc and never gets to the error trap anyway, unless you use Try/Catch.sql

About @@ERROR

Hi,
Can I use @.@.ERROR global variable to check the error returned by SQL DDL
commands.Are you saying that it doesn't work? Can you elaborate on your question? Som
e error will terminate
the batch. I suggest you check the two articles on error handling here: http://www
.sommarskog.se/
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Shri.DBA" <ShriDBA@.discussions.microsoft.com> wrote in message
news:4CC53AC2-1747-4C8F-851B-2D057A2487E7@.microsoft.com...
> Hi,
> Can I use @.@.ERROR global variable to check the error returned by SQL DDL
> commands.
>|||IN addition to Tibor's comments, and you will find included in Erlands
articles.
Yes you can ( and should) use @.@.error to check DDL... You might also check
for existence of the object or column, etc..
The problem is that some errors cause the entire batch, or maybe just the
statement to abort, in which case, the rest of your code wouldn't run or
@.@.error might not be set appropriately..
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Shri.DBA" <ShriDBA@.discussions.microsoft.com> wrote in message
news:4CC53AC2-1747-4C8F-851B-2D057A2487E7@.microsoft.com...
> Hi,
> Can I use @.@.ERROR global variable to check the error returned by SQL DDL
> commands.
>

About @@ERROR

Hi,
Can I use @.@.ERROR global variable to check the error returned by SQL DDL
commands.
Are you saying that it doesn't work? Can you elaborate on your question? Some error will terminate
the batch. I suggest you check the two articles on error handling here: http://www.sommarskog.se/
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Shri.DBA" <ShriDBA@.discussions.microsoft.com> wrote in message
news:4CC53AC2-1747-4C8F-851B-2D057A2487E7@.microsoft.com...
> Hi,
> Can I use @.@.ERROR global variable to check the error returned by SQL DDL
> commands.
>
|||IN addition to Tibor's comments, and you will find included in Erlands
articles.
Yes you can ( and should) use @.@.error to check DDL... You might also check
for existence of the object or column, etc..
The problem is that some errors cause the entire batch, or maybe just the
statement to abort, in which case, the rest of your code wouldn't run or
@.@.error might not be set appropriately..
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Shri.DBA" <ShriDBA@.discussions.microsoft.com> wrote in message
news:4CC53AC2-1747-4C8F-851B-2D057A2487E7@.microsoft.com...
> Hi,
> Can I use @.@.ERROR global variable to check the error returned by SQL DDL
> commands.
>

About @@ERROR

Hi,
Can I use @.@.ERROR global variable to check the error returned by SQL DDL
commands.Are you saying that it doesn't work? Can you elaborate on your question? Some error will terminate
the batch. I suggest you check the two articles on error handling here: http://www.sommarskog.se/
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Shri.DBA" <ShriDBA@.discussions.microsoft.com> wrote in message
news:4CC53AC2-1747-4C8F-851B-2D057A2487E7@.microsoft.com...
> Hi,
> Can I use @.@.ERROR global variable to check the error returned by SQL DDL
> commands.
>|||IN addition to Tibor's comments, and you will find included in Erlands
articles.
Yes you can ( and should) use @.@.error to check DDL... You might also check
for existence of the object or column, etc..
The problem is that some errors cause the entire batch, or maybe just the
statement to abort, in which case, the rest of your code wouldn't run or
@.@.error might not be set appropriately..
Wayne Snyder, MCDBA, SQL Server MVP
Mariner, Charlotte, NC
www.mariner-usa.com
(Please respond only to the newsgroups.)
I support the Professional Association of SQL Server (PASS) and it's
community of SQL Server professionals.
www.sqlpass.org
"Shri.DBA" <ShriDBA@.discussions.microsoft.com> wrote in message
news:4CC53AC2-1747-4C8F-851B-2D057A2487E7@.microsoft.com...
> Hi,
> Can I use @.@.ERROR global variable to check the error returned by SQL DDL
> commands.
>

ABORT_XACT

Hi!
One of db_batch processes that was running localy on the server, failed on
our production MSSQL server, without any error neither in sql server errorlog
or job log. Using lumigent I was able to extract following information about
failed transaction:
2005-07-27
01:27:37.120|0000:004bceca|ABORT_XACT|NULL|.|.|.|0 |64|0|0|0|0000141b:00000a52:041c|user_transaction|
Server is MSSQL2000 with SP3a on W2000.
What might be the reason for this failure?
Thanks
I would try running profiler and capture all errors and warnings and
recreate. What you supplied is not much info. You may need to filter on the
dbid of the database you are having problems with.
"kimi" wrote:

> Hi!
> One of db_batch processes that was running localy on the server, failed on
> our production MSSQL server, without any error neither in sql server errorlog
> or job log. Using lumigent I was able to extract following information about
> failed transaction:
> 2005-07-27
> 01:27:37.120|0000:004bceca|ABORT_XACT|NULL|.|.|.|0 |64|0|0|0|0000141b:00000a52:041c|user_transaction|
> Server is MSSQL2000 with SP3a on W2000.
> What might be the reason for this failure?
> Thanks
sql

ABORT_XACT

Hi!
One of db_batch processes that was running localy on the server, failed on
our production MSSQL server, without any error neither in sql server errorlo
g
or job log. Using lumigent I was able to extract following information about
failed transaction:
2005-07-27
01:27:37.120|0000:004bceca|ABORT_XACT|NULL|.|.|.|0|64|0|0|0|0000141b:00000a5
2:041c|user_transaction|
Server is MSSQL2000 with SP3a on W2000.
What might be the reason for this failure?
ThanksI would try running profiler and capture all errors and warnings and
recreate. What you supplied is not much info. You may need to filter on the
dbid of the database you are having problems with.
"kimi" wrote:

> Hi!
> One of db_batch processes that was running localy on the server, failed on
> our production MSSQL server, without any error neither in sql server error
log
> or job log. Using lumigent I was able to extract following information abo
ut
> failed transaction:
> 2005-07-27
> 01:27:37.120|0000:004bceca|ABORT_XACT|NULL|.|.|.|0|64|0|0|0|0000141b:00000
a52:041c|user_transaction|
> Server is MSSQL2000 with SP3a on W2000.
> What might be the reason for this failure?
> Thanks

ABORT_XACT

Hi!
One of db_batch processes that was running localy on the server, failed on
our production MSSQL server, without any error neither in sql server errorlog
or job log. Using lumigent I was able to extract following information about
failed transaction:
2005-07-27
01:27:37.120|0000:004bceca|ABORT_XACT|NULL|.|.|.|0|64|0|0|0|0000141b:00000a52:041c|user_transaction|
Server is MSSQL2000 with SP3a on W2000.
What might be the reason for this failure?
ThanksI would try running profiler and capture all errors and warnings and
recreate. What you supplied is not much info. You may need to filter on the
dbid of the database you are having problems with.
"kimi" wrote:
> Hi!
> One of db_batch processes that was running localy on the server, failed on
> our production MSSQL server, without any error neither in sql server errorlog
> or job log. Using lumigent I was able to extract following information about
> failed transaction:
> 2005-07-27
> 01:27:37.120|0000:004bceca|ABORT_XACT|NULL|.|.|.|0|64|0|0|0|0000141b:00000a52:041c|user_transaction|
> Server is MSSQL2000 with SP3a on W2000.
> What might be the reason for this failure?
> Thanks

Abnormal user connection increased on SQL server

The error which we are facing these days is related to the abnormal
performance of SQL server, and sometimes also got the error ‘SQL Run-time
error 2147217911(80040e09)’ sometimes on the client ends.
As per our detailed observation it is observed that our SQL server database
response sometimes get dead slow and that is why all the related application
and website responses gets slow as well.
This delay of responses is not always but rarely and the unusual things
noticed are that user connection on the SQL server and on our web server
increases dynamically, which really seems to be faking not actual. And when
these user connections drops all the SQL related activities are back to
normal. Just to add more we are using windows 2003 server enterprise edition
of 64bit and SQL server 2000 enterprise edition of 64bit as well.”
Memory utilisation is also increased i.e. used more than normal.
"JS" wrote:

> The error which we are facing these days is related to the abnormal
> performance of SQL server, and sometimes also got the error ‘SQL Run-time
> error 2147217911(80040e09)’ sometimes on the client ends.
> As per our detailed observation it is observed that our SQL server database
> response sometimes get dead slow and that is why all the related application
> and website responses gets slow as well.
> This delay of responses is not always but rarely and the unusual things
> noticed are that user connection on the SQL server and on our web server
> increases dynamically, which really seems to be faking not actual. And when
> these user connections drops all the SQL related activities are back to
> normal. Just to add more we are using windows 2003 server enterprise edition
> of 64bit and SQL server 2000 enterprise edition of 64bit as well.”
>
>
>

Abnormal user connection increased on SQL server

The error which we are facing these days is related to the abnormal
performance of SQL server, and sometimes also got the error ‘SQL Run-time
error 2147217911(80040e09)’ sometimes on the client ends.
As per our detailed observation it is observed that our SQL server database
response sometimes get dead slow and that is why all the related application
and website responses gets slow as well.
This delay of responses is not always but rarely and the unusual things
noticed are that user connection on the SQL server and on our web server
increases dynamically, which really seems to be faking not actual. And when
these user connections drops all the SQL related activities are back to
normal. Just to add more we are using windows 2003 server enterprise edition
of 64bit and SQL server 2000 enterprise edition of 64bit as well.”Memory utilisation is also increased i.e. used more than normal.
"JS" wrote:

> The error which we are facing these days is related to the abnormal
> performance of SQL server, and sometimes also got the error ‘SQL Run-tim
e
> error 2147217911(80040e09)’ sometimes on the client ends.
> As per our detailed observation it is observed that our SQL server databas
e
> response sometimes get dead slow and that is why all the related applicati
on
> and website responses gets slow as well.
> This delay of responses is not always but rarely and the unusual things
> noticed are that user connection on the SQL server and on our web server
> increases dynamically, which really seems to be faking not actual. And whe
n
> these user connections drops all the SQL related activities are back to
> normal. Just to add more we are using windows 2003 server enterprise editi
on
> of 64bit and SQL server 2000 enterprise edition of 64bit as well.”
>
>
>

Abnormal user connection increased on SQL server

The error which we are facing these days is related to the abnormal
performance of SQL server, and sometimes also got the error â'SQL Run-time
error 2147217911(80040e09)â' sometimes on the client ends.
As per our detailed observation it is observed that our SQL server database
response sometimes get dead slow and that is why all the related application
and website responses gets slow as well.
This delay of responses is not always but rarely and the unusual things
noticed are that user connection on the SQL server and on our web server
increases dynamically, which really seems to be faking not actual. And when
these user connections drops all the SQL related activities are back to
normal. Just to add more we are using windows 2003 server enterprise edition
of 64bit and SQL server 2000 enterprise edition of 64bit as well.â'Memory utilisation is also increased i.e. used more than normal.
"JS" wrote:
> The error which we are facing these days is related to the abnormal
> performance of SQL server, and sometimes also got the error â'SQL Run-time
> error 2147217911(80040e09)â' sometimes on the client ends.
> As per our detailed observation it is observed that our SQL server database
> response sometimes get dead slow and that is why all the related application
> and website responses gets slow as well.
> This delay of responses is not always but rarely and the unusual things
> noticed are that user connection on the SQL server and on our web server
> increases dynamically, which really seems to be faking not actual. And when
> these user connections drops all the SQL related activities are back to
> normal. Just to add more we are using windows 2003 server enterprise edition
> of 64bit and SQL server 2000 enterprise edition of 64bit as well.â'
>
>
>sql

Able to connect via local host but not server

I have a page that connects to SQL server. It works fine when running in local host but when I publish to the server, I get the following:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Any ideas on where to start?

Thanks,

Mark

Try these two blog posts:

http://blogs.msdn.com/sql_protocols/archive/2005/10/22/483684.aspx

http://blogs.msdn.com/sql_protocols/archive/2005/10/29/486861.aspx

Sunday, March 25, 2012

Abend info in SQL Log

Is there a way to get application/sql query abends to appear in the SQL error
log?
For example, we have an application that executes a SQL query. The
application will abend because the query failed (invalid object, Foreign key
conflict ...). Can we change a setting in SQL to see these errors in the
error log?Hi
No. If you need to see failed queries, you need to run SQL Server Profiler.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"vtcs212" <vtcs212@.discussions.microsoft.com> wrote in message
news:72A431E7-5581-435D-A6C9-3253A30692BB@.microsoft.com...
> Is there a way to get application/sql query abends to appear in the SQL
> error
> log?
> For example, we have an application that executes a SQL query. The
> application will abend because the query failed (invalid object, Foreign
> key
> conflict ...). Can we change a setting in SQL to see these errors in the
> error log?

aarich event error when backup is run on big DB

Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......=C0
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?Friendly wrote:
> Hi all...
> Let me first explain why I posted this here... I have run this error
> past Microsoft and Gigabyte, and both cant help me, so now I'm turning
> to you guys :-) What happens is that I got a job set up on SQL
> Enterprise 2000 that runs a backup of one of the several DB's on the
> server. But in 90% of the times that the backup run, this event log
> starts appearing, and consistently repeats, until the pc eventually
> freezes up and I have to do a hard restart. I'm starting to think that
> it has something to do with the DB size... its about 5+ gig and also
> the backup. This has only recently started to happen, and I'm also
> thinking it because the DB increased in size. The other DB's backs up
> fine, but none of them is bigger than 500Meg. Here's some additional
> info
> OS: Windows Server 2003 SE SP1
> CPU: Intel Pentium 4 3GHz
> Mem: 1Gig
> Motherboard: Gigabyte GA-8IKHXT(1.0)
> I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
> be that, cause the file below is the drivers for it.
> Event Error:
> Event Type: Error
> Event Source: aarich
> Event Category: None
> Event ID: 9
> Date: 18/05/2006
> Time: 11:23:01
> User: N/A
> Computer: ACCOUNTS
> Description:
> The device, \Device\Scsi\aarich1, did not respond within the timeout
> period.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 00 00 10 00 01 00 66 00 .....f.
> 0008: 00 00 00 00 09 00 04 c0 ......À
> 0010: 01 01 00 50 00 00 00 00 ...P...
> 0018: 00 00 00 00 00 00 00 00 ......
> 0020: 00 00 00 00 00 00 00 00 ......
> 0028: 00 00 00 00 00 00 00 00 ......
> 0030: 00 00 00 00 07 00 00 00 ......
>
> I was thinking of maybe running something that could reduce the size of
> my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
> companies accounts DB.
> Any suggestions or advise or questions?
>
Hi
A 5 Gb database isn't very big and shouldn't give you any problems with
regards to backing it up. From error message, it sounds to me like the
problem is with one of your harddrives. Have you tried to backup the
database to another location e.g. a network location? This would rule
out that the problem is related to the path where you put your backup.
--
Regards
Steen Schlüter Persson
DBA|||Thanks for the fast reply. I tried backing up to 2 mapped network
drives, but both give me the below error... once again Microsoft
doesn't know what this is :-( If this is something to do with
permissions, then I'm lost, cause both mapped drives on both pc's has
the shares and security set to 'everyone'.
I will get my external USB drive in on Monday, then I'll try it with
that HD and report back.
Here's the error I got when trying to back up to a mapped drive.
Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17055
Date: 09/06/2006
Time: 14:49:36
User: NT AUTHORITY\SYSTEM
Computer: ACCOUNTS
Description:
18204 :
BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
to create. Operating system error = 3(error not found).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 1c 47 00 00 10 00 00 00 .G.....
0008: 09 00 00 00 41 00 43 00 ...A.C.
0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
0018: 54 00 53 00 00 00 00 00 T.S....
0020: 00 00 ..|||OS error 3 is "The system cannot find the path specified.". Is this a local disk? Is it a regular
disk?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149861850.904118.98290@.i40g2000cwc.googlegroups.com...
> Thanks for the fast reply. I tried backing up to 2 mapped network
> drives, but both give me the below error... once again Microsoft
> doesn't know what this is :-( If this is something to do with
> permissions, then I'm lost, cause both mapped drives on both pc's has
> the shares and security set to 'everyone'.
> I will get my external USB drive in on Monday, then I'll try it with
> that HD and report back.
> Here's the error I got when trying to back up to a mapped drive.
> Event Type: Error
> Event Source: MSSQLSERVER
> Event Category: (2)
> Event ID: 17055
> Date: 09/06/2006
> Time: 14:49:36
> User: NT AUTHORITY\SYSTEM
> Computer: ACCOUNTS
> Description:
> 18204 :
> BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
> to create. Operating system error = 3(error not found).
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 1c 47 00 00 10 00 00 00 .G.....
> 0008: 09 00 00 00 41 00 43 00 ...A.C.
> 0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
> 0018: 54 00 53 00 00 00 00 00 T.S....
> 0020: 00 00 ..
>|||Tibor Karaszi wrote:
> OS error 3 is "The system cannot find the path specified.". Is this a local disk? Is it a regular
> disk?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
This second error has nothing to do with the original issue. The second
error happened when I tried doing a backup to a mapped drive, which is
mapped to another server on the same network. I tried it with another
mapped drive to another server, and same error came up when running the
backup job. Now because this error probably hasn't anything to do with
the original error, I will be getting in my external USB HD on Monday,
and then try and back up to that drive and report what happens then.
I just want to repeat this, that the original error only happens 90% of
the time to one of the 6 DB's I got running on the pc. The only
noticable difference between the DB that gives the errors, and the rest
is the size.|||"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
>>>>>>>>>>>>>
Could be a couple of things.
Bad spot(s) on the disk where the controller keeps retrying until it times
out.
Could be an issue with the cache on the controller. Check to see if it's in
write-back or write-thru, change to write-thru.
Try putting a separate physical disk in the machine and backing up to that.
Also try stopping the database and do a manual xcopy to another location.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......À
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||It appears like there is much I/O delay. Are you taking the backup to the
mirrored disk? Can you try the backup to non mirrored disk? Also check with
the hardware vendor..Try with a high speed disk
Jayesh
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......À
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||Hi all... Thanks for the replies so far. Sorry for not coming back
sooner, but been busy with some other stuff. I came in to work over the
weekend and successfully backed up the DB on a USB drive 3 times, 2
hours apart. And I didn't get any event errors. To answer the previous
person's question, I am backing up to a mirrorred drive yes. But it was
backing up to the same hardware configuration a few months ago, without
any event errors... which sort of makes me believe that this could be
one of the hard drives failing?
Any further advice or tests you want me to do?
Thanks

aarich event error when backup is run on big DB

Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......=C0
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?Friendly wrote:
> Hi all...
> Let me first explain why I posted this here... I have run this error
> past Microsoft and Gigabyte, and both cant help me, so now I'm turning
> to you guys :-) What happens is that I got a job set up on SQL
> Enterprise 2000 that runs a backup of one of the several DB's on the
> server. But in 90% of the times that the backup run, this event log
> starts appearing, and consistently repeats, until the pc eventually
> freezes up and I have to do a hard restart. I'm starting to think that
> it has something to do with the DB size... its about 5+ gig and also
> the backup. This has only recently started to happen, and I'm also
> thinking it because the DB increased in size. The other DB's backs up
> fine, but none of them is bigger than 500Meg. Here's some additional
> info
> OS: Windows Server 2003 SE SP1
> CPU: Intel Pentium 4 3GHz
> Mem: 1Gig
> Motherboard: Gigabyte GA-8IKHXT(1.0)
> I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
> be that, cause the file below is the drivers for it.
> Event Error:
> Event Type: Error
> Event Source: aarich
> Event Category: None
> Event ID: 9
> Date: 18/05/2006
> Time: 11:23:01
> User: N/A
> Computer: ACCOUNTS
> Description:
> The device, \Device\Scsi\aarich1, did not respond within the timeout
> period.
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 00 00 10 00 01 00 66 00 .....f.
> 0008: 00 00 00 00 09 00 04 c0 ......
> 0010: 01 01 00 50 00 00 00 00 ...P...
> 0018: 00 00 00 00 00 00 00 00 ......
> 0020: 00 00 00 00 00 00 00 00 ......
> 0028: 00 00 00 00 00 00 00 00 ......
> 0030: 00 00 00 00 07 00 00 00 ......
>
> I was thinking of maybe running something that could reduce the size of
> my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
> companies accounts DB.
> Any suggestions or advise or questions?
>
Hi
A 5 Gb database isn't very big and shouldn't give you any problems with
regards to backing it up. From error message, it sounds to me like the
problem is with one of your harddrives. Have you tried to backup the
database to another location e.g. a network location? This would rule
out that the problem is related to the path where you put your backup.
Regards
Steen Schlter Persson
DBA|||Thanks for the fast reply. I tried backing up to 2 mapped network
drives, but both give me the below error... once again Microsoft
doesn't know what this is :-( If this is something to do with
permissions, then I'm lost, cause both mapped drives on both pc's has
the shares and security set to 'everyone'.
I will get my external USB drive in on Monday, then I'll try it with
that HD and report back.
Here's the error I got when trying to back up to a mapped drive.
Event Type: Error
Event Source: MSSQLSERVER
Event Category: (2)
Event ID: 17055
Date: 09/06/2006
Time: 14:49:36
User: NT AUTHORITY\SYSTEM
Computer: ACCOUNTS
Description:
18204 :
BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
to create. Operating system error = 3(error not found).
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 1c 47 00 00 10 00 00 00 .G.....
0008: 09 00 00 00 41 00 43 00 ...A.C.
0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
0018: 54 00 53 00 00 00 00 00 T.S....
0020: 00 00 ..|||OS error 3 is "The system cannot find the path specified.". Is this a local
disk? Is it a regular
disk?
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149861850.904118.98290@.i40g2000cwc.googlegroups.com...
> Thanks for the fast reply. I tried backing up to 2 mapped network
> drives, but both give me the below error... once again Microsoft
> doesn't know what this is :-( If this is something to do with
> permissions, then I'm lost, cause both mapped drives on both pc's has
> the shares and security set to 'everyone'.
> I will get my external USB drive in on Monday, then I'll try it with
> that HD and report back.
> Here's the error I got when trying to back up to a mapped drive.
> Event Type: Error
> Event Source: MSSQLSERVER
> Event Category: (2)
> Event ID: 17055
> Date: 09/06/2006
> Time: 14:49:36
> User: NT AUTHORITY\SYSTEM
> Computer: ACCOUNTS
> Description:
> 18204 :
> BackupDiskFile::CreateMedia: Backup device 'F:\Perry\aa1900.bak' failed
> to create. Operating system error = 3(error not found).
>
> For more information, see Help and Support Center at
> http://go.microsoft.com/fwlink/events.asp.
> Data:
> 0000: 1c 47 00 00 10 00 00 00 .G.....
> 0008: 09 00 00 00 41 00 43 00 ...A.C.
> 0010: 43 00 4f 00 55 00 4e 00 C.O.U.N.
> 0018: 54 00 53 00 00 00 00 00 T.S....
> 0020: 00 00 ..
>|||Tibor Karaszi wrote:
> OS error 3 is "The system cannot find the path specified.". Is this a loca
l disk? Is it a regular
> disk?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
This second error has nothing to do with the original issue. The second
error happened when I tried doing a backup to a mapped drive, which is
mapped to another server on the same network. I tried it with another
mapped drive to another server, and same error came up when running the
backup job. Now because this error probably hasn't anything to do with
the original error, I will be getting in my external USB HD on Monday,
and then try and back up to that drive and report what happens then.
I just want to repeat this, that the original error only happens 90% of
the time to one of the 6 DB's I got running on the pc. The only
noticable difference between the DB that gives the errors, and the rest
is the size.|||"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
[vbcol=seagreen]
Could be a couple of things.
Bad spot(s) on the disk where the controller keeps retrying until it times
out.
Could be an issue with the cache on the controller. Check to see if it's in
write-back or write-thru, change to write-thru.
Try putting a separate physical disk in the machine and backing up to that.
Also try stopping the database and do a manual xcopy to another location.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||It appears like there is much I/O delay. Are you taking the backup to the
mirrored disk? Can you try the backup to non mirrored disk? Also check with
the hardware vendor..Try with a high speed disk
Jayesh
"Friendly" <friendly_781114@.hotmail.com> wrote in message
news:1149840272.386673.84020@.g10g2000cwb.googlegroups.com...
Hi all...
Let me first explain why I posted this here... I have run this error
past Microsoft and Gigabyte, and both cant help me, so now I'm turning
to you guys :-) What happens is that I got a job set up on SQL
Enterprise 2000 that runs a backup of one of the several DB's on the
server. But in 90% of the times that the backup run, this event log
starts appearing, and consistently repeats, until the pc eventually
freezes up and I have to do a hard restart. I'm starting to think that
it has something to do with the DB size... its about 5+ gig and also
the backup. This has only recently started to happen, and I'm also
thinking it because the DB increased in size. The other DB's backs up
fine, but none of them is bigger than 500Meg. Here's some additional
info
OS: Windows Server 2003 SE SP1
CPU: Intel Pentium 4 3GHz
Mem: 1Gig
Motherboard: Gigabyte GA-8IKHXT(1.0)
I got 2 HD's running Raid 1 (mirroring), thus I first thought it might
be that, cause the file below is the drivers for it.
Event Error:
Event Type: Error
Event Source: aarich
Event Category: None
Event ID: 9
Date: 18/05/2006
Time: 11:23:01
User: N/A
Computer: ACCOUNTS
Description:
The device, \Device\Scsi\aarich1, did not respond within the timeout
period.
For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.
Data:
0000: 00 00 10 00 01 00 66 00 .....f.
0008: 00 00 00 00 09 00 04 c0 ......
0010: 01 01 00 50 00 00 00 00 ...P...
0018: 00 00 00 00 00 00 00 00 ......
0020: 00 00 00 00 00 00 00 00 ......
0028: 00 00 00 00 00 00 00 00 ......
0030: 00 00 00 00 07 00 00 00 ......
I was thinking of maybe running something that could reduce the size of
my DB, but I'm a bit hesitant on fiddling with this DB, as it is my
companies accounts DB.
Any suggestions or advise or questions?|||Hi all... Thanks for the replies so far. Sorry for not coming back
sooner, but been busy with some other stuff. I came in to work over the
weekend and successfully backed up the DB on a USB drive 3 times, 2
hours apart. And I didn't get any event errors. To answer the previous
person's question, I am backing up to a mirrorred drive yes. But it was
backing up to the same hardware configuration a few months ago, without
any event errors... which sort of makes me believe that this could be
one of the hard drives failing?
Any further advice or tests you want me to do?
Thanks|||Hi all... Thanks for the replies so far. Sorry for not coming back
sooner, but been busy with some other stuff. I came in to work over the
weekend and successfully backed up the DB on a USB drive 3 times, 2
hours apart. And I didn't get any event errors. To answer the previous
person's question, I am backing up to a mirrorred drive yes. But it was
backing up to the same hardware configuration a few months ago, without
any event errors... which sort of makes me believe that this could be
one of the hard drives failing?
Any further advice or tests you want me to do?
Thanks

Aaargh! Storedproc vs SQL in Gridview update

When I attempt to update using a stored procedure I get the error 'Incorrect syntax near sp_upd_Track_1'. The stored procedure looks like the following when modified in SQLServer:

ALTERPROCEDURE [dbo].[sp_upd_CDTrack_1]

(@.CDTrackNamenvarchar(50),

@.CDArtistKeysmallint,

@.CDTitleKeysmallint,

@.CDTrackKeysmallint)

AS

BEGIN

SETNOCOUNTON;

UPDATE [Demo1].[dbo].[CDTrack]

SET [CDTrack].[CDTrackName]= @.CDTrackName

WHERE [CDTrack].[CDArtistKey]= @.CDArtistKey

AND [CDTrack].[CDTitleKey]= @.CDTitleKey

AND [CDTrack].[CDTrackKey]= @.CDTrackKey

END

But when I use the following SQL coded in the gridview updatecommand it works:

"UPDATE [Demo1].[dbo].[CDTrack]

SET [CDTrack].[CDTrackName] = @.CDTrackName

WHERE [CDTrack].[CDArtistKey] = @.CDArtistKey

AND [CDTrack].[CDTitleKey] = @.CDTitleKey

AND [CDTrack].[CDTrackKey] = @.CDTrackKey"

Whats the difference? The storedproc executes ok in sql server and I guess that as the SQL version works all of my databinds are correct. Any ideas, thanks, James.

Not sure if it's the source of your problem, but shouldn't sp_upd_Track_1 and p_upd_CDTrack_1 be the same or was that a typo?

|||Yeah, typo, the correct name is specified in the storedproc and referenced correctly in the asp.

AAArgh! sp_addlinkedserver giving me fits

I seem to be getting conflicting error messages from sp_addlinkedserver.
Here is the problem:
Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
@.Datasrc=N'ServerName\InstanceName',@.srvproduct=N' SQL Server'
gives me this:
Msg 15426, Level 16, State 1, Procedure sp_addlinkedserver, Line 44
You must specify a provider name with this set of properties.
OK, I'll specify a provider name:
Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
@.Datasrc=N'ServerName\InstanceName',@.srvproduct=N' SQL Server',
@.provider=N'SQLNCLI'
gives me this:
Msg 15428, Level 16, State 1, Procedure sp_addlinkedserver, Line 67
You cannot specify a provider or any properties for product 'SQL
Server'.
So I *must* specify a provider, and yet I *cannot* specify a provider?
OK, I'll take out the product name:
Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
@.Datasrc=N'ServerName\InstanceName',@.provider=N'SQ LNCLI'
gives:
Msg 15429, Level 16, State 1, Procedure sp_addlinkedserver, Line 72
'(null)' is an invalid product name.
So null is an invalid product name if the provider is SQLNCLI. (I also
tried SQLOLEDB since the server is SQL 2000.) That goes against the
sp_addlinkedserver doc in BOL, which shows in the third "row" of the
table under "Remarks" that for a specific instance, the product name
doesn't need to be provided.
If the doc is right, then why the error message 15429?
What gives here?
The underlying problem is that I am trying to set up a kind of alias for
a linked server, so that from the production server, I can get some data
from another (linked) production server; from the test server, I can get
the data from the first production server. The test server can't see
the second production server.
Maybe there is a better way to do this... but I don't see it. (I don't
have access to set up a real alias in the client network utility on the
production server.)
The target databases are SQL 2000.
Thanks for any help.
David Walker
David,
Here is what I do.
EXEC master.dbo.sp_addlinkedserver @.server = N'RamaLama',
@.srvproduct=N'SrvrName', @.provider=N'SQLOLEDB', @.datasrc=N'SrvrName',
@.catalog=N'databasename'
Note that I have the @.srvproduct and the @.datasrc set to the same value.
Once this resolved my problem, I did not keep fooling with it to see if
there was another way.
RLF
"DWalker" <none@.none.com> wrote in message
news:uXkDw8BuHHA.4972@.TK2MSFTNGP05.phx.gbl...
>I seem to be getting conflicting error messages from sp_addlinkedserver.
> Here is the problem:
> Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
> @.Datasrc=N'ServerName\InstanceName',@.srvproduct=N' SQL Server'
> gives me this:
> Msg 15426, Level 16, State 1, Procedure sp_addlinkedserver, Line 44
> You must specify a provider name with this set of properties.
> OK, I'll specify a provider name:
> Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
> @.Datasrc=N'ServerName\InstanceName',@.srvproduct=N' SQL Server',
> @.provider=N'SQLNCLI'
> gives me this:
> Msg 15428, Level 16, State 1, Procedure sp_addlinkedserver, Line 67
> You cannot specify a provider or any properties for product 'SQL
> Server'.
> So I *must* specify a provider, and yet I *cannot* specify a provider?
> OK, I'll take out the product name:
> Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
> @.Datasrc=N'ServerName\InstanceName',@.provider=N'SQ LNCLI'
> gives:
> Msg 15429, Level 16, State 1, Procedure sp_addlinkedserver, Line 72
> '(null)' is an invalid product name.
> So null is an invalid product name if the provider is SQLNCLI. (I also
> tried SQLOLEDB since the server is SQL 2000.) That goes against the
> sp_addlinkedserver doc in BOL, which shows in the third "row" of the
> table under "Remarks" that for a specific instance, the product name
> doesn't need to be provided.
> If the doc is right, then why the error message 15429?
> What gives here?
> The underlying problem is that I am trying to set up a kind of alias for
> a linked server, so that from the production server, I can get some data
> from another (linked) production server; from the test server, I can get
> the data from the first production server. The test server can't see
> the second production server.
> Maybe there is a better way to do this... but I don't see it. (I don't
> have access to set up a real alias in the client network utility on the
> production server.)
> The target databases are SQL 2000.
> Thanks for any help.
> David Walker
|||"Russell Fields" <russellfields@.nomail.com> wrote in news:#dNp7kCuHHA.576
@.TK2MSFTNGP03.phx.gbl:

> David,
> Here is what I do.
> EXEC master.dbo.sp_addlinkedserver @.server = N'RamaLama',
> @.srvproduct=N'SrvrName', @.provider=N'SQLOLEDB', @.datasrc=N'SrvrName',
> @.catalog=N'databasename'
> Note that I have the @.srvproduct and the @.datasrc set to the same value.
> Once this resolved my problem, I did not keep fooling with it to see if
> there was another way.
> RLF
But I need for the data source to have an instance name in one server, and
none in another server. @.srvproduct is supposed to be "SQL Server" (or
"Any" for some provider names).
I'm not sure how you got away with giving a server NAME as the name of the
product.
David
|||David,
Did Peter Yang's answer resolve things for you? Blank is good, but
@.srvproduct is whatever you say it is.
If, however, you say it is 'SQL Server', you are predefining that the
@.server must be a physical name (or instance name) of the server that you
are trying to reach. Since you want @.server to be an alias (an excellent
idea for deploying from a development to a production environment) then you
will user a provider. Since you are SQL 2000, I used SQLOLEDB.
Out of curiousity, did you try it?
RLF
"DWalker" <none@.none.com> wrote in message
news:%231JXBLPuHHA.2752@.TK2MSFTNGP06.phx.gbl...
> "Russell Fields" <russellfields@.nomail.com> wrote in news:#dNp7kCuHHA.576
> @.TK2MSFTNGP03.phx.gbl:
>
> But I need for the data source to have an instance name in one server, and
> none in another server. @.srvproduct is supposed to be "SQL Server" (or
> "Any" for some provider names).
> I'm not sure how you got away with giving a server NAME as the name of the
> product.
> David
>
|||"Russell Fields" <russellfields@.nomail.com> wrote in
news:udbmMvYuHHA.4540@.TK2MSFTNGP05.phx.gbl:

> David,
> Did Peter Yang's answer resolve things for you? Blank is good, but
> @.srvproduct is whatever you say it is.
> If, however, you say it is 'SQL Server', you are predefining that the
> @.server must be a physical name (or instance name) of the server that
> you are trying to reach. Since you want @.server to be an alias (an
> excellent idea for deploying from a development to a production
> environment) then you will user a provider. Since you are SQL 2000, I
> used SQLOLEDB.
> Out of curiousity, did you try it?
> RLF
Sorry, I was out for a while.
@.srvproduct can be anything, but has to be supplied, and if it's "SQL
Server" then it has to be a real name.... hmmmm...
I find that the only way I can connect to a remote SQL 2000 server from
SQL 2005 management studio is to use Peter's example, and supply '' or
'test' or something like that for the server name. If I use 'SQL
Server', then I get a "logon failed for user xyz" (message 18456).
I'll use 'sql' for the product name.
Thanks to you both, including Peter.
David Walker

AAArgh! sp_addlinkedserver giving me fits

I seem to be getting conflicting error messages from sp_addlinkedserver.
Here is the problem:
Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
@.Datasrc=N'ServerName\InstanceName',@.srv
product=N'SQL Server'
gives me this:
Msg 15426, Level 16, State 1, Procedure sp_addlinkedserver, Line 44
You must specify a provider name with this set of properties.
OK, I'll specify a provider name:
Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
@.Datasrc=N'ServerName\InstanceName',@.srv
product=N'SQL Server',
@.provider=N'SQLNCLI'
gives me this:
Msg 15428, Level 16, State 1, Procedure sp_addlinkedserver, Line 67
You cannot specify a provider or any properties for product 'SQL
Server'.
So I *must* specify a provider, and yet I *cannot* specify a provider?
OK, I'll take out the product name:
Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
@.Datasrc=N'ServerName\InstanceName',@.pro
vider=N'SQLNCLI'
gives:
Msg 15429, Level 16, State 1, Procedure sp_addlinkedserver, Line 72
'(null)' is an invalid product name.
So null is an invalid product name if the provider is SQLNCLI. (I also
tried SQLOLEDB since the server is SQL 2000.) That goes against the
sp_addlinkedserver doc in BOL, which shows in the third "row" of the
table under "Remarks" that for a specific instance, the product name
doesn't need to be provided.
If the doc is right, then why the error message 15429?
What gives here?
The underlying problem is that I am trying to set up a kind of alias for
a linked server, so that from the production server, I can get some data
from another (linked) production server; from the test server, I can get
the data from the first production server. The test server can't see
the second production server.
Maybe there is a better way to do this... but I don't see it. (I don't
have access to set up a real alias in the client network utility on the
production server.)
The target databases are SQL 2000.
Thanks for any help.
David WalkerDavid,
Here is what I do.
EXEC master.dbo.sp_addlinkedserver @.server = N'RamaLama',
@.srvproduct=N'SrvrName', @.provider=N'SQLOLEDB', @.datasrc=N'SrvrName',
@.catalog=N'databasename'
Note that I have the @.srvproduct and the @.datasrc set to the same value.
Once this resolved my problem, I did not keep fooling with it to see if
there was another way.
RLF
"DWalker" <none@.none.com> wrote in message
news:uXkDw8BuHHA.4972@.TK2MSFTNGP05.phx.gbl...
>I seem to be getting conflicting error messages from sp_addlinkedserver.
> Here is the problem:
> Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
> @.Datasrc=N'ServerName\InstanceName',@.srv
product=N'SQL Server'
> gives me this:
> Msg 15426, Level 16, State 1, Procedure sp_addlinkedserver, Line 44
> You must specify a provider name with this set of properties.
> OK, I'll specify a provider name:
> Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
> @.Datasrc=N'ServerName\InstanceName',@.srv
product=N'SQL Server',
> @.provider=N'SQLNCLI'
> gives me this:
> Msg 15428, Level 16, State 1, Procedure sp_addlinkedserver, Line 67
> You cannot specify a provider or any properties for product 'SQL
> Server'.
> So I *must* specify a provider, and yet I *cannot* specify a provider?
> OK, I'll take out the product name:
> Exec master.dbo.sp_addlinkedserver @.Server=N'SrvAlias',
> @.Datasrc=N'ServerName\InstanceName',@.pro
vider=N'SQLNCLI'
> gives:
> Msg 15429, Level 16, State 1, Procedure sp_addlinkedserver, Line 72
> '(null)' is an invalid product name.
> So null is an invalid product name if the provider is SQLNCLI. (I also
> tried SQLOLEDB since the server is SQL 2000.) That goes against the
> sp_addlinkedserver doc in BOL, which shows in the third "row" of the
> table under "Remarks" that for a specific instance, the product name
> doesn't need to be provided.
> If the doc is right, then why the error message 15429?
> What gives here?
> The underlying problem is that I am trying to set up a kind of alias for
> a linked server, so that from the production server, I can get some data
> from another (linked) production server; from the test server, I can get
> the data from the first production server. The test server can't see
> the second production server.
> Maybe there is a better way to do this... but I don't see it. (I don't
> have access to set up a real alias in the client network utility on the
> production server.)
> The target databases are SQL 2000.
> Thanks for any help.
> David Walker|||"Russell Fields" <russellfields@.nomail.com> wrote in news:#dNp7kCuHHA.576
@.TK2MSFTNGP03.phx.gbl:

> David,
> Here is what I do.
> EXEC master.dbo.sp_addlinkedserver @.server = N'RamaLama',
> @.srvproduct=N'SrvrName', @.provider=N'SQLOLEDB', @.datasrc=N'SrvrName',
> @.catalog=N'databasename'
> Note that I have the @.srvproduct and the @.datasrc set to the same value.
> Once this resolved my problem, I did not keep fooling with it to see if
> there was another way.
> RLF
But I need for the data source to have an instance name in one server, and
none in another server. @.srvproduct is supposed to be "SQL Server" (or
"Any" for some provider names).
I'm not sure how you got away with giving a server NAME as the name of the
product.
David|||Hello David,
You may want to try the following statement to see if it works on your side:
EXEC sp_addlinkedserver
@.server='linkedservername',
@.srvproduct='',
@.provider='SQLNCLI',
@.datasrc='servername\instancename'
If you have any update, please feel free to let's know. Thank you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
========================================
=============
This posting is provided "AS IS" with no warranties, and confers no rights.|||David,
Did Peter Yang's answer resolve things for you? Blank is good, but
@.srvproduct is whatever you say it is.
If, however, you say it is 'SQL Server', you are predefining that the
@.server must be a physical name (or instance name) of the server that you
are trying to reach. Since you want @.server to be an alias (an excellent
idea for deploying from a development to a production environment) then you
will user a provider. Since you are SQL 2000, I used SQLOLEDB.
Out of curiousity, did you try it?
RLF
"DWalker" <none@.none.com> wrote in message
news:%231JXBLPuHHA.2752@.TK2MSFTNGP06.phx.gbl...
> "Russell Fields" <russellfields@.nomail.com> wrote in news:#dNp7kCuHHA.576
> @.TK2MSFTNGP03.phx.gbl:
>
> But I need for the data source to have an instance name in one server, and
> none in another server. @.srvproduct is supposed to be "SQL Server" (or
> "Any" for some provider names).
> I'm not sure how you got away with giving a server NAME as the name of the
> product.
> David
>|||"Russell Fields" <russellfields@.nomail.com> wrote in
news:udbmMvYuHHA.4540@.TK2MSFTNGP05.phx.gbl:

> David,
> Did Peter Yang's answer resolve things for you? Blank is good, but
> @.srvproduct is whatever you say it is.
> If, however, you say it is 'SQL Server', you are predefining that the
> @.server must be a physical name (or instance name) of the server that
> you are trying to reach. Since you want @.server to be an alias (an
> excellent idea for deploying from a development to a production
> environment) then you will user a provider. Since you are SQL 2000, I
> used SQLOLEDB.
> Out of curiousity, did you try it?
> RLF
Sorry, I was out for a while.
@.srvproduct can be anything, but has to be supplied, and if it's "SQL
Server" then it has to be a real name.... hmmmm...
I find that the only way I can connect to a remote SQL 2000 server from
SQL 2005 management studio is to use Peter's example, and supply '' or
'test' or something like that for the server name. If I use 'SQL
Server', then I get a "logon failed for user xyz" (message 18456).
I'll use 'sql' for the product name.
Thanks to you both, including Peter.
David Walker