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

C# => EnumJobHistory() not working on SQL-Server 2008 SP1 (10.00.2531)...

Hi there,i am having problems enumerating the jobhistory for SQL-Server 2008 SP1 (10.00.2531).On SQL-Server 2008 R2 and 2012, everything works fine, and the function returns a DataTable-Object....

View Article


Problems connecting to SQL Server 2012 using 2005 SMO

Should 2005 SMO be able to access SQL 2012 please?We are currently performing a large migration to SQL Server 2012. It's been going well, but we have hit a problem testing an app. An app server is...

View Article


Replication between two SQL 2012 Express DBs using SMO

Hi There,I have two MSSQL Express 2012 databases each on separate machines (one for live LAN Data and the other for external IP access by a website for security reasons)I've read that SQL Express 2012...

View Article

Powershell SMO works in cmd, not from script

Hope this is a correct forum.My code (Server 2003 Enterprise, SQL Server 10.0.5512.0, Powershell v1.0 ISE) is as follows:function Script-Database_01 { # Created: 09/06/2013 # Edited: 09/06/2013...

View Article

Idea to simply inform Admin when values are found in SQL-Table by mail, maybe...

Hello,I have found some situations, where values appear in Column NDF_STATUS in database table NDF_AUFTRAG. This can be normal. It is only critical, when these values exceed a limit I_MAXERRORS. I...

View Article


Check file list inside a backup file

I'm trying to get the list of database names / files from a backup file. Here's the code: [code="vb"] ''' <summary> ''' Prepare a RESTORE2 object. ''' </summary> Private Shared Function...

View Article

Using SMO to move tempdb

I'm trying to improve my SQL Server Instance configuration scripts using SMO.This includes moving TempDB to a new location, ie. the equivalent of:[quote]ALTER DATABASE tempdbMODIFY FILE (NAME =...

View Article

SMO Missing properties

I have a server that seems to be missing some properties when accessing via SMO in powershell, specifically the default data and log file locations. These can be viewed through ssms and tsql. Has...

View Article


A SQL Sever Script Generator Utility

SQL server generates scripts task does not have the option to filter by object name. It is impossible to manually select hundreds of SQL objects manually especially you need choose a subset of objects...

View Article


Can I use SMO to script out schema objects from a database ?

Hello all,we have a couple of databases that have constant data change capture on them,without going in much detail it is allmost impossible storage wise to keep a consisten databackup on these &...

View Article

Got a newbie SMO powershell question/issue.

Hello everyone,I'm quite new to PowerShell, but getting along OK with a PS cookbook, but I have run into an issue and I cant get around it, and looking for some help.I just wanted to list the service...

View Article

Cops talk man off bridge by discussing

[url=https://www.youtube.com/watch?v=0R_QUYpFStw]Florida State vs Louisville Live Streaming[/url][url=https://www.youtube.com/watch?v=grhxPaszRXw]Tennessee vs Ohio Live...

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


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 below....

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