C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






Fetching Data From SQL Linked server


Posted Date: 27 Aug 2008    Resource Type: Articles    Category: Databases

Posted By: Ritesh N. Jain       Member Level: Gold
Rating:     Points: 2



Many time one need to fetched the data from SQL linked server,Normally most of the site shows how to linked the SQL DB server but very few shows how to fetch the data out of it,so hopefully this will help if anyone looking for this.

Let's assume you have linked server SQL DB server "MyServer" and you want to fetch the data from Table "MyTable" of Database "MyDB",so your SQL query will look like


SELECT * FROM MyServer.MyDB.dbo.MyTable


In case you want to fetch data from any Instance of MyServer than you can use


SELECT * FROM [MyServer\InstanceName].MyDB.dbo.MyTable





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
SQL Server  .  Select From SQL Linked Server  .  Linked Server  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Constraints in Sql server - part -1
Previous Resource: Date Time in SQL
Return to Discussion Resource Index
Post New Resource
Category: Databases


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

masks masks masks

Contact Us    Privacy Policy    Terms Of Use