Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How do I Create a SQL Server Database Using C#

Posted on 2006-07-22
2
Medium Priority
?
262 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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

877 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