Viewing 15 posts - 16 through 30 (of 67 total)
I think I have you beat, Steve.
My wife lost her purse at a club one night years ago. Actually it was in the pocket of her sister's coat, and her...
August 20, 2008 at 7:26 am
One thing I love temp tables for is when I need to do some extensive processing on a large collection of rows. I want transactional consistency on the original data...
May 30, 2008 at 10:01 am
A somewhat tangential issue is to qualify all of your columns with a table prefix whenever there is more than one table involved. For one I think you save a...
April 30, 2008 at 10:00 am
I use a function and a view in tandem to handle lists of columns. This is useful because I don't have to remember the actual table name, I can just...
April 30, 2008 at 8:53 am
Carsten Petersen (3/16/2008)
CTE Returns Primary Key, Row Number and Total Record Count to @PagerTable, and is joined with...
March 16, 2008 at 3:29 pm
Adrian Hains (3/16/2008)
Carsten Petersen (3/16/2008)
Thats correct. The problem is, that i would like to define the record count on the @RecordCount (OUT) parameter, and not in the result (if possible).
I...
March 16, 2008 at 3:23 pm
Carsten Petersen (3/16/2008)
Thats correct. The problem is, that i would like to define the record count on the @RecordCount (OUT) parameter, and not in the result (if possible).
I have looked...
March 16, 2008 at 8:44 am
Not related to the original topic, but here is a tip on implementing indexed views. I typically create / optimize the objects in our database but the other devs are...
October 19, 2007 at 10:06 am
Maybe this was a glaring omission in my sql experience, but I had never considered updating a variable for each row in an update like that. The function itself is...
September 26, 2007 at 7:32 am
Along these same lines - anyone who is interested in optimizing their indexes based on live usage patterns should check out this blog entry from sqlcat on related dmv's:
http://blogs.msdn.com/sqlcat/archive/2006/02/13/531339.aspx
And you...
September 26, 2007 at 7:20 am
I assume the passwords you put in the script are not your production passwords?
Fire up replication monitor on server a. When you make a change on server a, do you...
September 18, 2007 at 10:33 am
JRodman, here is the demonstration code I mentioned:
create table test_table (number int primary key clustered, payload varchar(100));
go
WITH
-- first CTE which returns 10 rows (0-9)
digits AS (
SELECT 0 as Number
UNION...
August 29, 2007 at 11:41 am
JRodman,
I think the testing you have performed must have been in a different case than the one I was talking about. I'm only saying that the ideal approach is to...
August 29, 2007 at 11:40 am
JRodman,
I disagree with your statement of absolutes - that you should never return all columns from the CTE. See my post on page 2 of this thread - you should...
August 29, 2007 at 10:36 am
Ian,
I can tell you that sql does certainly not do a good job of pushing down constraints into the CTE based on joins outside of it.
I foolishly implemented some stuff...
August 29, 2007 at 7:31 am
Viewing 15 posts - 16 through 30 (of 67 total)