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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 contains more than the maximum number of prefixes.

Author  Topic 

shifis
Posting Yak Master

157 Posts

Posted - 2008-07-14 : 16:32:45
We are trying to run a scrip but in this line: ( this is in a create sp instruction)


insert into SERVERMETLIFE3.[VL-0002DW].dbo.DimPeriodo values (3,2006,3,'Marzo')

we receive the next error:

The object name 'SERVERMETLIFE3.VL-0002DW.dbo.DimPeriodo' contains more than the maximum number of prefixes. The maximum is 2

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-14 : 16:35:03
The Script Library forum is for working scripts. I will move your thread as a result.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-07-14 : 16:36:04
To answer your question though, run the insert statement on SERVERMETLIFE3 instead of through a linked server. You could try with OPENQUERY too.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -