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

Stored procedure to return auto incremented number every time its called.

$
0
0

I'm looking to create a simple web service that will make a call to a ms sql server. The database should then return a number that is simply incremented by 1 each time its called.

Notice that I'm not doing any insert or update, I just want the database to return a auto incremented number every time the web service is called.

Can anyone provide the code for the stored procedure.

Thanks,

Samr


Viewing all articles
Browse latest Browse all 8428

Trending Articles



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