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
SATA drive stopped responding
VLAN Configuring on a Powerconnect 5324
C:\blabla\nbproject\build-
impl.xml:3
10: D:\Projects\Netbeans Workspace\MyProject is not a valid directory
Javascript - output date and time
Export Input data (survey) to Excel in ASP.NET form
Server security analysis to determine patch level
deployoing ecconect application
Hard drives out of a raid are not recognized
KMS is activating Win7 Pro but not Win 2008 R2 Enterprise
ColdFusion Using .NET Class Library