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
SBS 2008 SharePoint Companyweb Layout Missing
Polycom ViewStation EX Network setup
Exchange 2010 migration project from Exchanger 2003.
importing the data into table having xml datatype using db2 import.
ORACLE SQL similarity with SQL Server
ADmodify.exe "mailbox rights modification disabled" ??
Repeater Enable/Disable RequiredFieldValidator depending a textbox
"outlook.ost cannot be accessed because it has been configured for usw with a different mailbox"
Java Open Source Barcode Software
How to reset the sametime password for a single user