Viewing 15 posts - 7,456 through 7,470 (of 8,753 total)
Ed Wagner (8/20/2014)
Eirikur Eiriksson (8/20/2014)
Quick question, what SQL Server Version are you on (SELECT @@VERSION)?😎
SQL 2008 SP3 64-bit Standard Edition running on Windows Server 2008 Enterprise.
Then Lynn's solution is your...
August 20, 2014 at 6:47 am
Quick question, what SQL Server Version are you on (SELECT @@VERSION)?
😎
August 20, 2014 at 5:54 am
er.mayankshukla (8/20/2014)
I had done a page compression on an archive Table on my Dev Server.
And it significantly reduced the size of the table.
I have a non clustered index and...
August 20, 2014 at 3:03 am
Quick solution, more a POC than anything else.
😎
USE tempdb;
GO
DECLARE @TSTR NVARCHAR(200) = N'<TV<MR1#4.0#true#2.0#USD>VT>,<TV<MR2#3.0#true#1.5#USD>VT>,<TV<MR3#0.0#true#0.0#USD>VT>,<TV<MR4#0.375#true#0.19#USD>VT>';
DECLARE @SQL_STR NVARCHAR(MAX) = N''
SELECT @SQL_STR = N'select [Model Code],[Persentage],[isAbs],[AppliedValue],[Currency] from (values '
+ REPLACE(REPLACE(REPLACE(@TSTR,N'<TV<',N'('''),N'>VT>',N''')'),N'#',N''',''') + N') as X([Model...
August 20, 2014 at 2:18 am
Quick thought, as this is straight forward in T-SQL, why not do this in the source query?
😎
USE tempdb;
GO
DECLARE @TESTDATA TABLE
(
ID INT...
August 20, 2014 at 2:02 am
This is straight forward using the ROW_NUMBER function and setting the order by descending order of the PERIOD. Here is an example that should get you passed this hurdle.
😎
USE tempdb;
GO
--PERIOD...
August 20, 2014 at 1:04 am
Quick thougt, sounds more like a network/name resolution issue unless the server is very busy. Try this when you know that the server is less busy, look into the tcp/ip...
August 19, 2014 at 10:57 pm
CELKO (8/19/2014)
would you care to share a definition of the difference of the two?
You'll be sorry; this is the short version 😀
Thank you for this and not at all sorry...
August 19, 2014 at 10:19 pm
CELKO (8/19/2014)
First learn that a row is not a record; this is a fundamental concept.Next, look at CREATE SEQUENCE.
Hey Joe,
would you care to share a definition of the...
August 19, 2014 at 12:33 pm
Alvin Ramard (8/19/2014)
Ed Wagner (8/19/2014)
SQLRNNR (8/19/2014)
Luis Cazares (8/19/2014)
Lynn Pettis (8/19/2014)
August 19, 2014 at 12:02 pm
John Mitchell-245523 (8/19/2014)
Eirikur Eiriksson (8/19/2014)
Quick suggestion, skip the string manipulation, use math and then format to taste.😎
Normally, I'd agree you. On this occasion, however, the string manipulation appears to...
August 19, 2014 at 10:19 am
Using Tavis's data sample, here is a slightly more efficient query
😎
DECLARE @ID INT = 2;
-- Set up table variable
DECLARE @test_XMLQuery1 TABLE (
ID INT PRIMARY KEY,
MSG NVARCHAR(MAX) NOT NULL);
-- Insert some...
August 19, 2014 at 6:21 am
sgmunson (8/19/2014)
August 19, 2014 at 5:41 am
Quick suggestion, skip the string manipulation, use math and then format to taste.
😎
DECLARE @TIMEDECIMAL decimal(8,0) = 12310476;
SELECT
CONVERT(VARCHAR(5),DATEADD(MINUTE,(FLOOR((@TIMEDECIMAL / 10000) / 100) * 60)
...
August 19, 2014 at 5:33 am
Luis Cazares (8/18/2014)
DELETE MySchema.Facttable
WHERE datecol = @Date;
It's part of...
August 19, 2014 at 12:56 am
Viewing 15 posts - 7,456 through 7,470 (of 8,753 total)