Viewing 15 posts - 226 through 240 (of 304 total)
You might want to read through this post.
I found it helpful.
On the second page Jane posted an excellent standards document.
http://www.sqlservercentral.com/Forums/Topic566838-146-2.aspx
October 23, 2008 at 8:07 pm
PhilPacha (10/23/2008)
It doesn't matter how quickly it can be done WRONG. 😉
Why is it wrong to convert it to a table?
October 23, 2008 at 3:36 pm
OK. That works. But it's still a lot slower. For four elements it was 16 ms. Joining to the table was 3 ms.
October 23, 2008 at 3:04 pm
upperbognor (10/23/2008)
October 23, 2008 at 2:40 pm
You can use a function to split the CSV parameter into a table, and then join to that table.
There are many different functions out there that will perform the split....
October 23, 2008 at 11:21 am
krayknot (10/20/2008)
It is not advisable to use NOLOCK as it returns the uncommited rows that may affects the final output
That is quite a generalization. If you are reporting off of...
October 20, 2008 at 10:52 am
Garadin (10/17/2008)
To be quite honest, I'm not even sure I'd need dynamic SQL for this project. I can probably circumvent it entirely with a little bit more work.
It really...
October 17, 2008 at 1:02 pm
Garadin (10/16/2008)
October 17, 2008 at 11:44 am
Garadin (10/13/2008)
rbarryyoung (10/13/2008)
Hmm, maybe I should write an article...:hehe:
I was kinda hoping you'd come to that conclusion :P.
We'll likely be generating a dynamic column list for the final select, as...
October 16, 2008 at 9:31 pm
I'm still a little confused about how the query plan works.
Here's what I thought:
There is one query plan per stored procedure. When the query is run an execution context is...
October 16, 2008 at 12:39 pm
GilaMonster (10/16/2008)
CREATE PROCEDURE AllOrSearch (
@SomeCode VARCHAR(30) = NULL
)
AS
IF @ID is null
SELECT * FROM SomeTable
ELSE
SELECT * FROM SomeTable WHERE SomeColumn = @SomeCode
If...
October 16, 2008 at 12:29 pm
GilaMonster (10/16/2008)
This can, in some cases, lead to poor query plans for some branches of the if/else that will hinder performance for some executions.
Can you please elaborate on this? When...
October 16, 2008 at 12:01 pm
You mentioned earlier that you had tried to create a cross tab report, but were unsuccessful.
Can you post that code here?
Also, are you allowed to use dynamic SQL from inside...
October 13, 2008 at 10:04 am
Shree (10/13/2008)
Hi, when I run the code , its giving me Incorrect syntax near XML.
That's strange. I copied & pasted the code straight from the forum. It's not giving me...
October 13, 2008 at 9:11 am
Viewing 15 posts - 226 through 240 (of 304 total)