Solved

How do I Create a SQL Server Database Using C#

Posted on 2006-07-22
2
254 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now