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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 sp_rename

Author  Topic 

jtwork
Yak Posting Veteran

82 Posts

Posted - 2008-05-16 : 06:03:00
Does anyone know how to do a sp_rename thats not held to the current database?

soorajtnpki
Posting Yak Master

231 Posts

Posted - 2008-05-16 : 06:08:47
hi
wat u mean by that..
Go to Top of Page

PeterNeo
Constraint Violating Yak Guru

357 Posts

Posted - 2008-05-16 : 06:19:48
try something like

Exec dbname.dbo.sp_rename '', ''
Go to Top of Page

jen
Master Smack Fu Yak Hacker

4110 Posts

Posted - 2008-05-16 : 09:37:46
from BOL
quote:

Changes the name of a user-created object in the current database


the only other way is to use DSQL


--------------------
keeping it simple...
Go to Top of Page
   

- Advertisement -