- Executes a query, and returns the first column of the first row in the query-result set.
I'm getting the error "Cannot implicitly convert type 'int?' to 'int'. An explicit conversion exists (are you missing a …
c# executescalarTrying to figure out if it's best to use ExecuteScalar or ExecuteNonQuery if I want to return the identity column …
c# sql-server executenonquery executescalarI have a SQL query which returns only one field - an ID of type INT. And I have to …
c# .net ado.net tryparse executescalarI'm trying to add a column to an existing DataRow in C#. Afterwards the column will be filled with a …
c# dbnull asp.net-development-serv executescalarI'm trying to display the SQL query result in a label but it's not showing. This is my code: string …
c# asp.net sql executescalarwhy would this work int collectionCharge = (int)cmdCheck.ExecuteScalar(); but this produces an exception double collectionCharge = (double)cmdCheck.ExecuteScalar(); System.…
c# asp.net casting executescalarI am using LLBLGEN where there is a method to execute a query as a scalar query. Googling gives me …
sql database executescalar llblgenThe manual says that the ExecuteScalar method should be used like: public T ExecuteScalar<T>( string commandText, CommandType …
c# sql executescalarGetting a weird exception from ExecuteScalar() that I cannot find any help for on the web: Cannot continue the execution …
c# sql sql-server executescalarI'm fairly new to ASP.NET and as a self-chosen assignment I am to create a simple blog. It's very …
c# asp.net sql sqlcommand executescalar