Click here to Skip to main content
15,885,985 members
Home / Discussions / Database
   

Database

 
AnswerRe: char(255) vs varchar(255) vs varchar(MAX) Pin
PIEBALDconsult2-Feb-13 5:22
mvePIEBALDconsult2-Feb-13 5:22 
GeneralRe: char(255) vs varchar(255) vs varchar(MAX) Pin
devvvy2-Feb-13 23:30
devvvy2-Feb-13 23:30 
GeneralRe: char(255) vs varchar(255) vs varchar(MAX) Pin
jschell3-Feb-13 6:36
jschell3-Feb-13 6:36 
QuestionSP Unexpected Behavior Pin
eddieangel1-Feb-13 7:19
eddieangel1-Feb-13 7:19 
QuestionEncrypt a field in the database. Pin
vanikanc1-Feb-13 5:31
vanikanc1-Feb-13 5:31 
AnswerRe: Encrypt a field in the database. Pin
Eddy Vluggen1-Feb-13 7:02
professionalEddy Vluggen1-Feb-13 7:02 
Questioncheck before insert Pin
vanikanc31-Jan-13 4:55
vanikanc31-Jan-13 4:55 
AnswerRe: check before insert Pin
Eddy Vluggen31-Jan-13 5:00
professionalEddy Vluggen31-Jan-13 5:00 
vanikanc wrote:
Is there a way to check, before an insert if that particular order already exists in the table?

Yes; the primary key. That's the one that uniquely identifies a tupel/record. Hence, that's what you'd need to check. Most databases will do this automatic and throw an error if the record already exists.

vanikanc wrote:
if the process fails in the middle, and i want to start it again, if there are already some rows in the table, not to insert those.

Select a list of all primary key-values in the table, and skip those inserts.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
They hate us for our freedom![^]

GeneralRe: check before insert Pin
Eddy Vluggen31-Jan-13 10:35
professionalEddy Vluggen31-Jan-13 10:35 
AnswerRe: check before insert Pin
R. Giskard Reventlov31-Jan-13 8:10
R. Giskard Reventlov31-Jan-13 8:10 
GeneralRe: check before insert Pin
vanikanc31-Jan-13 8:21
vanikanc31-Jan-13 8:21 
GeneralRe: check before insert Pin
R. Giskard Reventlov31-Jan-13 10:09
R. Giskard Reventlov31-Jan-13 10:09 
GeneralRe: check before insert Pin
Chris Meech31-Jan-13 10:24
Chris Meech31-Jan-13 10:24 
GeneralRe: check before insert Pin
R. Giskard Reventlov31-Jan-13 10:25
R. Giskard Reventlov31-Jan-13 10:25 
AnswerRe: check before insert Pin
Corporal Agarn1-Feb-13 7:50
professionalCorporal Agarn1-Feb-13 7:50 
GeneralRe: check before insert Pin
vanikanc1-Feb-13 7:55
vanikanc1-Feb-13 7:55 
GeneralRe: check before insert Pin
Corporal Agarn1-Feb-13 8:25
professionalCorporal Agarn1-Feb-13 8:25 
QuestionIdentify DML changes between two databases Pin
Member 313707830-Jan-13 20:56
Member 313707830-Jan-13 20:56 
AnswerRe: Identify DML changes between two databases Pin
Mycroft Holmes30-Jan-13 21:11
professionalMycroft Holmes30-Jan-13 21:11 
GeneralRe: Identify DML changes between two databases Pin
Member 313707830-Jan-13 21:26
Member 313707830-Jan-13 21:26 
QuestionUpdate a flag based on portion of data avialble in other column Pin
yuvachandra30-Jan-13 10:20
yuvachandra30-Jan-13 10:20 
AnswerRe: Update a flag based on portion of data avialble in other column Pin
Mycroft Holmes30-Jan-13 11:56
professionalMycroft Holmes30-Jan-13 11:56 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
yuvachandra31-Jan-13 6:08
yuvachandra31-Jan-13 6:08 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
Mycroft Holmes31-Jan-13 11:32
professionalMycroft Holmes31-Jan-13 11:32 
GeneralRe: Update a flag based on portion of data avialble in other column Pin
yuvachandra31-Jan-13 11:45
yuvachandra31-Jan-13 11:45 

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.