Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get the ownership of a table
Message
From
23/04/2006 12:35:41
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01115599
Message ID:
01115818
Views:
8
Sergey,
Thanks for the info, I didn´t know this.

>Keep in mind that there could be more than one table with the same name (but with different owners) in DB.
>SELECT TABLE_SCHEMA FROM database2.INFORMATION_SCHEMA.TABLES
>	WHERE table_name = 'tableX'
>
>
>>How can I get the ownership of a table in another Database ?
>>Is there a function or Stored Procedure (SP) in SQL Server to get it ?
>>Reason: Building a SP that must access the table of another Database.
>>Im in database1
>>
>>SELECT * database2.dbo.tableX
>>
>>Usually the value is DBO, but if its diferent how tho get that owner, or the owners for each table?
Previous
Reply
Map
View

Click here to load this message in the networking platform