Error:
An Exception 'Unhandled Win32 Exception' has occurred in <application name>
However a debugger that cannot handle the exception type is already attached to
the process.
Code:
Private conDMO = New SQLDMO.SQLServer()
How can I get Access to the DMO com object. Note I could not find a tlb to use
the tlbimp utility.
"Lee Taylor" <leet...@wltaylor.com> wrote in message
news:4a0901c0b481$2a79cc60$19ef2ecf@tkmsftngxa01...
.
Willy.
"Lee Taylor" <leet...@wltaylor.com> wrote in message
news:856a01c0bc43$668273f0$19ef2ecf@tkmsftngxa01...
using System;
using SQLDMO;
namespace Backup
{
/// <summary>
/// Summary description for App
/// </summary>
class App
{
static void Main(string[] args)
{
//
// TODO: Add code to start application here
//
__SQLServer server = new __SQLServer();
Databases databases;
_Database database;
Database db = new Database();
__Backup backup = new __Backup();
server.LoginSecure = true;
server.Connect("(local)\\dev", null, null);
Console.WriteLine("server {0}", server.Name);
databases = server.Databases;
database = databases.Item("pubs", null);
Console.WriteLine("database {0}", database.Name);
backup.Database = database.Name;
backup.Files = "c:\\pubs.bak";
backup._Backup2_SQLBackup(server);
server.DisConnect();
} // main
} // App
} // namespace
-GertD
"Willy.D" <willy.d...@pandora.be> wrote in message
news:#LUWBaEvAHA.1808@tkmsftngp02...
Willy.
"Gert E.R. Drapers" <ge...@cohesion-software.com> wrote in message
news:ObGzDNGvAHA.1832@tkmsftngp05...
"Willy.D" <willy.d...@pandora.be> wrote in message
news:#ZaT9XGvAHA.1768@tkmsftngp05...