Rohan  Rathore
What method is used by the Command classes to execute SQL statements that return single values?
By Rohan Rathore in ADO.NET on Jul 03 2013
  • Sunil Babu
    Apr, 2016 3

    ExecuteScalar

    • 0
  • Sujeet Suman
    Jul, 2015 2

    ExecuteScalar();

    • 0
  • Sujeet Suman
    Jul, 2015 2

    ExecuteScalar returns the first column of the first row in the result set returned by the query.

    • 0
  • Sreekanth Reddy
    Jun, 2015 17

    cmd.ExecuteScalar();

    • 0
  • Rahul Prajapat
    May, 2015 26

    sqlcommand.executescalar()

    • 0
  • Lalit Raghav
    May, 2015 13

    ExecuteScalar()

    • 0
  • sajidlkhan lodi
    Feb, 2015 9

    ExecuteScaler() Method will be used for Single value.

    • 0
  • plm
    Sep, 2013 19

    The ExecuteScalat method of the command object returns single values from the sql query. It return the first column of the first row of the query.

    • 0
  • Pramod Lawate
    Aug, 2013 26

    SqlCommand.ExecuteScalar();

    • 0
  • Sandeep Ghosh
    Aug, 2013 15

    Execute Scalar. var requruedResult=SqlCommand.ExecuteScalar(); It will return first row's first column value.

    • 0
  • Srikaran N Sarma
    Jul, 2013 15

    SqlCommand.ExecuteScalar(); This return only a single value(that is the first column of the first row. Other values are ignored)Link: http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.aspxAlso see this thread: http://www.c-sharpcorner.com/Interviews/answer/6397/define-execute-scalar

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS