The scenario is. A database secondary server are for different reason out of sync or is suspected that is not sync.Someone has made the secondary databases online by mistake or other mishaps. If you n
I\'m writing a C# application that upgrades client machines from one application version to another. The first step is to create a backup of a SQL database. I\'m doing this using SMO and it works fin
I am working on a product in which some business entities are defined after deployment based on inputs from the site administrator. The application then prepares a schema and creates sql objects (prim
I\'m trying to execute a schema file on a SQL Server machine. I currently have both SQL Server 2005 and SQL Server 2008 installed. When I try to execute the .sql file (meant to execute on the 2008 ver
I\'m trying to create a backup of the data contained within my database before I re-create the tables. I\'ve got so far as to connect to the server and create the file to store the SQL. The problem is
I am using the SQL Server Management Object lib in a C# application. I need to copy a stored procedure from a source server to a destination server on a different machine. I can retrieve the StoredPro
Taking a database backup from another server I\'m trying to restore to sqlexpress on the localhost.This restore will work via the gui but I\'m having issues restoring it with powershell.I get the foll
The following piece of code works with regular SQL and SMO. I\'m trying to get it to work with SQL Azure. According to this MSDN article, a limited subset of functionality that I need (database and lo
I\'m getting a strange error when I enable windows authentication on IIS and try to run some database update scripts:
I am doing some reporting on SQL Server jobs, using SQL Server Management Objects (SMO). This is the test-job: