Popular Articles
Last viewed:
- Install Windws 2003 Terminal Service Licenses (Remote Desktop)
- Deploy Crystal Reports 2008 Run-time on Remote Server
- Override Default SPAN Tag for Composite Controls
- Get the list of ODBC data source names programatically using C#
- SQL Server Database Project and Database Source Control
- C# Download File with Progress Bar
Recent comments
- Reply
1 day 19 hours ago - Thank you!
6 days 9 hours ago - Thanks!!
6 days 10 hours ago - Lotus Email Server Stop
1 week 18 hours ago - awesome article masssthhh
1 week 2 days ago - Awesome!
2 weeks 8 hours ago - get blank pdf
2 weeks 1 day ago - TXLDnoMyeLVmZKXPTJT
2 weeks 4 days ago - hPLvcrWMPCDOIpXDg
2 weeks 6 days ago - JijKgYDvBZXRZ
2 weeks 6 days ago

Where should I run these scripts?
Hello.
Thanks for these scripts - very simple BUT VERY USEFUL.
I opened createDB script in MS SQL Server Management Studio 2008, edited it as I need. But I couldn't execute it:
string "use [MyDatabase]" shows that this database doesn't exist. Of course it doesn't!!!
But why program hadn't created it before as it written in
"if not exists(select * from sys.databases
where name = 'MyDatabase')
begin
create database MyDatabase
end"?