How can we help you today? How can we help you today?

Api (database updated succeeded)

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" <sr@asego.de> wrote in message
news:eSiFfMIxDHA.1668@server53...
> 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 ??
>
>
Brian Donahue
0

Comments

1 comment

  • Brian Donahue
    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" <sr@asego.de> wrote in message
    news:eSiFfMIxDHA.1668@server53...
    > 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 ??
    >
    >
    Brian Donahue
    0

Add comment

Please sign in to leave a comment.