Viewing 15 posts - 51,241 through 51,255 (of 59,072 total)
Actually, you need to go back and review Kent's response... it's pretty much spot on.
April 6, 2008 at 7:21 pm
What is the Primary Key of the table called "Test"?
April 6, 2008 at 7:10 pm
It is possible in a view if you create a column called "TableName". Look at how they do it with the Information_Schema views... particularly the Information_Schema.Columns view.
April 6, 2008 at 9:53 am
Gates should give everyone who bought Vista a free copy of XP to install whilst we all wait for a decent version of Windows (7?) to come out in 2009....
April 6, 2008 at 9:36 am
Since it worked fine for both Matt and I, I've got to ask... are you actually using SQL Server or are you using some other RDBMS?
April 6, 2008 at 9:32 am
jos.haemers (4/6/2008)
I've posted a CREATE script for the facttable with a few records. I can't post any queries because there an no queries yet. In the future the customer wants...
April 6, 2008 at 9:30 am
Rather than "warming the cache"... try analyzing the code to see where indexes would help you solve the problem.
April 5, 2008 at 11:07 am
As previously stated, Cursor and loops of this nature WILL kill any hopes of performance...
Your pseudo code said...
-- IF TotalPrice > 0 ...sqlCodeHere
What do you want to do for...
April 5, 2008 at 11:03 am
Something is very wrong here... the original query posted by the OP works just fine.
April 5, 2008 at 11:00 am
You might want to post the CREATE statement for your fact table and maybe 10 or so rows of data (see the URL in my signature line for the right...
April 5, 2008 at 10:55 am
Not enough info... will you always have a max of 2 items. Also, it may make a difference if we knew why you wanted to do this.
April 5, 2008 at 10:53 am
Heh... funny thing is, I'm "old school" as well and I always say "S-Q-L" instead of "sequal".
As you said, doesn't matter how I hear it.
April 5, 2008 at 7:44 am
Wow! I totally missed the fact that the object of the update was a system table.
Updating the system tables directly is "Death by SQL". Don't do it... period.
April 5, 2008 at 7:42 am
Outstanding! Thank you for the feedback!
April 5, 2008 at 7:40 am
Viewing 15 posts - 51,241 through 51,255 (of 59,072 total)