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
URGENT - SBS 2008 No primary network adapter found
Get-Eventlog -> Export-CSV long eventmessages -> problem
IE8 Submit Form with [Enter] Key, not functioning properly
Virtualizing SQL
Why won't Exchange Transport service start in Exchange 2007 on our SBS 2008 server ?
instantiating an object in php
Disable IPv6 on windows 2008
Exchange database backup failing with Arcserve v15
What is S=Strict, T=Transitional, and F=Frameset
cannot find webica.ini in Windows 7