Quantcast
Channel: SQLServerCentral » Programming » SMO/RMO/DMO » Latest topics
Browsing all 99 articles
Browse latest View live

passing parameters to a vbs file in command line

Hi,I have a VbScript file that has oSQLServer.Connect statement using windows authentication. I am trying to pass the servername as parameter from command line. cscript ScriptJobs.vbs...

View Article


how to use SQLDMO_SCRIPT_TYPE options in code

Hi,I have the following code that scripts out all agent jobs on a server. I want the generated script to include If not exists condition coz i either want to skip or overwrite existing jobs.Dim...

View Article


Error: This cache contains no result sets, or the current result set contains...

Hi all,Does anyone know what this error means, what causes it and how to fix it? Exception:System.Runtime.InteropServices.COMException (0x80045026): [SQL-DMO]This cache contains no result sets, or the...

View Article

retrieving tables from view with SMO

How can I retrieve tables names used in a view by SMO?I can get the columns but I need the tables used in the viewthx

View Article

Retreive an error for an UPDATE SQL Statement

HiI wrote a VB6 program using SQL-DMO. Everything works fine except I don't know how to get the real result of an UPDATE SQL Statement.For exemple:UPDATE MY_TABLE SET CLt_Name=new_name where...

View Article


Setting article properties for a publication using RMO in C# .NET

Hello everyone i am using transaction replication with push subscription. I am developing a UI for replication using RMO in C#.NET between different instances of the same database [b]within same...

View Article

DMO UseBulkCopyOption

GuysWe have just migrated a database to SQL Server 2008 from SQL 2000 SP4, there is an in house application that uses DMO to bulk copy data into the load tables.We are expereincing major performance...

View Article

Refresh PivotTables in MS Excel 2007 with OLE Automation

Hi,I need to update a pivot table that resides on a Microsoft Excel worksheet.I created a stored procedure dbo.USP_DMO_EXCEL_Pivot_RefreshTable(link:...

View Article


change logical names in SMO

Hello All,I am having issues changing the logical names post restore.I am restoring a database with SMO (using VB.NET). After the database has been restored, I am changing the logical names of the...

View Article


script out all the jobs in sql server 2008 excluding the mirroring jobs

Hi,I want to script out all the jobs in sql server 2008 excluding the mirroring jobs to a file whose location is passed as a parameter. Can you please let me know how to do this.Thanks,Kiran

View Article

Looking for MySQL expert to Skype with us!

We are looking for a MySQL consultant who is expert in writing conditional SELECT statements using the "CASE WHEN" structure that we can Skype screen share with who will advise us until we have...

View Article

object with managedDTS

hi, I try to create this object, but I Had error :$obj= new-object Microsoft.SQLServer.ManagedDTS "$ServerName"error - "can't find type [ Microsoft.SQLServer.ManagedDTS ] : make sure the assembly...

View Article

Running .sql file using C# .Net - Accents Problem

Hello, I have this small app to run a batch of .sql files on multiple databases. When the .sql files have accents, (most of them comments) I get this...

View Article


update access to sql server

I would like 'power' users to be able to run queries and update selected tables, I would prefer for this to occur on the web. Can you tell me how to accomplish this task using either sql server 2005...

View Article

load assembly - error

hi,I load assembly of managedts.it's work great with the new version of sql 10.5 .but when I try to use this spesfic assembly I get a ERROR Version.mybe someone had exprience about this.thank's

View Article


SMO within SSIS Script Task - User.Drop() causes error at runtime.

I am having issues with the following code within a SSIS package. It is designed to drop all database users before a restore operation commences and following a kill all connections script. The issue I...

View Article

Growth of transaction log

someone has script to monitor a Growth of transaction log in sqlserver/or link.thank's

View Article


ListAvailableSQLServers (SQL-DMO) deprecated

I understand that ListAvailableSQLServers is deprecated, but I cannot find what to replace it with.I see that SQL-DMO is replaced with SMO, but I do not see an equivalent method. code snippet...

View Article

smo table script generation performance problem

Hello,I'm currently working on program for database compare. In this program I need to create scripts for databse objects. i found out that script generation is too slow but generating scripts using...

View Article

SMO performance issues!

Hi guys!I've used SMO in some my latest apps but I am really disappointed with performance! It is horrible slowly!Did you felt this issues also?What do you think!

View Article
Browsing all 99 articles
Browse latest View live


Latest Images