ExecuteWithResultsAndMessages using SQLDMO

Discussion in 'Software' started by alam_nadeem, Aug 29, 2007.

  1. alam_nadeem

    alam_nadeem

    Joined:
    Aug 29, 2007
    Messages:
    1
    Hi Everybody,

    I am trying to get Message back when using ExecuteWithResultsAndMessages method of SQLDMO but it is returning null.I donot know why it is coming null. Someone please help. It is required urgently.Thanks in advance

    code is given below

    SQLDMO.SQLServer oServer = new SQLDMO.SQLServerClass();
    oServer.Connect("DATABASE-SERVER\\SQL2005","sa","abcd");
    string result1=string.Empty;
    oServer.ExecuteWithResultsAndMessages(line,line.Length,out result1);
    MessageBox.show(result1);

    ---Nadeem
    alam_nadeem, Aug 29, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Silverstrand
    Replies:
    5
    Views:
    660
    unholy
    Sep 29, 2005
  2. hmc
    Replies:
    0
    Views:
    1,864
  3. R.H.
    Replies:
    0
    Views:
    5,155
  4. [BnH]
    Replies:
    3
    Views:
    492
    Walter Hofmann
    Sep 24, 2005
  5. Donald Burr
    Replies:
    3
    Views:
    1,028
    Whiskers
    Nov 14, 2006
Loading...

Share This Page