开发者

Manipulating SQL Server using C#

开发者 https://www.devze.com 2023-01-24 13:30 出处:网络
How I can programmable create databases, import database images, get information abou开发者_如何学Got existing databases via C#. I am working with SQL Server 2005.

How I can programmable create databases, import database images, get information abou开发者_如何学Got 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.


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消