Solved

How do I Create a SQL Server Database Using C#

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Amazon S3 .Net error 5 43
Need to sort columns in DataGridView 4 39
ComboBox to String Not Working 5 20
Adjust the codes 3 35
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…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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