Click here to Skip to main content
16,007,163 members
Home / Discussions / Database
   

Database

 
AnswerRe: Using trigger to insert data into seperate database. Pin
Private_Void6-Oct-06 9:11
Private_Void6-Oct-06 9:11 
AnswerRe: Using trigger to insert data into seperate database. Pin
Amit Kumar G7-Oct-06 6:13
Amit Kumar G7-Oct-06 6:13 
GeneralRe: Using trigger to insert data into seperate database. Pin
flippydeflippydebop8-Oct-06 0:22
flippydeflippydebop8-Oct-06 0:22 
GeneralRe: Using trigger to insert data into seperate database. Pin
flippydeflippydebop8-Oct-06 0:49
flippydeflippydebop8-Oct-06 0:49 
Questionhow to make connetion with database? Pin
With_problem5-Oct-06 21:28
With_problem5-Oct-06 21:28 
AnswerRe: how to make connetion with database? Pin
Rocky#8-Oct-06 1:18
Rocky#8-Oct-06 1:18 
Questionsub-select command problems arrrrg! Pin
ren_20015-Oct-06 13:51
ren_20015-Oct-06 13:51 
QuestionCombining tables [modified] Pin
Chris McGlothen5-Oct-06 11:35
Chris McGlothen5-Oct-06 11:35 
I am working on combining two tables(tbl1,tbl2) from one database into one table(tbl3) in a seperate database. tbl1 and tbl2 have the same column names as tbl3 but they lack a location ID column which will be used in tbl3.

Currently I can get the information transferred over to tbl3 via SELECT * INTO tbl3 FROM tbl1--tbl2, tbl1 and tbl2 both have the same primary key column but will have different locationID columns in the new table. I'm pretty sure I will have to use the SET IDENTITY_INSERT ON for tbl3 but how can I keep track of which table the data is coming from? Also how can I set the location ID, as this coincides with the primary field.

<modify> I am trying to do all of this in a stored procedure. I was thinking of setting the tbl2 ID values to '100 + originalValue' as both tables currently have the same values in the ID column.

Thanks in advance for any help.


-- modified at 17:53 Thursday 5th October, 2006


A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder<br\> An American football fan -
Go Seahawks!

Lil Turtle

AnswerRe: Combining tables Pin
Farhan Noor Qureshi5-Oct-06 12:12
Farhan Noor Qureshi5-Oct-06 12:12 
QuestionIn Search Of A Good Query Tool Pin
nullGumby5-Oct-06 7:11
nullGumby5-Oct-06 7:11 
AnswerRe: In Search Of A Good Query Tool Pin
yahao8-Oct-06 18:00
yahao8-Oct-06 18:00 
QuestionWhich database format is good enough? Pin
Joe Smith IX5-Oct-06 6:42
Joe Smith IX5-Oct-06 6:42 
AnswerRe: Which database format is good enough? Pin
Chris Buckett5-Oct-06 8:51
Chris Buckett5-Oct-06 8:51 
GeneralRe: Which database format is good enough? Pin
Joe Smith IX5-Oct-06 22:22
Joe Smith IX5-Oct-06 22:22 
GeneralRe: Which database format is good enough? Pin
Chris Buckett5-Oct-06 22:39
Chris Buckett5-Oct-06 22:39 
GeneralRe: Which database format is good enough? Pin
Joe Smith IX6-Oct-06 9:27
Joe Smith IX6-Oct-06 9:27 
GeneralRe: Which database format is good enough? Pin
Chris Buckett7-Oct-06 7:17
Chris Buckett7-Oct-06 7:17 
GeneralRe: Which database format is good enough? Pin
Joe Smith IX7-Oct-06 7:58
Joe Smith IX7-Oct-06 7:58 
GeneralRe: Which database format is good enough? Pin
Jerry Hammond7-Oct-06 12:58
Jerry Hammond7-Oct-06 12:58 
AnswerRe: Which database format is good enough? Pin
Jerry Hammond5-Oct-06 9:08
Jerry Hammond5-Oct-06 9:08 
QuestionLeft Join & Group By Pin
phimix5-Oct-06 4:40
phimix5-Oct-06 4:40 
AnswerRe: Left Join & Group By Pin
mr_lasseter5-Oct-06 4:52
mr_lasseter5-Oct-06 4:52 
QuestionRe: Left Join & Group By Pin
phimix5-Oct-06 5:17
phimix5-Oct-06 5:17 
AnswerRe: Left Join & Group By Pin
mr_lasseter5-Oct-06 5:34
mr_lasseter5-Oct-06 5:34 
QuestionRe: Left Join & Group By Pin
phimix5-Oct-06 6:02
phimix5-Oct-06 6:02 

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.