May 8, 2007 at 2:50 am
Is it better to have a lookup table with a datetime column and 3 or 4 int columns, or have a stored procedure that builds data from linked tables on-the-fly?
Which would be better in terms of performance, or does it come down to preference?
May 8, 2007 at 3:17 am
Can you be a little more specific about what you're trying?
In general, for performance question, my first answer is 'try both and see which is better'
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
May 8, 2007 at 5:35 am
Thanks for your response, I typed a full explanation which got eaten by a browser crash.
The upshot was I will try both!
May 8, 2007 at 10:51 pm
I don't know your exact problem, but I just wanted to say, I've never encountered any relational database problem that absolutely had to be solved by a stored procedure that generates lookup table data on the fly. I've only been doing this stuff for a few years now but it's been my experience that there is almost always a simpler solution than something like that.
May 8, 2007 at 11:59 pm
Please post some details when you get a chance. I'm interested in seeing what you're doing.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply