Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

Get ID from database, launching a query from code and set NOCOUNT clause

$
0
0

Hello,

I need to extract some id from some table in mydatabase. I launching query from code.

I would like to know if it is correct what I do

SET NOCOUNT ON
SELECT ID FROM tblID
SET NOCOUNT OFF

it is right to set nocount on at the beginning and if you need to reset it in the end.

Many thanks


www.Photoballot.net


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>