RSS Forums RSS
Please support our MS SQL advertiser: Programming Forums
Views: 5873 | Replies: 1
Reply
Join Date: Jun 2003
Location: Malaysia
Posts: 313
Reputation: red_evolve is on a distinguished road 
Rep Power: 6
Solved Threads: 0
red_evolve's Avatar
red_evolve red_evolve is offline Offline
Posting Whiz

Select records from different data source

  #1  
Jul 21st, 2005
Can someone enlighten me on this issue ?
I have data source A - with a stored procedure in which I'd like to select records from tables in a different data source, B.
"Study the past if you would define the future" - Confucius
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Posts: 8
Reputation: sifuhall is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sifuhall sifuhall is offline Offline
Newbie Poster

Re: Select records from different data source

  #2  
Jul 21st, 2005
if you would like to select records from a different database on the same server the syntax is

select ....

from [databasename].[owner].[table or view name]

if you would like to select records from a database on a different server first you will need to create a linked server entry, then the syntax is

select ....

from [servername].[databasename].[owner].[table or view name]
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC