Api (database updated succeeded)

Brian DonahueBrian Donahue Posts: 6,590 New member
edited December 18, 2003 12:23PM in SQL Compare Previous Versions
Hi Sven,

If you're using the C# language, it's easiest to catch a SQL error
in obUtils.ExecuteBlock using a regular Try..Catch routine:

try

{

obUtils.ExecuteBlock(obExeBlock, sDBTargetServer, sDBTargetName, false,
sDBTargetUser, sDBTargetPassword);

}

catch (System.Exception e)

{

Console.WriteLine("Error running SQL: "+e.Message);

}



This should give you a pretty detailed explanation of what went
wrong.

Regards,

Brian Donahue
Red Gate Technical Support

"Sven Rüther" <[email protected]> wrote in message
news:[email protected]
> Hi I am using the Api (RedGate.SQLCompare.Engine) and I need the
information
> that the database updated succeeded.
> Where can I get this Information ?
> The Sql Script print 'The database updated succeeded' or 'The database
> update failed' but where can I see this ??
>
>

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hi Sven,

    I forgot to mention: We've got a sqltoolkit newsgroup now for answering
    SQL Toolkit development questions.

    Thanks

    Brian Donahue

    "Sven Rüther" <[email protected]> wrote in message
    news:[email protected]
    > Hi I am using the Api (RedGate.SQLCompare.Engine) and I need the
    information
    > that the database updated succeeded.
    > Where can I get this Information ?
    > The Sql Script print 'The database updated succeeded' or 'The database
    > update failed' but where can I see this ??
    >
    >
This discussion has been closed.