Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 26, 2010 01:09 PM by shashankgwl
0 Points
1 Post
Aug 26, 2010 07:02 AM|LINK
I want a get the datas of a particular column from a table of a different database server from a database on selecting a table in another server.
Star
11118 Points
1997 Posts
Aug 26, 2010 10:21 AM|LINK
if you want to query with multiple database then you need to use query with database owner
like
select * from DatabaseName.DBO.TableName a inner joint
DatabaseName2.DBO.TableName2 b on a.id= b.id
Participant
1380 Points
255 Posts
Aug 26, 2010 12:31 PM|LINK
use Openrowset Command in SQL
refere this link
http://jsdideas.blogspot.com/2010/07/openrowset-command-in-sql.html
All-Star
32835 Points
5563 Posts
MVP
Aug 26, 2010 01:02 PM|LINK
First you need to make linked sever please refer :
http://www.execsql.com/post/Linked-Servers-in-SQL-Server-2005.aspx
18926 Points
3662 Posts
Aug 26, 2010 01:09 PM|LINK
http://technet.microsoft.com/en-us/library/ms190479.aspx
http://msdn.microsoft.com/en-us/library/aa259589%28SQL.80%29.aspx
Prem Kumar
0 Points
1 Post
Sql Server
Aug 26, 2010 07:02 AM|LINK
I want a get the datas of a particular column from a table of a different database server from a database on selecting a table in another server.
nareshguree2...
Star
11118 Points
1997 Posts
Re: Sql Server
Aug 26, 2010 10:21 AM|LINK
if you want to query with multiple database then you need to use query with database owner
like
select * from DatabaseName.DBO.TableName a inner joint
DatabaseName2.DBO.TableName2 b on a.id= b.id
jsd24
Participant
1380 Points
255 Posts
Re: Sql Server
Aug 26, 2010 12:31 PM|LINK
use Openrowset Command in SQL
refere this link
http://jsdideas.blogspot.com/2010/07/openrowset-command-in-sql.html
My Blog : http://jsdideas.blogspot.com
raghav_khung...
All-Star
32835 Points
5563 Posts
MVP
Re: Sql Server
Aug 26, 2010 01:02 PM|LINK
First you need to make linked sever please refer :
http://www.execsql.com/post/Linked-Servers-in-SQL-Server-2005.aspx
shashankgwl
All-Star
18926 Points
3662 Posts
Re: Sql Server
Aug 26, 2010 01:09 PM|LINK
http://technet.microsoft.com/en-us/library/ms190479.aspx
http://msdn.microsoft.com/en-us/library/aa259589%28SQL.80%29.aspx
All is well if it runs well.
blog