Viewing 15 posts - 2,131 through 2,145 (of 6,036 total)
It does not do it for me.
Can you post your actual data to use with the test script above?
February 7, 2013 at 4:41 pm
JP10 (2/7/2013)
Any other concerns do you guys see that I am missing?
Do not shrink transaction log file.
Just empty it by running log backup, but do not shrink it.
Release/alocate space on...
February 7, 2013 at 4:35 pm
holyforce (2/1/2013)
SELECT *
FROM
(
SELECT CASE WHEN cus_no IN ('1','2')
AND product_type <> 'BIKE' THEN 1 ELSE 0 END AS the_column
FROM [aforementioned tables]
) subq
WHERE the_column = 1
Run just the inner subquery, it...
February 3, 2013 at 7:01 pm
long_shanks64 (1/23/2013)
The 'alternative' is to model all known attributes correctly in the first place using declarative referential integrity and constraints.
Sometimes it's just not possible.
Classic example is recording addresses.
Here in NZ...
January 29, 2013 at 10:17 pm
SELECT p.ProductID,
CASE WHEN R1.FirstProductID IS NULL and R2.SecondProductID IS NULL then 'Not Linked' ELSE 'Linked' END Relation
FROM @product p
LEFT JOIN @ProductRelation R1 ON R1.FirstProductID = p.ProductID
LEFT JOIN...
January 24, 2013 at 9:43 pm
Gazareth (1/23/2013)
CREATE UNIQUE CLUSTERED INDEX [idxTest] ON [dbo].[withClusteredIdx]
(
[yy] ASC,
[mm] ASC,
[Reference] ASC,
[MPAN] ASC,
[ElementID] ASC
) go
I think you'll see this view being used in...
January 24, 2013 at 9:38 pm
You may use @@NESTLEVEL.
If the proc is called from outside @@NESTLEVEL will be = 1.
If it's called from another procedure it will be 2 or more.
January 24, 2013 at 9:27 pm
souLTower (1/24/2013)
where IN (sub select)
has such a different execution plan than
WHERE IN (constants)
What I've done to improve the performance (and I'm not...
January 24, 2013 at 8:36 pm
zombieisdead2020 (1/22/2013)
How can I fix the first query?
You do not need escape the closing square brackets.
This should work:
Declare @string varchar(50) = 'abcd [[% SQL Server %]]' -- Matched
/* LIKE...
January 23, 2013 at 3:50 pm
r_slot (1/23/2013)
The following combinations give a negative result
What are you using?
January 23, 2013 at 1:33 pm
Can't believe it.
Turn out the SQL2000 solution is not that straight forward.
Or, should I say, is very limited.
If we change the function a little bit:
CREATE FUNCTION dbo.TimesN
...
January 22, 2013 at 7:56 pm
Eric M Russell (1/21/2013)
I still don't see the practical benefit of seperating phone / fax numbers from emails and twitter accounts.
There were no twitter accouns several years ago.
Database designed using...
January 21, 2013 at 12:41 pm
Using SQL_variant data type for Value sends half of the article's concerns to rubbish.
Including data size calculations.
Filtering by comparing to a datetime value will show only records having datetime base...
January 21, 2013 at 12:30 pm
Jeff Moden (8/5/2012)
mmilodragovich (8/1/2012)
January 17, 2013 at 9:47 pm
In a trigger it's pretty easy to check if the data could cause PK violation prior to running INSERT.
And divert execution if that's the case.
Or exclude the data which may...
October 9, 2012 at 6:46 pm
Viewing 15 posts - 2,131 through 2,145 (of 6,036 total)