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
Excel control returns only a string
How do I verify Using SSIS if an XML file exist in the folder , change it's name and move ot to an SFTP if exist
FAX configuration in windows 2003 server with Gmail.
How do I modify this php script to send a confirmation?
How to avoid zero(s) in front of number(s) disappears in array
Setting up my first database driven web site
Embedding iwebbrowser control inside ATL window.
VB .NET 2005 Combine Two Tables on Primary Key and Display in DataGridView
how can i find all ILO boards on a network
How can I convert a custom control that calls User32 and Shell32 to work on Mono?