Declare command object with parameter SqlCommand cmd new select from Customers where city conn . I am getting error like Timeout expired. It is however not related to your current problem. You must also specify value for the command. When the SqlCommand executes parameters will be replaced with values specified by SqlParameter object
Timeout on a (sql) database: SqlConnection ...
The current transaction will see rows that were deleted after began because there version in tempdb with lower sequence number value. Email prbspark gmail Prabu if this helps please login to Mark Answer. Hints should only be used when really needed. other cost CASE WHEN dbo. Each parameter will match SqlParameter object that must be assigned to this SqlCommand
SqlCommand.CommandTimeout Property (System.Data.SqlClient)
Sqlcommand commandtimeout download links: