Viewing 15 posts - 8,446 through 8,460 (of 8,760 total)
Do you have the option of adding a table and use the numeric column to link the two? ASCII code in base 10 is not going to be too useful...
April 30, 2014 at 8:19 am
This should get you started
๐
;with XMLNAMESPACES (
'http://www.abc.com/Details' as qsds)
Select
ID
,Version
,Start_Date
,End_Date
,DE.TAILS.value('Age[1]','varchar(50)') AS Age
,MO.DULE.value('.[1]','varchar(50)') AS MModule
,MD.*
FROM Table1 T1
OUTER APPLY...
April 30, 2014 at 7:03 am
Paul White (4/30/2014)
Eirikur Eiriksson (4/30/2014)
April 30, 2014 at 5:55 am
FYI: ran the test on the CLR Split, mm's memory optimized version and the lead window function version. Hardly any benefit of using the window function, 0.001 on average and...
April 30, 2014 at 4:34 am
April 30, 2014 at 12:39 am
ScottPletcher (4/29/2014)
Simple problems sometimes call for simple solutions. Why over-engineer everything?
I do agree but sometimes I get carried away on the cloud of perfection and everlasting solutions:-P
April 29, 2014 at 1:38 pm
ScottPletcher (4/29/2014)
April 29, 2014 at 1:28 pm
ScottPletcher (4/29/2014)
For only 5 chars, I wouldn't bother will all the CTEs and related folderol.
You know as well as all of us that requirements do change (par definition), are you...
April 29, 2014 at 1:06 pm
This is simply a brute force division, could be done this way
๐
DECLARE @DECIM DECIMAL(18,5) = 125521.12345;
/* Brute force division */
;WITH NX(N) AS (SELECT N FROM (VALUES
(1),(1),(1),(1),(1),(1),(1),(1),(1),(1)) AS X(N))
,NUMBERS(N)...
April 29, 2014 at 11:06 am
Chowdary's (4/29/2014)
I know this is some what get irritate to you,Very sorry for that but i hope that you can give me some suggestions for This.
Am using Windows Server...
April 29, 2014 at 10:24 am
David Burrows (4/29/2014)
Eirikur Eiriksson (4/29/2014)
Probably a string of hex values would be better, at least every character representation is then of the same length.Meh! use octal ๐
What about Base36, almost...
April 29, 2014 at 10:17 am
Sean Lange (4/29/2014)
April 29, 2014 at 9:44 am
Sean is quicker typing ๐
DECLARE @STRINGS TABLE
(
MYID INT IDENTITY(1,1) NOT NULL
,MYSTRING CHAR(4) NOT NULL
)
INSERT INTO @STRINGS (MYSTRING)
SELECT MYSTRING FROM
(VALUES...
April 29, 2014 at 9:29 am
Quick solution, you will have to sum up each row though
๐
USE AdventureWorks2012;
GO
DECLARE @TABLE_NAMESYSNAME= N'SalesOrderDetail';
DECLARE @TABLE_SCHEMASYSNAME= N'Sales';
DECLARE @SQL_STRNVARCHAR(MAX)= N''
SELECT
@SQL_STR = N'SELECT '+
STUFF((SELECT ',DATALENGTH(' + C.COLUMN_NAME + N') AS [DL_' +...
April 29, 2014 at 4:00 am
Set MIN and MAX memory to the desired number
๐
EXEC sys.sp_configure N'show advanced options', N'1' RECONFIGURE WITH OVERRIDE
GO
EXEC sys.sp_configure N'min server memory (MB)', N'4096000'
GO
EXEC sys.sp_configure N'max server memory (MB)', N'4096000'
GO
RECONFIGURE...
April 29, 2014 at 1:10 am
Viewing 15 posts - 8,446 through 8,460 (of 8,760 total)