|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Sql Query Outputs to a VariableHey all.
I have a OleDbCommand executing a query on a DB and I want it to output the result of the query into a variable. (the result is just one field) Whats the best way to do it ? If you guys could give me a hint I could try to figure out the rest myself, I just need some advice on how to begin.... Thanks. SqlCommand.ExecuteScalar
Show quoteHide quote "Jl_G_0" <jlguerre***@gmail.com> wrote in message news:1156208300.196732.171880@74g2000cwt.googlegroups.com... > Hey all. > > I have a OleDbCommand executing a query on a DB and I want it to > output the result of the query into a variable. (the result is just one > field) > Whats the best way to do it ? If you guys could give me a hint I > could try to figure out the rest myself, I just need some advice on how > to begin.... > > Thanks. > Just what I needed, it was so simple... but Im kinda new to .net (and
databases too)... Thanks again, its working now.
Handling refreshes from browser
Change box color on checkbox control Automated File Copying Multiple Table DataSet Application Crashes on Test PC count occurrences of string within a string how to display a label only a while? How to check base class type of 'open' generic class? (inheritance check) Re: SQL query to Excel file Has Dataset Changed? |
|||||||||||||||||||||||