Viewing 15 posts - 76 through 90 (of 607 total)
eval_stuff (8/13/2014)
When you do a SELECT and the characters NULL are returned in the results set where there is nothing
NULL is not nothing, NULL is unknown.
August 14, 2014 at 5:42 am
Deuce (8/7/2014)
August 14, 2014 at 4:39 am
WAIT_AT_LOW_PRIORITY is for online index builds
August 13, 2014 at 5:53 am
Can I ask what you are trying to achieve?
You script is generating an ALTER DATABASE statement using the name of your data file as the database name and using the...
August 13, 2014 at 5:39 am
Something along these lines
UPDATE [tablename]
SET
[Country Code] =
CASE
WHEN [No] ='AF01' THEN 'ZA7'
ELSE NULL
END,
[Country Name]
CASE
WHEN [No] ='AF01' THEN 'South Africa'
ELSE NULL
END
August 13, 2014 at 5:22 am
WHEN Loc.[rent-group] = 'F' THEN COALESCE(CAST(ARENT.[NET-AMT]*12/52 AS DECIMAL(10, 2)),0) /*To work out weekly rent on monthly run*/
August 12, 2014 at 5:06 am
WITH CTE AS (
SELECT TOP 10000
ROW_NUMBER() OVER (ORDER BY a.object_id) - 1 AS RowNbr
FROM
sys.all_columns a
CROSS JOIN
sys.all_columns b)
SELECT
RowNbr
FROM
CTE
WHERE
RowNbr <= DATEDIFF(HOUR, '2014-08-07 10:00', '2014-08-07 18:00')
August 8, 2014 at 7:25 am
rajsin7786 (8/6/2014)
i have a 20G table which takes 40 minutes to update statistics with full scan.
i want to perform update statistics with full scan on a 350 GB table. ...
August 7, 2014 at 8:39 am
arrjay (8/6/2014)
What benefits do you gain from manually updating the statistics on the table in question?
The auto update uses a small sample rate which may not give you the best...
August 7, 2014 at 8:38 am
I'm afraid the answer is wrong, there is no intellisense in Query Analyzer. That product was replaced by SQL Server Management Studio.
August 7, 2014 at 6:00 am
The Non-clustered Index is performing a seek on LANGUAGEID and PRODUCT and using a predicate to filter on PARTITION.
The Clustered Index is performing a seek on LANGUAGEID, PRODUCT and PARTITION.
The...
August 5, 2014 at 8:51 am
SQLSeTTeR (7/31/2014)
Eirikur worked perfect. It did exactly what I needed it to do. Thanks again! 😀
What about 7/26/19?
declare @mycutoff date = '01/01/2020';
select [Date] = CONVERT(VARCHAR(10),CASE WHEN convert(datetime,'7/26/19',1) >= @mycutoff...
August 4, 2014 at 4:03 am
GilaMonster (8/1/2014)
August 2, 2014 at 3:49 am
So a Windows user logs into your application, then the application logs into the database using SQL authentication. You cannot trace for the original windows login.
Why don't you login to...
July 30, 2014 at 8:36 am
Viewing 15 posts - 76 through 90 (of 607 total)