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
SBS 2008 move data feature crashes
I wanted to parse out text in outlook using VBA and save the values in a spread sheet
OCS 2007 R2 and Cisco call manager
DBGrid's content into email
Have to restart service to get network printer to work
Check colum A for names in the name matches a sheet name in any workbook then copy to the sheet where we are quering from.
Password reset at next logon
Are Mac's easier to support than PC's? Why or why not?
QoS config
FireBird stored procedure