Click here to Skip to main content
15,913,685 members
Home / Discussions / Database
   

Database

 
AnswerRe: To get the current value for SORT_IN_TEMPDB Pin
Wendelius27-Jan-09 19:42
mentorWendelius27-Jan-09 19:42 
GeneralRe: To get the current value for SORT_IN_TEMPDB Pin
Arun Abraham Jose30-Jan-09 0:33
Arun Abraham Jose30-Jan-09 0:33 
GeneralRe: To get the current value for SORT_IN_TEMPDB Pin
Wendelius30-Jan-09 7:27
mentorWendelius30-Jan-09 7:27 
GeneralAutoincrement per field Pin
Mustafa Ismail Mustafa27-Jan-09 18:56
Mustafa Ismail Mustafa27-Jan-09 18:56 
GeneralRe: Autoincrement per field Pin
Wendelius27-Jan-09 19:35
mentorWendelius27-Jan-09 19:35 
GeneralRe: Autoincrement per field Pin
Mustafa Ismail Mustafa27-Jan-09 20:51
Mustafa Ismail Mustafa27-Jan-09 20:51 
GeneralRe: Autoincrement per field Pin
Wendelius27-Jan-09 20:53
mentorWendelius27-Jan-09 20:53 
GeneralRe: Autoincrement per field [edit] [modified] Pin
Mustafa Ismail Mustafa27-Jan-09 21:15
Mustafa Ismail Mustafa27-Jan-09 21:15 
Quick question.

PatientID is a key, but the primary key would be the combined PatientID and the AdmittanceID, this shouldn't affect the implementation correct? Also, why do I need the cursor? Shouldn't the quick select statement in addition to incrementing the value by 1 be sufficient?

There shouldn't be gaps because the values increment for each patient, and each patient's visit is mutually exclusive of the other unless my implementation is way wrong.

[edit]
The way I see it, it can't be done as such, it needs the SP that's doing the insert to find the last admittanceID, increment that and insert it with the rest of the data.

Last modified: 17mins after originally posted --


Don't forget to vote if the response was helpful


Sig history

"dad" Ishmail-Samuel Mustafa

Unix is a Four Letter Word, and Vi is a Two Letter Abbreviation

GeneralRe: Autoincrement per field Pin
Wendelius27-Jan-09 21:49
mentorWendelius27-Jan-09 21:49 
GeneralRe: Autoincrement per field Pin
Mustafa Ismail Mustafa28-Jan-09 1:16
Mustafa Ismail Mustafa28-Jan-09 1:16 
GeneralRe: Autoincrement per field Pin
Wendelius28-Jan-09 1:24
mentorWendelius28-Jan-09 1:24 
GeneralRe: Autoincrement per field Pin
Mustafa Ismail Mustafa28-Jan-09 1:28
Mustafa Ismail Mustafa28-Jan-09 1:28 
GeneralRe: Autoincrement per field Pin
Wendelius28-Jan-09 1:43
mentorWendelius28-Jan-09 1:43 
Questionhow the oracle packages are implemeted in the sql server Pin
lakshmichawala27-Jan-09 17:33
lakshmichawala27-Jan-09 17:33 
AnswerRe: how the oracle packages are implemeted in the sql server Pin
Wendelius27-Jan-09 19:44
mentorWendelius27-Jan-09 19:44 
GeneralRe: how the oracle packages are implemeted in the sql server Pin
lakshmichawala27-Jan-09 20:21
lakshmichawala27-Jan-09 20:21 
GeneralRe: how the oracle packages are implemeted in the sql server Pin
Wendelius27-Jan-09 20:33
mentorWendelius27-Jan-09 20:33 
QuestionSimultaneous access to MS Access Pin
Member 382292227-Jan-09 12:20
Member 382292227-Jan-09 12:20 
AnswerRe: Simultaneous access to MS Access Pin
Wendelius27-Jan-09 12:46
mentorWendelius27-Jan-09 12:46 
GeneralRe: Simultaneous access to MS Access Pin
Member 38229225-Feb-09 13:48
Member 38229225-Feb-09 13:48 
AnswerRe: Simultaneous access to MS Access Pin
PIEBALDconsult27-Jan-09 15:13
mvePIEBALDconsult27-Jan-09 15:13 
GeneralRe: Simultaneous access to MS Access Pin
Member 38229225-Feb-09 13:50
Member 38229225-Feb-09 13:50 
GeneralRe: Simultaneous access to MS Access Pin
PIEBALDconsult5-Feb-09 14:11
mvePIEBALDconsult5-Feb-09 14:11 
GeneralRe: Simultaneous access to MS Access Pin
Member 38229225-Feb-09 14:32
Member 38229225-Feb-09 14:32 
QuestionGetting values from two tables. Pin
kurangu27-Jan-09 6:40
kurangu27-Jan-09 6:40 

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.