Click here to Skip to main content
15,910,411 members
Home / Discussions / Database
   

Database

 
GeneralRe: Day of week Pin
kibromg13-Aug-07 6:32
kibromg13-Aug-07 6:32 
QuestionCLR WebService Access Pin
DerekFL13-Aug-07 5:21
DerekFL13-Aug-07 5:21 
Questionsqlserver2005 [modified] Pin
saravanan0513-Aug-07 1:56
saravanan0513-Aug-07 1:56 
AnswerRe: sqlserver2000 Pin
Pete O'Hanlon13-Aug-07 2:04
mvePete O'Hanlon13-Aug-07 2:04 
QuestionUnexpected existing transaction --> error Pin
Jagadeesh Jupalli12-Aug-07 23:14
Jagadeesh Jupalli12-Aug-07 23:14 
AnswerRe: Unexpected existing transaction --> error Pin
andyharman13-Aug-07 4:29
professionalandyharman13-Aug-07 4:29 
GeneralRe: Unexpected existing transaction --> error Pin
Jagadeesh Jupalli13-Aug-07 8:08
Jagadeesh Jupalli13-Aug-07 8:08 
Questionhow to generate autonumber in ceratin sequence Pin
biswa4712-Aug-07 22:11
biswa4712-Aug-07 22:11 
i have a table in sqlserver2005 named emp.

where the coloumns of the emp table are as follows.
empid int,
empname varchar(20),
empaddrs varchar(20),
empDOB dateandtime,
empsex char(1),


i want to genertae empid as autogenertaed sequencitial number.
where the format of the auto genertaed number for empid will be -yyyy-sex-nnnn

where 1st for places are the year of his dob.
5th place would be the first letter of his/her sex
and last 4 place that is from 6th to 10th would be number (means 0001 ,0002)

example of auto generated number are-1983M001,1985F0002,2005M0003...and so on..
can u tel me how i wil do it in SQLSERVER2005.

(i know only how to generate auto num.by setting its identity to true.but dont know what to write in the formula filed so that i can genrate the above type of auto generated number)


AnswerRe: how to generate autonumber in ceratin sequence Pin
Blue_Boy12-Aug-07 23:53
Blue_Boy12-Aug-07 23:53 
QuestionIF EXISTS? Pin
Illegal Operation12-Aug-07 21:16
Illegal Operation12-Aug-07 21:16 
AnswerRe: IF EXISTS? Pin
Blue_Boy12-Aug-07 21:29
Blue_Boy12-Aug-07 21:29 
AnswerRe: IF EXISTS? Pin
Pete O'Hanlon12-Aug-07 22:31
mvePete O'Hanlon12-Aug-07 22:31 
QuestionMap one table to another in MSSQL Pin
big_nige12-Aug-07 11:25
big_nige12-Aug-07 11:25 
AnswerRe: Map one table to another in MSSQL Pin
Colin Angus Mackay12-Aug-07 12:01
Colin Angus Mackay12-Aug-07 12:01 
GeneralRe: Map one table to another in MSSQL Pin
big_nige12-Aug-07 12:30
big_nige12-Aug-07 12:30 
GeneralRe: Map one table to another in MSSQL Pin
Colin Angus Mackay12-Aug-07 14:21
Colin Angus Mackay12-Aug-07 14:21 
GeneralRe: Map one table to another in MSSQL Pin
big_nige12-Aug-07 14:55
big_nige12-Aug-07 14:55 
GeneralRe: Map one table to another in MSSQL Pin
big_nige14-Aug-07 12:18
big_nige14-Aug-07 12:18 
QuestionVista & SQL Server Pin
mehrdadc4812-Aug-07 7:46
mehrdadc4812-Aug-07 7:46 
AnswerRe: Vista & SQL Server Pin
Colin Angus Mackay12-Aug-07 12:01
Colin Angus Mackay12-Aug-07 12:01 
AnswerRe: Vista & SQL Server Pin
Russell Jones13-Aug-07 5:57
Russell Jones13-Aug-07 5:57 
Questionsql server ce Pin
sivadomacha12-Aug-07 6:31
sivadomacha12-Aug-07 6:31 
QuestionAttach Database sql server 2000 Pin
Rami Said Abd Alhalim12-Aug-07 5:19
Rami Said Abd Alhalim12-Aug-07 5:19 
AnswerRe: Attach Database sql server 2000 Pin
Paul Conrad12-Aug-07 6:24
professionalPaul Conrad12-Aug-07 6:24 
AnswerRe: Attach Database sql server 2000 Pin
Nouman Bhatti12-Aug-07 21:28
Nouman Bhatti12-Aug-07 21:28 

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.