Click here to Skip to main content
15,914,010 members
Home / Discussions / Database
   

Database

 
GeneralRe: Parameterised SQL Insert fails; plain text Insert works Pin
hairy_hats29-Jun-11 21:35
hairy_hats29-Jun-11 21:35 
AnswerRe: Parameterised SQL Insert fails; plain text Insert works Pin
dasblinkenlight29-Jun-11 17:30
dasblinkenlight29-Jun-11 17:30 
QuestionDTS not working in sql 2008 Pin
Robymon28-Jun-11 22:21
Robymon28-Jun-11 22:21 
AnswerRe: DTS not working in sql 2008 Pin
Corporal Agarn29-Jun-11 3:41
professionalCorporal Agarn29-Jun-11 3:41 
AnswerRe: DTS not working in sql 2008 Pin
Mycroft Holmes29-Jun-11 12:59
professionalMycroft Holmes29-Jun-11 12:59 
QuestionChanging DAO to ADO Pin
Kyudos28-Jun-11 14:34
Kyudos28-Jun-11 14:34 
AnswerRe: Changing DAO to ADO Pin
Kyudos28-Jun-11 14:39
Kyudos28-Jun-11 14:39 
Questioncheck the key value before inserting data [modified]---ALREADY SOLVED--- Pin
Dhyanga28-Jun-11 10:46
Dhyanga28-Jun-11 10:46 
let suppose i have table like this:

id  name    key
1   sam     sam1
2   joy     joy2


name and key are inserted by user. Now whenever i am inserting new value, I need to check whelther I have that key exists or not. If yes, do nothing and if no, insert it. I know how to do it in dot net page but can I do this in sql query itself ? If yes, can anyone please help me..
suchita
modified on Wednesday, June 29, 2011 9:32 AM

AnswerRe: check the key value before inserting data Pin
UNCRushFan28-Jun-11 11:11
UNCRushFan28-Jun-11 11:11 
AnswerRe: check the key value before inserting data Pin
Mycroft Holmes28-Jun-11 12:50
professionalMycroft Holmes28-Jun-11 12:50 
AnswerRe: check the key value before inserting data Pin
Chris Meech28-Jun-11 12:56
Chris Meech28-Jun-11 12:56 
GeneralRe: check the key value before inserting data Pin
Mycroft Holmes28-Jun-11 18:07
professionalMycroft Holmes28-Jun-11 18:07 
AnswerRe: check the key value before inserting data Pin
Eddy Vluggen29-Jun-11 2:35
professionalEddy Vluggen29-Jun-11 2:35 
GeneralRe: check the key value before inserting data Pin
Mycroft Holmes29-Jun-11 12:45
professionalMycroft Holmes29-Jun-11 12:45 
GeneralRe: check the key value before inserting data Pin
Chris Meech29-Jun-11 7:07
Chris Meech29-Jun-11 7:07 
AnswerRe: check the key value before inserting data Pin
PIEBALDconsult28-Jun-11 14:42
mvePIEBALDconsult28-Jun-11 14:42 
GeneralRe: check the key value before inserting data Pin
J4amieC28-Jun-11 22:21
J4amieC28-Jun-11 22:21 
GeneralRe: check the key value before inserting data Pin
PIEBALDconsult29-Jun-11 2:49
mvePIEBALDconsult29-Jun-11 2:49 
AnswerRe: check the key value before inserting data Pin
Eddy Vluggen29-Jun-11 2:36
professionalEddy Vluggen29-Jun-11 2:36 
GeneralRe: check the key value before inserting data Pin
PIEBALDconsult29-Jun-11 2:45
mvePIEBALDconsult29-Jun-11 2:45 
AnswerRe: check the key value before inserting data Pin
Eddy Vluggen29-Jun-11 2:50
professionalEddy Vluggen29-Jun-11 2:50 
GeneralRe: check the key value before inserting data Pin
PIEBALDconsult29-Jun-11 14:32
mvePIEBALDconsult29-Jun-11 14:32 
AnswerRe: check the key value before inserting data Pin
Eddy Vluggen29-Jun-11 23:11
professionalEddy Vluggen29-Jun-11 23:11 
GeneralRe: check the key value before inserting data Pin
PIEBALDconsult30-Jun-11 3:01
mvePIEBALDconsult30-Jun-11 3:01 
QuestionRe: check the key value before inserting data Pin
Eddy Vluggen30-Jun-11 9:24
professionalEddy Vluggen30-Jun-11 9:24 

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.