Viewing 15 posts - 3,961 through 3,975 (of 8,753 total)
Quick suggestion
😎
USE tempdb;
GO
SET NOCOUNT ON;
;WITH SAMPLE_DATA(ID,code,DesiredFlag) AS
(SELECT * FROM (VALUES
(1,'999010',1)
,(2,'000010',1)
...
January 17, 2016 at 3:25 pm
Jeff Moden (1/17/2016)
If you're sorting a BIGINT, I don't believe the sign bit will come into play at all for IP4 addresses.
True but still one is sorting on [D][C][A] which...
January 17, 2016 at 2:25 pm
Jeff Moden (1/17/2016)
Eirikur Eiriksson (1/17/2016)
thierry.vandurme (1/15/2016)
Btw, I use bigint to store IP4 addresses (less space and able to...
January 17, 2016 at 12:42 pm
Jeff Moden (1/15/2016)
thierry.vandurme (1/15/2016)
Btw, I use bigint to store IP4 addresses (less space and able to use ORDER...
January 17, 2016 at 12:33 pm
thierry.vandurme (1/15/2016)
Nice article. May come in use one day so glad you shared that.Btw, I use bigint to store IP4 addresses (less space and able to use ORDER BY)
Using a...
January 17, 2016 at 12:19 pm
Scott's fine code provides the correct answer but logic embedded in the code such as this is neither too readable nor maintainable and what is even worse is that it's...
January 16, 2016 at 1:17 am
nigel. (1/15/2016)
Orlando Colamatteo (1/13/2016)
sushantkatte (1/13/2016)
January 15, 2016 at 8:40 am
Steve Jones - SSC Editor (1/13/2016)
January 15, 2016 at 4:37 am
arkiboys (1/15/2016)
Using the foreachloop I loop through excel files to get the filename andthen start loading the data into sql server using oledb...
1- I get the filename
2- Then...
January 15, 2016 at 2:23 am
simone.hagiu (1/15/2016)
Im struggling with a problem here. I have an app with a lot of screens based on an sql database using a lot of stored procedures. The app...
January 15, 2016 at 2:18 am
jacksonandrew321 (1/14/2016)
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server...
January 15, 2016 at 12:27 am
GilaMonster (1/14/2016)
January 14, 2016 at 11:21 pm
krypto69 (1/14/2016)
I ended up using:
CREATE TRIGGER NoDeleteMedicalGroup ON dbo.Medical_Group
INSTEAD OF DELETE
AS
BEGIN
ROLLBACK;
END;
No items in the Medical group table should ever be deleted. So, this...
January 14, 2016 at 9:41 am
Jeff Moden (1/14/2016)
Orlando Colamatteo (1/13/2016)
January 14, 2016 at 7:52 am
sqlquaker (1/13/2016)
http://sqlperformance.com/2012/07/t-sql-queries/split-strings
Also check out...
January 14, 2016 at 7:30 am
Viewing 15 posts - 3,961 through 3,975 (of 8,753 total)