1

How I can programmable create databases, import database images, get information about existing databases via C#. I am working with SQL Server 2005.

Can you refare me to some tutorial or give me some examples.

Thanks for help.

1
  • What have your tried so far yourself? Commented Nov 10, 2010 at 8:01

2 Answers 2

5

you can use SQL Server Management Object (SMO)
http://msdn.microsoft.com/en-us/library/ms162169.aspx

Sign up to request clarification or add additional context in comments.

Comments

2

At the end of the day WITH SQL (though it can be encapsuled by object libraries).

Use the management studio and every action you do there can pretty much show the SQL generated. Read trhe documentation. At the end, connect ot a SQL Server and issue statements. You know, stuff like CREATE DATABASE etc. All documented.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.