Article ID: 307283 - Last Review: May 13, 2007 - Revision: 2.5 How To Create a SQL Server Database Programmatically by Using ADO.NET and Visual C# .NETThis article was previously published under Q307283 On This PageSUMMARY
This step-by-step article shows you how to create a Microsoft SQL Server database by using ADO.NET and Visual C# .NET because programmers often need to create Databases programmatically.
Steps to Create a SQL Server DatabaseTo create the database, follow these steps:
NOTES:
REFERENCES
For additional information about the Create Database Transact-SQL command, see the SQL Server Books Online or visit the MSDN Online Library:
Create Database
For more information about ADO.NET objects and syntax, see the following topic in the Microsoft .NET Framework SDK Documentation or visit the following Microsoft Web site:
http://msdn2.microsoft.com/en-us/library/aa258257.aspx (http://msdn2.microsoft.com/en-us/library/aa258257.aspx)
Accessing Data with ADO.NET http://msdn2.microsoft.com/en-us/library/e80y5yhx(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/e80y5yhx(vs.71).aspx) | Article Translations
|
Back to the top
