Solved

How do I Create a SQL Server Database Using C#

Posted on 2006-07-22
2
260 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

636 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