smo
When to use Sql Management Objects (SMO)
I\'m working on a project that leverages database metadata. To date I\'ve just queried the database catalog views开发者_运维技巧 (e.g. sys.tables) but I know this will be \"easier\" with SMO if I\'m w[详细]
2023-01-09 04:59 分类:问答please explain the use of "default()" in this code
source http://technet.microsoft.com/en-us/library/ms162234%28SQL.100%29.aspx code //Connect to the local, default instance of SQL Server.[详细]
2023-01-09 00:35 分类:问答SQL Server 2008 Clone table with indexes in .Net
What would be the simplest way to create an exact structural replica for Table1开发者_如何学运维 and all its indexes in the same database.Let\'s say Table1Dupl where all constraints/indexes from Table[详细]
2023-01-08 06:50 分类:问答Using the SMO DependencyWalker to load TreeView
In a windows forms application, using C# I want to programmtically pass the SMO DependencyWalker a single object ( table, View, etc ), discover the dependencies related to that object and then load a[详细]
2023-01-05 11:57 分类:问答Use all backup sets to restore database with SMO
My problem is really simple. I have a .bak file that contains one or more backup set. When I\'m using SMO to restore the database with this .bak file, it only takes the first backup set to do its wor[详细]
2023-01-04 14:08 分类:问答How to transfer SQL Server DB structure to another server
Tell me please what\'s the best way to copy db structure to another server? I\'m trying to generate a script in Management Studio and then run that script on the remote machine. And I hate that thing[详细]
2023-01-04 10:14 分类:问答Attach Database Using SMO keep Failing
i use this SMO code to attach a database. Server mServer = new Server(\".\"); mServer.AttachDatabase(\"DbName\", new StringCollection {[详细]
2023-01-04 00:56 分类:问答Microsoft.SqlServer.Management.Smo.Transfer class
I\'m trying to copy sql db between servers using Smo.Transfer class. And it\'s ok when you\'re copying absolutely normal database. It works.[详细]
2023-01-03 18:54 分类:问答Using SMO to persist and recreate database structure
Transfering databases between servers or creating a copy of db w开发者_JAVA百科ithin the server\'s instance is easy enough. We can use Microsoft.SqlServer.Management.Smo.Transfer class.[详细]
2023-01-03 16:52 分类:问答Microsoft.SqlServer.Management.Smo.Transfer() losing contraints
I\'m trying to copy SQL database from one server to another. Ple开发者_开发知识库ase tell me how to use Transfer() method without loosing constraints in the target database.[详细]
2023-01-03 16:50 分类:问答