Click here to Skip to main content
15,894,314 members
Home / Discussions / Database
   

Database

 
AnswerRe: BCP CLI Cannot find Invalid object name. Pin
Corporal Agarn31-May-11 4:31
professionalCorporal Agarn31-May-11 4:31 
QuestionMSSQL Backup database - without BACKUP command Pin
David Hovey30-May-11 4:58
David Hovey30-May-11 4:58 
AnswerRe: MSSQL Backup database - without BACKUP command Pin
SilimSayo30-May-11 8:41
SilimSayo30-May-11 8:41 
AnswerRe: MSSQL Backup database - without BACKUP command [modified] Pin
Shameel31-May-11 0:33
professionalShameel31-May-11 0:33 
GeneralRe: MSSQL Backup database - without BACKUP command Pin
SilimSayo31-May-11 3:49
SilimSayo31-May-11 3:49 
GeneralRe: MSSQL Backup database - without BACKUP command Pin
Shameel31-May-11 4:22
professionalShameel31-May-11 4:22 
GeneralRe: MSSQL Backup database - without BACKUP command Pin
SilimSayo31-May-11 7:24
SilimSayo31-May-11 7:24 
QuestionStored Procedure Pin
berba29-May-11 23:09
berba29-May-11 23:09 
AnswerRe: Stored Procedure Pin
Luc Pattyn29-May-11 23:59
sitebuilderLuc Pattyn29-May-11 23:59 
AnswerRe: Stored Procedure Pin
SilimSayo30-May-11 2:31
SilimSayo30-May-11 2:31 
QuestionCopy table 1 to table 2 for missing data only Pin
MAW3026-May-11 17:02
MAW3026-May-11 17:02 
AnswerRe: Copy table 1 to table 2 for missing data only Pin
Blue_Boy26-May-11 21:14
Blue_Boy26-May-11 21:14 
AnswerRe: Copy table 1 to table 2 for missing data only Pin
PIEBALDconsult27-May-11 2:32
mvePIEBALDconsult27-May-11 2:32 
GeneralRe: Copy table 1 to table 2 for missing data only Pin
MAW3027-May-11 6:29
MAW3027-May-11 6:29 
They are in the same DB on the same server.

I copy all the old records to a similar table
Delete the orig table's records
Start with a blank table, this is a starting point to build other info, I do not want many of the records from the old included which I do not know until I start new.
Add new data
Then I want to insert old data where new data is left blank and do not wish to overwrite new data.

The previous response said the following:

Insert into table2 (col1,col2,col3)
select col1,col2,col3 from table1

I am thinking if I used the above then added

Where col1 IS LIKE '' or col1 IS NULL

but I would have to do this for every column, I was hoping there would be a quick easy way

Michael
GeneralRe: Copy table 1 to table 2 for missing data only Pin
jschell27-May-11 9:07
jschell27-May-11 9:07 
AnswerRe: Copy table 1 to table 2 for missing data only Pin
dasblinkenlight29-May-11 17:45
dasblinkenlight29-May-11 17:45 
QuestionProblem with POWER Pin
TheComputerMan26-May-11 4:14
TheComputerMan26-May-11 4:14 
AnswerRe: Problem with POWER Pin
TheComputerMan26-May-11 4:27
TheComputerMan26-May-11 4:27 
GeneralRe: Problem with POWER Pin
SilimSayo26-May-11 7:46
SilimSayo26-May-11 7:46 
AnswerRe: Problem with POWER Pin
dasblinkenlight29-May-11 17:52
dasblinkenlight29-May-11 17:52 
GeneralRe: Problem with POWER Pin
TheComputerMan29-May-11 18:00
TheComputerMan29-May-11 18:00 
GeneralRe: Problem with POWER Pin
dasblinkenlight30-May-11 1:10
dasblinkenlight30-May-11 1:10 
GeneralRe: Problem with POWER Pin
TheComputerMan30-May-11 1:20
TheComputerMan30-May-11 1:20 
QuestionReseting memory in DB [modified] Pin
MAW3025-May-11 20:08
MAW3025-May-11 20:08 
AnswerRe: Reseting memory in DB Pin
Ravi Sant29-May-11 19:10
Ravi Sant29-May-11 19:10 

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.