how to retrive max value of a column by using c#
-
Hi All, I am using a query i.e."select max(empcode) as code from demotable" it was giving a value in sqlserver,but i want to implement it in c#.net by using the code. can any one help me plz... Regards, Basha.
-
Hi All, I am using a query i.e."select max(empcode) as code from demotable" it was giving a value in sqlserver,but i want to implement it in c#.net by using the code. can any one help me plz... Regards, Basha.
add System.Data.SqlClient namespace 1. Open SQL connection 2. Call SqlCommand member for your query! 3. Read your value by DataReader
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You