Viewing 15 posts - 24,451 through 24,465 (of 26,486 total)
I had a little time here at work and started looking at your code a bit. Something I noticed was the use of 3 part naming conventions in your...
July 11, 2008 at 2:58 pm
I only gave you the query, you'll need to put it into your proc.
ALTER PROCEDURE [dbo].[spTEST]
(
@LineNum VARCHAR(10) = NULL,
...
July 11, 2008 at 11:14 am
charles.frank (7/11/2008)
July 11, 2008 at 10:36 am
mailsar (7/11/2008)
I have a Question,
Is 1 better or 2 better(Join).
1.
FROM Product, ProductType
WHERE ProductType.ProductTypeID = @ProductTypeID AND
...
July 11, 2008 at 10:17 am
CTE's alone won't eliminate your cursors. You have to totally relook at the process from set based view instead of a row by row view as is done with...
July 11, 2008 at 10:10 am
rbarryyoung (7/11/2008)
Missing: sample data for the tables (in the form of INSERT statements that can be cut, paste, and run in SSMS to load the tables).
still not seeing it.
You noticed,...
July 11, 2008 at 6:29 am
john.richter (7/10/2008)
...--witness the gentleman above who has yet to be introduced to upper case. I've noticed my own growing propensity to skip words and drop vowels. ...
Could be...
July 10, 2008 at 3:45 pm
What we have: current code, table DDL, sample output.
Missing: sample data for the tables (in the form of INSERT statements that can be cut, paste, and run in SSMS to...
July 10, 2008 at 3:36 pm
Although the WHILE loop eliminates the CURSOR, it doesn't eliminate the RBAR. You are still doing row by row processing.
In order to really help, we need additional information. ...
July 10, 2008 at 1:26 pm
Marty Benson (7/9/2008)
I always just use "JOIN" without the "INNER" and I was...
July 9, 2008 at 4:06 pm
Also, you can't use a variable in a select statement for a tablename, unless the variable itself is a table variable (confused?).
What you are trying to do would require the...
July 9, 2008 at 12:04 pm
Betty Sun (7/9/2008)
I have a stored procedure. But it seems that you cannot use variable for a table. variables are only can be used in condition expression? What about...
July 9, 2008 at 11:50 am
Okay. Good to know. And yes, I still want to run the UPDATEUSAGE. It just really bothered me that I couldn't remember it.
Thanks!
😎
July 9, 2008 at 10:56 am
Viewing 15 posts - 24,451 through 24,465 (of 26,486 total)