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
Cannot access Windows 2008 DFS links from Windows 2003
Outlook 2007 freezes forwarding email
Append a query string to destination URL after redirect?
Clear only first 5 columns
Mail delivery has failed
Adobe - monitor profile [..] appears to be defective. Please rerun your monitor calibration software
SQLCommandBuilder - GetUpdateCommand, GetInsertCommand and GetDeleteCommand Questions
OpenVPN Management Port 7505 telnet problem
Run the first php script in background - When done - run the next script ...
Suggestions on Architecture for New Application