


I am trying to write my captured DDL to a file but all I get in the file are funny characters like 单??癤湥畴敲潗歲嵳. What am I doing wrong. Here is the code:private void ScriptComputedColumns(){Server svr = new Server("localhost");Database db = ...
Hi i downloaded the Backward Compatibility Components MSI file from the microsoft link as i need to continue working with SQL DMO objects on SQL2005. but when i tried to install that in my client machines which is installed with W2k Proffessional SP4 its asking for windows installer latest ...
I have several sql-dmo vbscripts that I use to script out db objects to files. Now I am impleemnting horizontal partitioning using the partition function/scheme - this requires the creation of a staging table on a specific filegroup (associated with a partition) to switch the partitioned data ...
I am using SMO to script out the stored procs and funtions in our SQL Server 2005 database for comparisions against SourceSafe to ensure the Source repository is up to date. However I have run into a problem. It seesm SMO doesn't include the CASCADE option on the GRANT AND DENY statements at ...
I've got a C# application thats using some basic SMO stuff (creating logins/users/granting rights). I've got the following references in my project:Microsoft.SqlServer.ConnectionInfo.dllMicrosoft.SqlServer.Smo.dllMicrosoft.SqlServer.SmoEnum.dllMicrosoft.SqlServer.SqlEnum.dllYet, when I ...
See this article for details how to file product feedback:http://msdn2.microsoft.com/en-us/library/ms166362.aspxIt's highly recommended to send feedback if you have it. Every item is read and ...
Hi; Could anyone in this forum tell me where I can find a good resource for learning what libraries I need to sucessfully run a vb.net program that executes a DTS package ? I can run the program on my machine which has SQL Server 2000 enterprise management installed. On a client machine I ...
I have the following code: foreach (Trigger trigger in server.Databases[_database].Triggers) { But the list always shows up as empty. Am I missing something? I know there are triggers defined. Thank you. Kevin ...
I have included the command ListAvailableSQLServers in our VB application (together with SQL Server 2000) and it successfully provided all the instance names (e.g. ROB\DEMO, ROB\AVALON, MIKEY\ABC). Recently, it only returns the server names and not their respective instances (e.g. ROB, MIKEY) ...
I am attempting to restore a backup into a database using SMO. It works great except in once scenario. The database and backup device is on my local drive (C) but when i copy the backup device to our dev server and try to restore using SMO, I get the following ...
Can I create tables, primary keys, foreign keys, database, backups, Something else? ...
Hi,Does anyone know what interfaces Management Studio use? It does seem to retrieve information about Server/Database objects without the performance issues that SMO suffers from? How does it do it?Regards,Joginder ...
When passing in some types I get the; "Prefetch objects failed for Database 'AdventureWorks'" message. I have noticed this on UserDefinedDataTypes, Triggers, and Synonyms so far, I have yet to work through them all. Where can one find a list of the supported types? Sample Code: ...
We have written extensive sql 2000 dmo code and we can't get it to run in vs 2005. What's the trick?...
My requirement is that I need to write a job in sql server 2000 in order to find the current date and time from a table. If I find the current date and current time which matches the server date and time then I need to notify the user through email. This taks is realted to Events. ...
