November 28, 2012 at 9:43 am
Does SQL Server Express support all programmability features?
Is a sequence a function or DDL trigger?
I am using this as a reference
http://www.sqlteam.com/article/custom-auto-generated-sequences-with-sql-server
Objective:
Create a Waste Hauler Unique Number. For instance, 00000-V/C 0000- AT- YR
I guess I need to know where I need to start from.
November 28, 2012 at 9:51 am
Duplicate post. Please direct all replies here. http://www.sqlservercentral.com/Forums/Topic1389914-338-1.aspx
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
November 28, 2012 at 9:52 am
There is no independent sequence generator or function. You can usse the identity property - by designating a column as an identity, you can have SQL Server automatically generate incremental numbers for every row you insert into the table.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply