Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Without Temp Table isPossible:

select Id,Name,family From Tbl_Personal

print GetValue(0)
Posted
Comments
Maciej Los 8-Nov-14 8:46am    
Sorry, but "is possible" is not proper question, especially when there is no description of issue.
Tomas Takac 8-Nov-14 9:37am    
Yes, it is possible. But if you improve you question you have better chance to get a useful answer.

1 solution

It sounds like you want to use a DataReader and simply index into the DataReader or call GetValues
http://msdn.microsoft.com/en-us/library/system.data.idatarecord.getvalues(v=vs.110).aspx[^]
if you really want an array.
 
Share this answer
 
v3
Comments
Maciej Los 8-Nov-14 13:55pm    
I'll give a 5 if OP accept it as an answer. Please, remind me ;)
PIEBALDconsult 8-Nov-14 15:51pm    
Don't hold your breath.
Maciej Los 8-Nov-14 15:53pm    
:laugh:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900