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
 object_id issue

Author  Topic 

pnpsql
Posting Yak Master

246 Posts

Posted - 2011-11-04 : 05:47:30
hi team, i have an object_id 3 and i need to know the object name ..how can i do this..
pls help..


challenge everything

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-04 : 05:48:40
select object_name(3)

it returns sysrscols for me

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

jassi.singh
Posting Yak Master

122 Posts

Posted - 2011-11-04 : 08:24:33
Visakh16 is correct

below works fine
select object_name(3)

For detail
Refer: http://msdn.microsoft.com/en-us/library/ms190328.aspx

Please mark answer as accepted if it helped you.

Thanks,
Jassi Singh
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2011-11-04 : 13:19:05
Xerox bot is correct that Visakh is correct!
select object_name(3)

Please cut and paste this if you want a higher post count! <kidding Rob!>

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-11-05 : 13:11:40
quote:
Originally posted by DonAtWork

Xerox bot is correct that Visakh is correct!
select object_name(3)

Please cut and paste this if you want a higher post count! <kidding Rob!>

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp




------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -