Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sudha12345
Starting Member
47 Posts |
Posted - 2009-04-24 : 07:29:46
|
| can we write a procedure to connect to different servers and fetch the data. if it is possible can any one guide meSudhakar |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2009-04-24 : 07:48:41
|
| There are several ways:-Linked Servers-Use OPENROWSET()-Use OPENDATASOURCE()These are all documented in Books Online, you'll need to read up on them to determine which one best suits your needs. |
 |
|
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2009-04-24 : 07:58:42
|
| Linked Server is better option..once Linked server is established..then u can access table likeSelect * from 172.16.3.225.pubs.mytableSenthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceled |
 |
|
|
sudha12345
Starting Member
47 Posts |
Posted - 2009-04-24 : 08:07:27
|
quote: Originally posted by senthil_nagore Linked Server is better option..once Linked server is established..then u can access table likeSelect * from 172.16.3.225.pubs.mytablehow can we establish Linked serverSenthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceled
Sudhakar |
 |
|
|
|
|
|