Microsoft
Software
Hardware
Network
Question : Error on DROP DATABASE @DBName
The follwing is giving me an error -
Declare @DBName as varChar(200)
Set @DBName = 'somedatabase'
IF EXISTS(SELECT name FROM sys.databases WHERE name = @DBName)
DROP DATABASE @DBName
GO
It does not like the line
DROP DATABASE @DBName
Answer : Error on DROP DATABASE @DBName
EXEC('DROP DATABASE ' + @DBName)
Random Solutions
Custom Control Designer Error
.Net Application Security problem
Does OpenOffice allow Windows 7 preview pane to preview .doc and .xls files?
Should I make a Drupal Theme from scratch?
Strange DNS resolution
How can I reference information from one sheet to another by values selected in a drop down menu
Use .NET or SSIS to download Exhange email and process attachments
How to store a set in a field and how to maintain it dyamically?
Passing combobox var to loaded swf as3
Cannot RDP to W2008R2 Server 'Computer Name' but can to its IP Address