Solved

How do I Create a SQL Server Database Using C#

Posted on 2006-07-22
2
256 Views
Last Modified: 2010-04-16
Hello,
I need to programmaticaly create a SQL Server Data Base in my SQL Server.
I need code samples in order to accomplish this task.
I am a novic with .NET and C# so please try to be clear with your explanations.

Thanks
yoffir
0
Comment
Question by:yoffir
2 Comments
 
LVL 7

Expert Comment

by:levyuk
ID: 17160071
You can't really do it with c#. The only think that c# can do is run an SQL query, the sql query is used to create a database. You would be better off asking this question in the SQL section, they can tell you how to create a database using sql.
0
 
LVL 9

Accepted Solution

by:
DrAske earned 500 total points
ID: 17160252
I think you need first to get an interview on ADO.NET  ..
Because if you want to work with database you will use it very often ..

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconoverviewofadonet.asp

Create a SQL Server Database Using C#(Take a look):
http://www.codeproject.com/cs/database/CreateDB.asp

regards, Ahmad;
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Greetings C# program 17 107
Close form "before" open 3 40
designing in object programming 12 79
VB: Convert 2 dates to specific format 24 48
Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question