Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this really the code needed to get a value from SQL?
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01262166
Message ID:
01262188
Views:
19
>Does the ExecuteScaler work on only select statements? I see what you are only returning one field, so what would happen if you need to fields?
>

It will work with a stored procedure as well.

It only returns a single result field, so no, it will not work with something that returns multiple fields or records.

If you need more fields or rows, then you will need a datareader or other more complex object.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform