Viewing 15 posts - 30,976 through 30,990 (of 59,101 total)
Mile Higher Than Sea Level (2/26/2012)
...just for the overhead of the VM swapping
It's been a while since I've actually worked with VM of any kind so it might no longer...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 10:11 pm
rvasanth (2/26/2012)
I am using SQL Server 2008 R2.
I am having an table with 10M records (around 40 fields). If i fetch 1M records with simple...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 9:59 pm
eba.seller (2/26/2012)
I have read several articles and still haven't found the answer to this. Can anymore give me a step by step answer to my problem?
Search for "how to restore...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 9:57 pm
Awesome, Uwe!
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 8:20 pm
Add the default to the parameter in the stored procedure itself.
CREATE PROCEDURE dbo.SomeProc
Parameter1 INT, --This has no default
Parameter2 VARCHAR(8000) = 'SomeValue' --This has a default of 'SomeValue'
AS
procbodyhere...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 3:27 pm
GilaMonster (2/26/2012)
Jeff Moden (2/26/2012)
Subsequent runs, even on so simple a problem, show what I'm talking about (you and I actually agree on this... optional parameters will always be a problem).
That...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 3:17 pm
faijurrahuman17 (2/25/2012)
Here i use the DelimitedSplit8K Function and splitting the string.
DECLARE @TMP TABLE(TID INT,ITEM VARCHAR(MAX))
DECLARE @STR VARCHAR(MAX)
SET @STR='COL1=VAL1,COL2=VAL2,COL3=VAL3,COL4=VAL4,COL5=VAL5'
INSERT INTO @TMP
select * from dbo.DelimitedSplit8K(@STR,'=')
SELECT *
FROM @TMP
TID COLUMNNAME
1COL1
2VAL1,COL2
3VAL2,COL3
4VAL3,COL4
5VAL4,COL5
6VAL5
I...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 2:20 pm
Dave Ballantyne (2/26/2012)
But more than it not being good functionaly, it is very bad practice.
Ok... so what is the alternative best practice that you're offering?
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 2:14 pm
I prefer not using the PIVOT operator for many reasons including some that are performance related. Please see the following article for more information.
http://www.sqlservercentral.com/articles/T-SQL/63681/
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 2:06 pm
GilaMonster (2/26/2012)
The point of the dynamic SQL approach is to have a number of plans for the specific combinations of parameters that are passed.
You example is a good one for...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 1:57 pm
I guess my take on such a thing (and it IS just an opinion, not an argument) is that if someone is passing "at least hundreds" in such a list,...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 1:08 pm
Gail has hit the nail I wanted to talk about squarely on the head in the following.
GilaMonster (2/26/2012)
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 12:10 pm
GilaMonster (2/26/2012)
While there are various T-SQL...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 9:44 am
Jeff Moden (2/26/2012)
BSavoie (2/25/2012)
Actually I have many more search criteria. All are strings. Can I still take the simple approach or does that change things?Thanks as always!
If that's the case,...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 9:10 am
BSavoie (2/25/2012)
Actually I have many more search criteria. All are strings. Can I still take the simple approach or does that change things?Thanks as always!
If that's the case, I definitely...
--Jeff Moden
Change is inevitable... Change for the better is not.
February 26, 2012 at 7:41 am
Viewing 15 posts - 30,976 through 30,990 (of 59,101 total)