Click here to Skip to main content
15,919,500 members
Home / Discussions / Database
   

Database

 
QuestionHow to pass parameters into sql jobs using a stored procedure? Pin
ashish bhakhar21-Mar-08 0:07
ashish bhakhar21-Mar-08 0:07 
QuestionStructure of data relationship - which direction? Pin
Andy_L_J20-Mar-08 23:56
Andy_L_J20-Mar-08 23:56 
Questionstored porcedure ? Pin
Vijayitsb20-Mar-08 23:14
Vijayitsb20-Mar-08 23:14 
GeneralRe: stored porcedure ? Pin
John_Adams20-Mar-08 23:39
John_Adams20-Mar-08 23:39 
GeneralRe: stored porcedure ? Pin
ashish bhakhar21-Mar-08 0:15
ashish bhakhar21-Mar-08 0:15 
GeneralRetrieve and change an Identity column value... Pin
anderslundsgard20-Mar-08 22:30
anderslundsgard20-Mar-08 22:30 
GeneralRe: Retrieve and change an Identity column value... Pin
N a v a n e e t h20-Mar-08 23:08
N a v a n e e t h20-Mar-08 23:08 
GeneralRe: Retrieve and change an Identity column value... Pin
anderslundsgard21-Mar-08 1:41
anderslundsgard21-Mar-08 1:41 
1. OK - IDNTITY_CURRENT + 1 works perfect for me!

2. I don't know if I missunderstand but can really helpe me to modify what the next identity number will be? I dont want to manually do INSERTs with the identity column value, only step the counter forward to a specific value.

----------------------------------------------------------------

My goal is to make users of a program (that uses the db and the table) to set a new start value each year.

Year 2008: next new row id = 200800001
Year 2008: next new row id = 200900001

I use the id to represent an Invoice-number and my clients like to see on the number from which year it is created.

_____________________________

...and justice for all

APe

GeneralRe: Retrieve and change an Identity column value... Pin
N a v a n e e t h21-Mar-08 1:46
N a v a n e e t h21-Mar-08 1:46 
GeneralRe: Retrieve and change an Identity column value... Pin
anderslundsgard25-Mar-08 5:12
anderslundsgard25-Mar-08 5:12 
GeneralRe: Retrieve and change an Identity column value... Pin
ashish bhakhar21-Mar-08 0:27
ashish bhakhar21-Mar-08 0:27 
GeneralSELECT SCOPE_IDENTITY() & INSERT Problems Pin
munklefish20-Mar-08 2:19
munklefish20-Mar-08 2:19 
GeneralRe: SELECT SCOPE_IDENTITY() & INSERT Problems Pin
Declan Bright20-Mar-08 2:36
Declan Bright20-Mar-08 2:36 
GeneralNeed sql query Pin
Exelioindia20-Mar-08 1:58
Exelioindia20-Mar-08 1:58 
QuestionHow to get Connection.GetSchema("columns",restrictions) in order by ordinal position Pin
ashish bhakhar20-Mar-08 1:27
ashish bhakhar20-Mar-08 1:27 
QuestionHow to get connection.schema("columns",restrictions) in order by ordinal position Pin
ashish bhakhar20-Mar-08 0:58
ashish bhakhar20-Mar-08 0:58 
AnswerRe: How to get connection.schema("columns",restrictions) in order by ordinal position Pin
Mark J. Miller20-Mar-08 11:06
Mark J. Miller20-Mar-08 11:06 
GeneralRe: How to get connection.schema("columns",restrictions) in order by ordinal position Pin
ashish bhakhar20-Mar-08 19:57
ashish bhakhar20-Mar-08 19:57 
Generaldata tables for a job site Pin
AbhishekAgarwal1519-Mar-08 22:04
AbhishekAgarwal1519-Mar-08 22:04 
GeneralRe: data tables for a job site Pin
Ashfield19-Mar-08 22:43
Ashfield19-Mar-08 22:43 
GeneralRe: data tables for a job site Pin
Pete O'Hanlon22-Mar-08 9:31
mvePete O'Hanlon22-Mar-08 9:31 
GeneralRe: data tables for a job site Pin
KrisnNala25-Mar-08 9:09
KrisnNala25-Mar-08 9:09 
QuestionOCP Pin
KambojR19-Mar-08 21:56
KambojR19-Mar-08 21:56 
GeneralRe: OCP Pin
Ashfield20-Mar-08 3:20
Ashfield20-Mar-08 3:20 
Questionhow do I use sql triggers to replicate update changes across two different databases Pin
GDMFSOB19-Mar-08 20:56
GDMFSOB19-Mar-08 20:56 

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.