Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
under2811
Constraint Violating Yak Guru
366 Posts |
Posted - 2006-09-29 : 02:01:09
|
Hello pplsI need urgent help from you..I want to run query batch on SOURCE DATABASE likeTRUNCATE TABLE [Destination Server].[Destination DB].[User].TestTblINSERT INTO [Destination Server].[Destination DB].TestTblSELECT * FROM [Source DB].[User].TestTblI am getting errorServer: Msg 117, Level 15, State 1, Line 3The object name 'Destination Server.Destination DB.User.' contains more than the maximum number of prefixes. The maximum is 2.what should i do i need to run this on source server only...please help me outT.I.A |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-09-29 : 02:30:24
|
Haven't tried it, but could you use OPENQUERY for the truncation?Or, create a SP on the destination server that truncates the table, and call the SP from source server.Peter LarssonHelsingborg, Sweden |
 |
|
under2811
Constraint Violating Yak Guru
366 Posts |
Posted - 2006-09-29 : 07:07:52
|
hi pesothat OR option worked for me!!!!!!!thanks |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-09-29 : 08:37:12
|
You should have added that server as Linked ServerMadhivananFailing to plan is Planning to fail |
 |
|
|
|
|