dbTalk Databases Forums  

Query a Virtual Server

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Query a Virtual Server in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Frank
 
Posts: n/a

Default Query a Virtual Server - 12-05-2003 , 06:17 PM







I am trying to query the following table.

Select @@servername outputs : TEXBDVS01VSQL3\VSQL_XYZ

select * from TEXBDVS01VSQL3\VSQL_XYZ
...dbo.MORE_Test.MOREdatabase

I received the following error: Incorrect syntax near '\'

Please help me resolve this issue.

Thank You,

Frank




Reply With Quote
  #2  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Query a Virtual Server - 12-06-2003 , 10:17 AM






select * from [TEXBDVS01VSQL3\VSQL_XYZ].dbo.MORE_Test.MOREdatabase

You enclose instance and virtual server names in brackets.

--
Geoff N. Hiten
Microsoft SQL Server MVP
Senior Database Administrator
CareerBuilder.com


"Frank" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am trying to query the following table.

Select @@servername outputs : TEXBDVS01VSQL3\VSQL_XYZ

select * from TEXBDVS01VSQL3\VSQL_XYZ
..dbo.MORE_Test.MOREdatabase

I received the following error: Incorrect syntax near '\'

Please help me resolve this issue.

Thank You,

Frank






Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.