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

Database

 
GeneralRe: I need query for the employees who joined a weak ago Pin
soni uma13-Mar-08 20:27
soni uma13-Mar-08 20:27 
GeneralRe: I need query for the employees who joined a weak ago Pin
Khawar Abbas113-Mar-08 20:40
Khawar Abbas113-Mar-08 20:40 
Generaladd 30 days from a given date Pin
Member 387988113-Mar-08 19:34
Member 387988113-Mar-08 19:34 
GeneralRe: add 30 days from a given date Pin
Syed Mehroz Alam13-Mar-08 19:57
Syed Mehroz Alam13-Mar-08 19:57 
GeneralRe: add 30 days from a given date Pin
Khawar Abbas113-Mar-08 20:12
Khawar Abbas113-Mar-08 20:12 
GeneralRe: add 30 days from a given date Pin
Member 387988113-Mar-08 20:32
Member 387988113-Mar-08 20:32 
QuestionReference integrity on external ID? Pin
Roger Alsing13-Mar-08 11:07
Roger Alsing13-Mar-08 11:07 
GeneralIgnoring SQL Errors Pin
#realJSOP13-Mar-08 10:44
professional#realJSOP13-Mar-08 10:44 
Using SQL Server 2005...

I have a table (call it TableA) with a primary key column. I want to pull data from another table (call it TableB) and insert it into TableA using a stored procedure. There may be times when the record to be inserted into TableA will have a duplicate key value. I want the stored procedure to ignore duplicate key errors, and just move on to the next record to be inserted.

Is that possible? Does SQL already do it this way?

Alternatively, the stored procedure is creating tableB with new records that are to be added to tableA. What SQL statement will delete duplicates from table B before adding tableB's contents to tableA?


"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: Ignoring SQL Errors Pin
pmarfleet13-Mar-08 12:07
pmarfleet13-Mar-08 12:07 
GeneralRe: Ignoring SQL Errors Pin
#realJSOP13-Mar-08 12:18
professional#realJSOP13-Mar-08 12:18 
GeneralRe: Ignoring SQL Errors [SOLVED] Pin
#realJSOP13-Mar-08 12:17
professional#realJSOP13-Mar-08 12:17 
GeneralOleDbDataAdapter.Update() slowness Pin
A Wong13-Mar-08 4:45
A Wong13-Mar-08 4:45 
QuestionHow do i get a package variable from within the Data Flow SSIS Pin
ONeil Tomlinson13-Mar-08 2:24
ONeil Tomlinson13-Mar-08 2:24 
GeneralRe: How do i get a package variable from within the Data Flow SSIS Pin
Mark J. Miller13-Mar-08 5:38
Mark J. Miller13-Mar-08 5:38 
GeneralRe: How do i get a package variable from within the Data Flow SSIS Pin
ONeil Tomlinson14-Mar-08 1:11
ONeil Tomlinson14-Mar-08 1:11 
GeneralProblems creating DataTable in .DBF File Pin
Snaider13-Mar-08 1:08
Snaider13-Mar-08 1:08 
GeneralRe: Problems creating DataTable in .DBF File Pin
ChandraRam13-Mar-08 1:46
ChandraRam13-Mar-08 1:46 
QuestionRe: Problems creating DataTable in .DBF File Pin
Snaider13-Mar-08 2:05
Snaider13-Mar-08 2:05 
GeneralRe: Problems creating DataTable in .DBF File Pin
ChandraRam13-Mar-08 2:10
ChandraRam13-Mar-08 2:10 
GeneralRe: Problems creating DataTable in .DBF File Pin
Khawar Abbas113-Mar-08 2:43
Khawar Abbas113-Mar-08 2:43 
GeneralRe: Problems creating DataTable in .DBF File Pin
Snaider13-Mar-08 5:54
Snaider13-Mar-08 5:54 
GeneralRe: Problems creating DataTable in .DBF File Pin
perryf_0013-Mar-08 7:52
perryf_0013-Mar-08 7:52 
Generalbuilding a query for finding a value Pin
laziale12-Mar-08 22:42
laziale12-Mar-08 22:42 
GeneralRe: building a query for finding a value Pin
Colin Angus Mackay12-Mar-08 23:45
Colin Angus Mackay12-Mar-08 23:45 
GeneralRe: building a query for finding a value Pin
laziale12-Mar-08 23:48
laziale12-Mar-08 23:48 

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.