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
Change CAS array name in exchange 2010
Form does not close when opened with a asynchronous thread
How do I add a due date column, and sort by the document date in AR Statements?
map with push pins
Dynamics AX 2009 - AOS Performance
Internet explorer registry to prevent the startup of add-on toolbars
Automatically delete empty tables from access database
how to determine style.display value
Access Report Ribbon
Blackberry not displaying text on FWD emails.