Viewing 15 posts - 55,531 through 55,545 (of 59,072 total)
Stephen,
I agree... you did it correctly and the tool is wrong. Obviously, the tool doesn't know what the heck a cross-reference table is. ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 6:05 pm
We had the same problem where I work. The REAL problem is the sequence table... the code called SPGetNextSequence can only return one sequence number (think GET NextID). This will...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 5:13 pm
What makes it questionable (in my feeble mind) is the idea of code reuse... those other stored procedures rely on the temp table being there when they start... you can't...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 5:07 pm
| A relational database doesn't really do random well... If you want truly random results from one query to... |
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 4:59 pm
And, what is the Primary Key of the table?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 4:50 pm
For the code example given, there is absolutely no reason to force an index... it does nothing for the code.
And, I agree, 16 column PK???? CLUSTERED??? So much for speedy...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 4:50 pm
So why did one of the BBB rows go away? BBB only had two rows...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 4:44 pm
... and, just to be on the safe side, you should enclose the server instance name in double quotes because of the special characters it contains.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 7:54 am
'sqlcmd -E -dWatauga_Test -SNV-DEVSQL1\DAPHNE -Q"exec SP_GENERATE_INSERTS '+@TAB_NAME+'" >>c:\myTable.sql'
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 7:51 am
Or could it simply be the special characters in the instance name that should be quoted? ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 3, 2007 at 7:31 am
LOL... I know what you mean... probably a really bad habit but the only time I normally use the ANSI "Join" statements is when an outer join is present. --Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
August 3, 2007 at 7:21 am
Yeowch! When you jab someone in the eye with a sharp stick, you should at least tell them why ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2007 at 6:43 pm
Guess it does help to click on the Author's name and see previous posts... especially if you remember something similar. Thanks for identifying the dead horse, Phil. ![]()
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2007 at 6:30 pm
Sam, I think step 1 would be to post you question in the Access forum. Lots of us just don't go anywhere near Access and, as you know, the solutions...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2007 at 6:20 pm
Heh... I try to write "Fine" solutions because I've had "Mo-den-enough" with the ones that aren't
Thanks for the great compliment, Steve!
--Jeff Moden
Change is inevitable... Change for the better is not.
August 2, 2007 at 6:15 pm
Viewing 15 posts - 55,531 through 55,545 (of 59,072 total)