Click here to Skip to main content
       

Database

 
AnswerRe: Database PinmemberJörgen Andersson22-Feb-13 11:11 
AnswerRe: Database PinmemberPIEBALDconsult22-Feb-13 13:38 
QuestionSQL Server + Procedure or function has too many arguments specified PinmemberHemant Thaker21-Feb-13 18:53 
AnswerRe: SQL Server + Procedure or function has too many arguments specified PinmvpSandeep Mewara21-Feb-13 19:00 
AnswerRe: SQL Server + Procedure or function has too many arguments specified PinmemberMycroft Holmes21-Feb-13 20:29 
AnswerRe: Resolved --> SQL Server + Procedure or function has too many arguments specified PinmemberHemant Thaker21-Feb-13 22:11 
QuestionDual Primary Key? PinmemberRichard.Berry10021-Feb-13 6:25 
AnswerRe: Dual Primary Key? PinmvpEddy Vluggen21-Feb-13 7:10 
A primary key (often) consists out of multiple columns. I'd suggest putting the primary key on BOTH, and to add an autoincrement-field and make that unique. Use the autoincrement-column to make relations to other tables.
ALTER TABLE dbo.MasterTable ADD CONSTRAINT PK_MasterTable
PRIMARY KEY CLUSTERED (WareHouseId, ProductId);
(And call the autoincrement "MasterTableId")
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it ^]

GeneralRe: Dual Primary Key? PinmemberRichard.Berry10021-Feb-13 7:42 
GeneralRe: Dual Primary Key? PinmvpEddy Vluggen21-Feb-13 8:32 
GeneralRe: Dual Primary Key? PinmemberMycroft Holmes21-Feb-13 12:08 
GeneralRe: Dual Primary Key? PinmemberPIEBALDconsult21-Feb-13 18:14 
GeneralRe: Dual Primary Key? PinmvpEddy Vluggen21-Feb-13 22:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web02 | 2.8.140922.1 | Last Updated 23 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid