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.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 sp_tables_ex LServer

Author  Topic 

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2008-01-14 : 09:58:04
This SP tells only one Table_Cat even though I have access to more than 1. Any way to find out all the Table_Cat the LServer has access to?



http://www.sqlserverstudy.com

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-14 : 09:59:34
what sp? what are you talking about?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2008-01-14 : 10:27:27
exeC SP_TABLES_EX



http://www.sqlserverstudy.com
Go to Top of Page

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2008-01-14 : 11:53:42
ANYONE ?



http://www.sqlserverstudy.com
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-01-14 : 12:13:46
how are you calling it and what is the result you get?

_______________________________________________
Causing trouble since 1980
blog: http://weblogs.sqlteam.com/mladenp
SSMS Add-in that does a few things: www.ssmstoolspack.com <- new version out
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-01-14 : 12:20:54
Have you tried using
sp_helptext 'SP_TABLES_EX'
?
Have a look at the statement at line 41 as the error message tells you to.
Read about sys.fn_remote_tables function.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

funketekun
Constraint Violating Yak Guru

491 Posts

Posted - 2008-01-14 : 15:30:33
sp_tables_ex only shows the default database on column TABLE_CAT. e.g. MASTER
login: sa
sa has sysadmin permissions

I want the linked server to show all the databases on the column TABLE_CAT not just 'master'

Hopefully, you understand this time.



http://www.sqlserverstudy.com
Go to Top of Page
   

- Advertisement -