Viewing 15 posts - 8,251 through 8,265 (of 8,760 total)
First the DDL
USE tempdb;
GO
CREATE TABLE dbo.TestConstraint
(
id INT NOT NULL
,ProductID int NOT NULL
,Datecreated DATETIME NULL
,DateExpired DATETIME NULL
);
GO
ALTER...
May 14, 2014 at 11:01 pm
This query uses UNPIVOT in a CTE. A ROW_NUMBER function assigns a number for each header/value combination, which is then used to set the output column in the latter part...
May 14, 2014 at 10:36 pm
mickyT (5/14/2014)
Luis Cazares (5/14/2014)
mickyT (5/14/2014)
However having said that, this could be another way of attacking the problem
Until you find that Gordon Abraham and Abraham Gordon (or any other combination of...
May 14, 2014 at 2:15 pm
Usman Butt (5/14/2014)
BTW, can someone test the physical tally table splitters as well? @paul-2 Can you be so kind to me :unsure:
I'll do it as well, don't hold your breath:Whistling:...
May 14, 2014 at 2:05 pm
Paul White (5/14/2014)
If so, you might not be testing what you think you are. There is a...
May 14, 2014 at 1:08 pm
For fun:-P, it always looks simple until one starts to meddle with it
😎
with Names as
(
select 'Mike Davis' as FullName union all
...
May 14, 2014 at 11:47 am
emilacosta (5/14/2014)
Thank you for your answer. 🙂
My main question is how to get the path of the image file from the table where it is stored and load the image...
May 14, 2014 at 10:23 am
OPENROWSET expects string literals, you can do this in dynamic sql.
😎
DECLARE @JPGPATH NVARCHAR(MAX) = N'''C:\temp\IMG00001.jpg''';
DECLARE @JPGBIN VARBINARY(MAX) = 0x00;
DECLARE @SQL_STR NVARCHAR(MAX) = REPLACE(N'SELECT * FROM OPENROWSET(BULK {{@JPGPATH}}, SINGLE_BLOB)...
May 14, 2014 at 7:43 am
Looks like the performance improvements have more to do with the platform (2014). I have been looking at results from the same (or identical) hardware (E6220, i5, 256GB SSD, 8Gb...
May 13, 2014 at 10:58 pm
Brilliant:-)
Ran a short disco version of the test on 2014 Developers edition, also added a Lead version which came in second!
SplitterName ...
May 13, 2014 at 2:23 pm
If the table exist, it could be in another schema. Change the code to (schema_name).[events] if you find it.
😎
May 13, 2014 at 9:18 am
I'll be there Friday/Saturday
look out for the one red shoe
😎
May 13, 2014 at 9:02 am
Few more numbers (500K rows), queries in the same order as before.
Take note of the high CPU cost of the LEAD function!
😎
Heap, no index,
[font="Courier New"]
(100000 row(s) affected)
Table 'TBL_POLICYHISTORY'. Scan...
May 13, 2014 at 8:05 am
This should be pretty close
😎
SELECT distinct CONVERT(DATETIME,arc_endTime,120) AS [Event Time],
arc_destinationHostName AS [Host Name],
arc_destinationUserName AS [User Name],
arc_sourceHostName AS [From Host],
arc_sourceAddress AS [From IP Address],
arc_deviceCustomString2 AS [Database],
arc_deviceCustomString1...
May 13, 2014 at 7:46 am
Viewing 15 posts - 8,251 through 8,265 (of 8,760 total)