This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Execute plain SQL in script

Hi,

I have an SQL query that i very complicate and at the end it returns just 1 or 0.

I need to run it into a script and let me return just the number.

I can achieve that? 

I didn't find any object in vb dell to do that.

The sqlcommand need an sqlconnection object and I don't know how to fill it from identity manger.

 

Parents
  • Thanks for the answer but my problem is how to run a custom query (I have the SQL text of that)
    I can't use ISingleDbObject or other object because the query is very structured .
    I need to put my sql text query in and get the result (is just 1 or 0)
Reply
  • Thanks for the answer but my problem is how to run a custom query (I have the SQL text of that)
    I can't use ISingleDbObject or other object because the query is very structured .
    I need to put my sql text query in and get the result (is just 1 or 0)
Children
No Data