Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incrementing folio problem
Message
 
 
To
30/05/2013 11:34:36
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01575144
Message ID:
01575148
Views:
60
>-- =============================================
>-- Author: xxxxx
>-- Create date: 11-01-2012
>-- Description: Selecciona los datos de operacion a calcular
>-- =============================================
>ALTER PROCEDURE [dbo].[Sel_Trae_Folio_ICS]
>
>AS
>BEGIN
> Select Folio_TB_ics from PRM_Folios
> UPDATE dbo.PRM_Folios
> SET Folio_TB_ICS = Folio_TB_ics + 1
>END
>
>
>
>Any ideas on how to make this code better or what we are doing wrong?
>
>Thanks,
>Daniel

I re-read the question. Are you implementing your own sequence table? Does that table have just a single row?

Take a look at this thread

http://forum.lessthandot.com/viewtopic.php?f=17&t=6518
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform