Viewing 15 posts - 2,386 through 2,400 (of 6,486 total)
You just want to keep on concatenating that stuff on to @sql, then you can either print @sql (and execute it on your own), ro run it through sp_executeSQL.
Add this...
October 16, 2008 at 6:43 pm
You may be running into parameter sniffing.
This is a pretty decent article explaining what it is and how to avoid it:
http://omnibuzz-sql.blogspot.com/2006/11/parameter-sniffing-stored-procedures.html
October 16, 2008 at 3:21 pm
rbarryyoung (10/16/2008)
Maybe I am out of date, but isn't IIS free?
I think so, with some kind of wrinkle. As I recall, the wrinkle sounds something like "if you're building...
October 16, 2008 at 1:34 pm
Require? No, but you can certainly stay on the same schedule.
If you mean do I need to back up the log files to free up the space inside...
October 16, 2008 at 10:48 am
Not exactly - It doesn't break the chain, but point-in-time restores are not available while in bullk-logged mode.
This is a decent summary of the differences:
October 16, 2008 at 10:12 am
Dave (10/16/2008)
If I have two indexes, using the same...
October 16, 2008 at 9:52 am
The data rows of the underlying table are not sorted and stored in order based on their nonclustered keys.
I think this statement corroborates my earlier interpretation of how data will...
October 16, 2008 at 9:18 am
Marios Philippopoulos (10/16/2008)
October 16, 2008 at 8:50 am
PaulB (10/16/2008)
You should create a PK when you want to have RI enforced.
If you want to enforce uniqueness an...
October 16, 2008 at 8:45 am
chintan kotwal (10/16/2008)
create table employee
(id INT,
Name VARCHAR(50))
Then Created a Unique Clustered index on that table.
CREATE UNIQUE CLUSTERED INDEX CIX...
October 16, 2008 at 8:44 am
The non-clustered index stores the key values in order. The leaf part of the B-tree has the clustered key. So the pages would look like (AFTER the index...
October 16, 2008 at 8:37 am
karthikeyan (10/16/2008)
Glen,You are correct !
My point is, we can't use local variable in the order by clause directly.
do you agree ?
Without using dynamic SQL, that's correct.
October 16, 2008 at 8:16 am
Jeff Moden (10/15/2008)
You're correct. Since the rows are going to be added on a...
October 16, 2008 at 7:55 am
Marios Philippopoulos (10/16/2008)
I'm not sure I follow though. How would the non-clustered indexes get fragmented? The table population is done all at once, in a...
October 16, 2008 at 7:53 am
Jeff Moden (10/15/2008)
Matt Miller (10/15/2008)
Jeff Moden (10/15/2008)
October 15, 2008 at 9:51 pm
Viewing 15 posts - 2,386 through 2,400 (of 6,486 total)