Click here to Skip to main content
15,905,504 members
Home / Discussions / Database
   

Database

 
QuestionComplex Query Pin
indian1437-Jul-10 12:29
indian1437-Jul-10 12:29 
AnswerRe: Complex Query Pin
Dr.Walt Fair, PE7-Jul-10 13:03
professionalDr.Walt Fair, PE7-Jul-10 13:03 
GeneralRe: Complex Query Pin
indian1437-Jul-10 14:22
indian1437-Jul-10 14:22 
QuestionSQL Select Question Pin
Aptiva Dave7-Jul-10 8:25
Aptiva Dave7-Jul-10 8:25 
AnswerRe: SQL Select Question Pin
Corporal Agarn7-Jul-10 8:56
professionalCorporal Agarn7-Jul-10 8:56 
AnswerRe: SQL Select Question Pin
Dr.Walt Fair, PE7-Jul-10 10:22
professionalDr.Walt Fair, PE7-Jul-10 10:22 
AnswerRe: SQL Select Question Pin
Jeremy Hutchinson14-Jul-10 8:01
professionalJeremy Hutchinson14-Jul-10 8:01 
QuestionUniqueIdentifier Foreign Key Pin
tek 20096-Jul-10 23:43
tek 20096-Jul-10 23:43 
I have two tables: table1 field contains the ID type UniqueIdentifier and table2 contains ID as foreign key when inserting values is not the same values filled in the two table table1 in this ID is filled eg e210d5ad-BC41-439th-b8e8-e8ed775ee932, and in table 2 it is filled with zero
So how do I do to unify all relationships necessary is active
the two queries are:

CREATE Procedure [dbo].[Insert1](@ID uniqueidentifier, @name varchar(10),@tel varchar(10))
AS
INSERT INTO [table1] ([ID], [name], [tel])
VALUES (NEWID(), @name, @tel)

CREATE Procedure [dbo].[Insert2](@ID uniqueidentifier, @cmd1 varchar(20))
AS
INSERT INTO [Table2] ([ID], [cmd1])
VALUES (@ID, @cmd1)

table1: ID Primary key
Table2:ID foreign Key

Thank you very much for your help
AnswerRe: UniqueIdentifier Foreign Key Pin
Ray Cassick7-Jul-10 2:25
Ray Cassick7-Jul-10 2:25 
AnswerRe: UniqueIdentifier Foreign Key Pin
Bernhard Hiller7-Jul-10 3:52
Bernhard Hiller7-Jul-10 3:52 
AnswerRe: UniqueIdentifier Foreign Key Pin
Mycroft Holmes7-Jul-10 13:09
professionalMycroft Holmes7-Jul-10 13:09 
QuestionExcel to Access Pin
KORCARI6-Jul-10 6:04
KORCARI6-Jul-10 6:04 
AnswerRe: Excel to Access Pin
riced6-Jul-10 6:50
riced6-Jul-10 6:50 
QuestionBlatant advertising Pin
Richard MacCutchan5-Jul-10 6:55
mveRichard MacCutchan5-Jul-10 6:55 
AnswerRe: Blatant advertising Pin
J4amieC5-Jul-10 21:56
J4amieC5-Jul-10 21:56 
GeneralRe: Blatant advertising Pin
Richard MacCutchan5-Jul-10 22:02
mveRichard MacCutchan5-Jul-10 22:02 
Questionsql function Pin
Thanusree Duth5-Jul-10 2:28
Thanusree Duth5-Jul-10 2:28 
AnswerRe: sql function Pin
Simon_Whale5-Jul-10 2:52
Simon_Whale5-Jul-10 2:52 
AnswerRe: sql function Pin
J4amieC5-Jul-10 3:24
J4amieC5-Jul-10 3:24 
Questionsql Pin
Thanusree Duth4-Jul-10 23:02
Thanusree Duth4-Jul-10 23:02 
AnswerRe: sql Pin
J4amieC4-Jul-10 23:58
J4amieC4-Jul-10 23:58 
GeneralRe: sql Pin
R. Giskard Reventlov5-Jul-10 0:22
R. Giskard Reventlov5-Jul-10 0:22 
GeneralRe: sql Pin
J4amieC5-Jul-10 0:41
J4amieC5-Jul-10 0:41 
GeneralRe: sql Pin
Mycroft Holmes5-Jul-10 0:48
professionalMycroft Holmes5-Jul-10 0:48 
AnswerRe: sql Pin
R. Giskard Reventlov5-Jul-10 0:04
R. Giskard Reventlov5-Jul-10 0:04 

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.