Viewing 15 posts - 3,886 through 3,900 (of 8,761 total)
spaghettidba (1/25/2016)
Eirikur Eiriksson (1/25/2016)
spaghettidba (1/25/2016)
Eirikur Eiriksson (1/25/2016)
spaghettidba (1/25/2016)
SQL Server 2012 supports the FORMAT function:
select format(GETDATE(), 'dd-MMM-YYYY')
Gianluca, don't use the format function, it has terrible performance.
😎
It is a CLR function, so...
January 25, 2016 at 12:06 pm
Quick test set, similar results to the one Jeff posted
😎USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_DATES') IS NOT NULL DROP TABLE dbo.TBL_DATES;
CREATE TABLE dbo.TBL_DATES
(
TD_DATE DATETIME ...
January 25, 2016 at 11:55 am
Luis Cazares (1/25/2016)
ben.brugman (1/25/2016)
Luis Cazares (1/25/2016)
the problem often relies on keeping the default (us_english)
I do strongly object to the notion that the default language is English.
I know in almost...
January 25, 2016 at 10:43 am
JustMarie (1/25/2016)
January 25, 2016 at 10:18 am
spaghettidba (1/25/2016)
Eirikur Eiriksson (1/25/2016)
spaghettidba (1/25/2016)
Eirikur Eiriksson (1/25/2016)
spaghettidba (1/25/2016)
SQL Server 2012 supports the FORMAT function:
select format(GETDATE(), 'dd-MMM-YYYY')
Gianluca, don't use the format function, it has terrible performance.
😎
It is a CLR function, so...
January 25, 2016 at 9:13 am
spaghettidba (1/25/2016)
Eirikur Eiriksson (1/25/2016)
spaghettidba (1/25/2016)
SQL Server 2012 supports the FORMAT function:
select format(GETDATE(), 'dd-MMM-YYYY')
Gianluca, don't use the format function, it has terrible performance.
😎
It is a CLR function, so there's a startup...
January 25, 2016 at 9:01 am
If I'm reading this correctly then the sproc returns sales by either a product, a customer or both. This kind of code is not likely to benefit from recompilation as...
January 25, 2016 at 8:41 am
spaghettidba (1/25/2016)
SQL Server 2012 supports the FORMAT function:
select format(GETDATE(), 'dd-MMM-YYYY')
Gianluca, don't use the format function, it has terrible performance.
😎
January 25, 2016 at 8:24 am
Quick suggestion
😎
DECLARE @TD DATETIME = GETDATE();
SELECT CONCAT(DAY(@TD),CHAR(45),SUBSTRING(UPPER(DATENAME(MONTH,@TD)),1,3),CHAR(45), YEAR(@TD));
January 25, 2016 at 6:48 am
Brandie Tarvin (1/22/2016)
... I have a bit of code that monitors my database growth.
Quick question, are you intentionally returning one row for each database file?
😎
January 24, 2016 at 6:13 am
Here is an alternative method for collecting this (almost the same) information in a single dynamic sql query.
😎
DECLARE @SQL_STR NVARCHAR(MAX) = N'';
DECLARE @OUTER_SQL NVARCHAR(MAX) = N'
;WITH...
January 24, 2016 at 6:09 am
Hugo Kornelis (1/23/2016)
Eirikur Eiriksson (1/23/2016)
Ed Wagner (1/23/2016)
Eirikur Eiriksson (1/23/2016)
Ed Wagner (1/23/2016)
January 23, 2016 at 1:15 pm
Ed Wagner (1/23/2016)
Eirikur Eiriksson (1/23/2016)
ChrisM@Work (1/22/2016)
Ed Wagner (1/22/2016)
Greg Edwards-268690 (1/21/2016)
Eirikur Eiriksson (1/21/2016)
Greg Edwards-268690 (1/21/2016)
Steve Jones - SSC Editor (1/21/2016)
Greg Edwards-268690 (1/21/2016)
January 23, 2016 at 11:07 am
Ed Wagner (1/23/2016)
Eirikur Eiriksson (1/23/2016)
Ed Wagner (1/23/2016)
jasona.work (1/22/2016)
I'm checking my servers for DBs that aren't TDE enabled and I come across a DB I...
January 23, 2016 at 10:02 am
Ed Wagner (1/23/2016)
Eirikur Eiriksson (1/23/2016)
Ed Wagner (1/23/2016)
January 23, 2016 at 10:00 am
Viewing 15 posts - 3,886 through 3,900 (of 8,761 total)