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 |
|
moxon
Starting Member
6 Posts |
Posted - 2007-12-13 : 08:08:05
|
| Hi,I need to make a query that can show the database owner, something like ARCH.dbo.t_alp_ship(dbo is the owner). How can i do this, now just can get ARCH t_alp_ship, without the owner.Thanks everybody.... |
|
|
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts |
Posted - 2007-12-13 : 08:16:00
|
Do you want to find out owner name of the table?select user_name(objectproperty(object_id('t_alp_ship'), 'OwnerId'))Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED" |
 |
|
|
moxon
Starting Member
6 Posts |
Posted - 2007-12-13 : 08:20:10
|
| Yes that is what i want,,,,,thanks harsh_athalye for your help,,,,,you rule!!! |
 |
|
|
|
|
|