Microsoft
Software
Hardware
Network
Question : SQL Query
Hei guys,
i have an sql query
SELECT IDENT_CURRENT('Products') + IDENT_INCR('Products');
i want to get the next increment on a table but it returns 2 if they is no values entered,
it does work fine if they is information enter in the table, but does not return 1 if the table is empty,
how can i return 1 if the next increment is 1?
Answer : SQL Query
HERE YOU GO...
SELECT ISNULL(IDENT_CURRENT('Prod
ucts') ,0) +1
Random Solutions
Ubuntu - Vista
A Perl Script to get windows server information
PHP - session variables lost between subfolders
The marquee progressbar hangs as the next line of the code executes
How deploy a website shortcut to 200 users desktop
"microsoft exchange offline address book" creates synchronization error log
Offline Exchange defrag mismatch in database sizes
Informatica installation issues windows, cannot ping
GroupWise 6.0.1 - Some addresses are undeliverable and have been crossed out
Winsock error in XP Professional Error 12029 Provider entry MSAFD Could not make an HTTP connection.