Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linked Server error 16902

Status
Not open for further replies.

cmetters

Programmer
Oct 30, 2001
9
0
0
GB
Hi.

I've set up a linked server to a SQL 6.5 database from a SQL 2000 server and am trying to execute the following update query against a table on the 6.5 database:

insert into CALLCTIL_S01.TrainTeleconnect.dbo.agentslocal
(ID,Agent,Password,login,AgentFull)
Values
(7, 'TR7', 'test', 2607, 'Test Agent 7')


But I get the following error:

sp_cursor: The parameter 'table' is invalid

The following Select statement works fine:

select * from CALLCTIL_S01.TrainTeleconnect.dbo.agentslocal


Any ideas?

Thanks in advance,

Chris
 
It appears to be a bug in SQL Server 6.5.


You might be able to work around this bug by using OpenQuery. This works from SQL 2000 to another SQL 2000 Server. I don't have a SQL 6.5 server to test on.

Insert OpenQuery(CALLCTIL_S01, 'Select ID, Agent, Password, login, AgentFull From TrainTeleconnect.dbo.agentslocal')
Values (7, 'TR7', 'test', 2607, 'Test Agent 7') Terry L. Broadbent - DBA
SQL Server Page:
If you want to get the best answer for your question read faq183-874.
 
Hey Terry, thanks a lot for the info. I will try your workaround on Monday when I'm back at work.

Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top