Microsoft
Software
Hardware
Network
Question : How to use Database name variable in ALTER DATABASE sql script
I need to create a script that is equivalent to the following:
ALTER DATABASE DB_NAME()
but that isn't valid syntax.
Is there anyway to do this via Transact SQL or SQLCMD mode other than by using dynamic sql?
Answer : How to use Database name variable in ALTER DATABASE sql script
>>Is there anyway to do this via Transact SQL or SQLCMD mode other than by using dynamic sql? <<
I am afraid not. You will have to use Dynamic SQL.
Random Solutions
which is the best website to learn stored procedure ??
Push not working on iphone with Exchange 2010...
How to disable Security Alert box in windows 7?
VB.NET - System.UnauthorizedAccessE
xception was unhandled
Add comments to PDF
Unable to connect Entourage 2004 to SBS 2008 Exchange mailbox
Script to enable folder auditing
vb.net httpwebrequest timeout not working correctly
Replacing a server in an existing domain other than the main Domain Controller
SharePoint - single user can't access Rich Text Editor