May 13, 2011 at 12:24 am
HI ..i m newbie in sql server . can anyone tell me how to query table structre of a linked server in sql 2005. I knw we can do it on local table by ALT + F1 but on linked server how is it possible?..Thanks in advance ....enjoy everyone.
May 13, 2011 at 12:33 am
hi
Try this
EXECUTE ('<DbName>.SYS.sp_help ''<schema.TableName>''') AT <LinkedServer>
Regards
Deepak.A
May 13, 2011 at 12:41 am
thanks Deepak but i m getting a error on running ur query that
"Server 'asitcpu738' is not configured for RPC."
Can u help ? Thanks in advance.
May 13, 2011 at 12:51 am
Please check the linked server properties
May 13, 2011 at 4:54 am
Check the properties of the Linked Server as mentioned by the Deepak and shown in the attachment
Regards,
Syed Jahanzaib Bin Hassan
BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA
My Blog
www.aureus-salah.com
May 13, 2011 at 5:12 am
If you have required only columns information then you can use this also
SET FMTONLY ON
GO
Select * from [linkedServer].[databaseName].[schema].[tableName]
Regards,
Syed Jahanzaib Bin Hassan
BSCS | MCTS | MCITP | OCA | OCP | OCE | SCJP | IBMCDBA
My Blog
www.aureus-salah.com
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy