Click here to Skip to main content
15,898,745 members
Home / Discussions / Database
   

Database

 
AnswerRe: select upcoming birthday? Pin
Syed Mehroz Alam11-Mar-09 7:39
Syed Mehroz Alam11-Mar-09 7:39 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 8:06
Meax11-Mar-09 8:06 
GeneralRe: select upcoming birthday? Pin
Syed Mehroz Alam11-Mar-09 19:39
Syed Mehroz Alam11-Mar-09 19:39 
AnswerRe: select upcoming birthday? Pin
Luc Pattyn11-Mar-09 8:35
sitebuilderLuc Pattyn11-Mar-09 8:35 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 8:38
Meax11-Mar-09 8:38 
AnswerRe: select upcoming birthday? Pin
Luc Pattyn11-Mar-09 8:54
sitebuilderLuc Pattyn11-Mar-09 8:54 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 9:41
Meax11-Mar-09 9:41 
GeneralRe: select upcoming birthday? Pin
Luc Pattyn11-Mar-09 10:10
sitebuilderLuc Pattyn11-Mar-09 10:10 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 21:10
Meax11-Mar-09 21:10 
GeneralRe: select upcoming birthday? Pin
Jay Royall11-Mar-09 23:00
Jay Royall11-Mar-09 23:00 
GeneralRe: select upcoming birthday? Pin
Meax11-Mar-09 23:27
Meax11-Mar-09 23:27 
GeneralRe: select upcoming birthday? Pin
Jay Royall11-Mar-09 23:41
Jay Royall11-Mar-09 23:41 
AnswerRe: select upcoming birthday? Pin
je_gonzalez15-Mar-09 16:07
je_gonzalez15-Mar-09 16:07 
QuestionCreate Table in Oracle 10G Pin
E_Gold11-Mar-09 2:47
E_Gold11-Mar-09 2:47 
AnswerRe: Create Table in Oracle 10G Pin
Blue_Boy11-Mar-09 2:57
Blue_Boy11-Mar-09 2:57 
GeneralRe: Create Table in Oracle 10G Pin
E_Gold11-Mar-09 5:36
E_Gold11-Mar-09 5:36 
QuestionGenerate Reference Number Pin
musefan11-Mar-09 0:06
musefan11-Mar-09 0:06 
Hi All,

Im creating an application in C# that needs to generate a partially-sequential value for a reference number which is stored in an SQL server database

the reference number will consist of three parts - a year value, a sequential number, and a system definded value

for example, 090001REF

then the next one generated would need to be 090002REF... 090003REF and so on

Ideally the sequence number would be reset at the start of a new year. 093245REF... 100001REF etc.


Can anyone offer a posible solution to how i would need to incorperate this functionality?

Can this be done within the database? or is this something i will need to handle throu my application? also i will need to keep in mind users creating a reference number at the same time, even if it is highly unlikely

Thanks for any suggestions Smile | :)

Life goes very fast. Tomorrow, today is already yesterday.

AnswerRe: Generate Reference Number Pin
Blue_Boy11-Mar-09 2:18
Blue_Boy11-Mar-09 2:18 
GeneralRe: Generate Reference Number Pin
musefan11-Mar-09 2:29
musefan11-Mar-09 2:29 
GeneralRe: Generate Reference Number Pin
Blue_Boy11-Mar-09 2:55
Blue_Boy11-Mar-09 2:55 
QuestionT-SQL and XML question. Pin
Jamie Nordmeyer10-Mar-09 17:11
Jamie Nordmeyer10-Mar-09 17:11 
QuestionRandom or sequential allocation! Pin
Learner52010-Mar-09 14:06
Learner52010-Mar-09 14:06 
AnswerRe: Random or sequential allocation! Pin
Ashfield10-Mar-09 22:04
Ashfield10-Mar-09 22:04 
QuestionRandom or sequential allocation Pin
Learner52010-Mar-09 6:52
Learner52010-Mar-09 6:52 
AnswerRe: Random or sequential allocation Pin
Blue_Boy10-Mar-09 13:32
Blue_Boy10-Mar-09 13:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.