If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Temporary Table

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-10-03, 04:53
yogishkamathg yogishkamathg is offline
Registered User
 
Join Date: May 2003
Posts: 3
Temporary Table

Hi,

SQL server= MS Server 7.0

I have created a global temporary table in server A and am trying to access it from server B, through linked server connection.

Firstly, is it possible to access the value from the other server's tempdb? If yes, how can I go about it.

I get the following error:

Server: Msg 208, Level 16, State 1, Line 1
Invalid object name '##test'.
Database name 'tempdb' ignored, referencing object in tempdb.

Please advise.

Thanks
Yogish
Reply With Quote
  #2 (permalink)  
Old 06-10-03, 06:43
Satya Satya is offline
Grand Poobah
 
Join Date: Aug 2002
Location: Scotland
Posts: 1,578
Refer to this SQL Team link for information.
__________________
--Satya SKJ
Microsoft SQL Server MVP
[IMG]http://sqlserver-qa.net/google_bart.gif[/IMG]
Reply With Quote
  #3 (permalink)  
Old 06-10-03, 07:33
Paul Young Paul Young is offline
Registered User
 
Join Date: Feb 2002
Location: Houston, TX
Posts: 809
Although I would have expected the standerd four part nameing convention to work, select * from <server name>.<database name>.<owner name>.<table name>, I always got the same error message. When I tried using OPENQUERY eveything worked just fine.

select * From OPENQUERY(<linked server name>, 'select * from <your global temp table>')
__________________
Paul Young
(Knowledge is power! Get some!)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On