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
Subtract one day from other in java
Refining an algebra formula
Export contact notes from an ACT! 6 database to an Excel or CSV file
usercontrols, docking and scrolling problems
Dot Net IL Code to C# conversion
Is it possible to mirror two physical disks?
jquery validator and asp.net updatepanel
Send two files in email as attachment in unix shell scripting using ksh
Page progress updates from a long running process
Office 2003 - dollar sign shows up as an arrow