Click here to Skip to main content
15,902,299 members
Home / Discussions / Database
   

Database

 
QuestionIs this unique ID generation procedure correct ? Pin
virang_2115-Sep-10 19:11
virang_2115-Sep-10 19:11 
AnswerRe: Is this unique ID generation procedure correct ? Pin
Mycroft Holmes15-Sep-10 19:55
professionalMycroft Holmes15-Sep-10 19:55 
AnswerRe: Is this unique ID generation procedure correct ? Pin
David Skelly15-Sep-10 22:52
David Skelly15-Sep-10 22:52 
QuestionT-SQL 2005 Inner join data from a view to the resultset of a stored procedure. Pin
Steven J Jowett13-Sep-10 5:54
Steven J Jowett13-Sep-10 5:54 
AnswerRe: T-SQL 2005 Inner join data from a view to the resultset of a stored procedure. Pin
Stryder_113-Sep-10 8:00
Stryder_113-Sep-10 8:00 
AnswerRe: T-SQL 2005 Inner join data from a view to the resultset of a stored procedure. Pin
David Mujica13-Sep-10 8:06
David Mujica13-Sep-10 8:06 
GeneralRe: T-SQL 2005 Inner join data from a view to the resultset of a stored procedure. Pin
Steven J Jowett13-Sep-10 12:08
Steven J Jowett13-Sep-10 12:08 
AnswerRe: T-SQL 2005 Inner join data from a view to the resultset of a stored procedure. Pin
Mycroft Holmes13-Sep-10 12:34
professionalMycroft Holmes13-Sep-10 12:34 
While you can join the 2 sets of data (you say the productid is common) by building sub selects and inner joins it will look horrible and will be difficult to support.

Go with the temp table or the table var, I often use a table var for pivot stuff because you are usually using dynamic SQL to build the pivot and therefore building the target table code is trivial. Also pivot data tends to be small in volume!
Never underestimate the power of human stupidity
RAH

AnswerRe: T-SQL 2005 Inner join data from a view to the resultset of a stored procedure. Pin
PIEBALDconsult13-Sep-10 17:01
mvePIEBALDconsult13-Sep-10 17:01 
QuestionDB architecture Pin
adilsardar13-Sep-10 2:46
adilsardar13-Sep-10 2:46 
AnswerRe: DB architecture Pin
R. Giskard Reventlov13-Sep-10 3:38
R. Giskard Reventlov13-Sep-10 3:38 
AnswerCentralized DB Pin
David Mujica13-Sep-10 4:13
David Mujica13-Sep-10 4:13 
GeneralRe: Centralized DB Pin
adilsardar14-Sep-10 0:03
adilsardar14-Sep-10 0:03 
AnswerRe: DB architecture Pin
Luc Pattyn13-Sep-10 4:32
sitebuilderLuc Pattyn13-Sep-10 4:32 
AnswerRe: DB architecture Pin
Eddy Vluggen13-Sep-10 10:11
professionalEddy Vluggen13-Sep-10 10:11 
GeneralRe: DB architecture Pin
adilsardar14-Sep-10 0:06
adilsardar14-Sep-10 0:06 
GeneralRe: DB architecture Pin
Eddy Vluggen14-Sep-10 7:36
professionalEddy Vluggen14-Sep-10 7:36 
AnswerRe: DB architecture Pin
PIEBALDconsult13-Sep-10 15:13
mvePIEBALDconsult13-Sep-10 15:13 
GeneralRe: DB architecture Pin
adilsardar14-Sep-10 0:07
adilsardar14-Sep-10 0:07 
AnswerRe: DB architecture Pin
Bernhard Hiller13-Sep-10 22:06
Bernhard Hiller13-Sep-10 22:06 
QuestionChanging CommandText changes Parameters Pin
Trevortni10-Sep-10 10:04
Trevortni10-Sep-10 10:04 
AnswerRe: Changing CommandText changes Parameters Pin
PIEBALDconsult10-Sep-10 15:02
mvePIEBALDconsult10-Sep-10 15:02 
GeneralRe: Changing CommandText changes Parameters Pin
Vimalsoft(Pty) Ltd14-Sep-10 8:24
professionalVimalsoft(Pty) Ltd14-Sep-10 8:24 
GeneralRe: Changing CommandText changes Parameters Pin
PIEBALDconsult14-Sep-10 18:00
mvePIEBALDconsult14-Sep-10 18:00 
AnswerRe: Changing CommandText changes Parameters Pin
Abhishek Sur12-Sep-10 1:42
professionalAbhishek Sur12-Sep-10 1:42 

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.