Sunday, November 4, 2012

How can I Get Data from a Database on Another Server?


If you want to import data only through T-SQL query, then use OPENDATASOURCE function. To repeatedly get data from another server, create a linked server and then use the OPENQUERY function or use 4-part naming. If you are not adhered with T-SQL, then it is better to use import/export wizard, and you can save it as a SSIS package for future use.

(Read more here
http://bit.ly/sql-interview)

No comments:

Post a Comment