DaniWeb Forum Index
>
Search Forums
Search Results
•
•
•
•
Showing results 1 to 1 of 1
Search took
0.01
seconds.
Search:
Posts Made By:
adamdk
Save these search results for 24 hours
Forum:
C#
Jul 9th, 2009
Replies:
1
Solved:
Retrieve value from table and store in variable C#
Views:
474
Posted By
adamdk
Re: Retrieve value from table and store in variable C#
If you are only reading one row from one column, you would be better to use
int myVariable = (int) mySqlCommand.ExecuteScalar();
(might have to use int.parse I cannot remember)
Scalar takes...
Showing results 1 to 1 of 1
Latest Posts
Today's Posts
All Forums
Unanswered Threads
All Forums
Related Forum Features
DaniWeb News Stories
DaniWeb Code Snippets
DaniWeb Tutorials
DaniWeb Product Reviews
DaniWeb White Papers
Forum Search
About Us
|
Contact Us
|
Advertise
|
DaniWeb
|
Acceptable Use Policy
|
©2003 - 2009 DaniWeb® LLC