Get Column Contents


hey guys, have small problem , goes this

 

lets consider column in database_tableexample

sample

a

b

c

d

f

if need values (a,b,c,d,e,f) wat should do

i did string  val=convert.tostring(cmd.executescaler());

and got first value , tats "a", how increment next element table

any suggestions

 

 

 

 

 

executescalar doing it's supposed do.  ever return 1 distinct value , want lot more that.  since have command object need create reader using executereader command.  can enumerate through results , each value need.




Visual Studio Languages  ,  .NET Framework  >  Visual C#



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

How to fix error Msg 1801, Level 16, State 3, Line 1

How to Share webservice object to all user