Viewing 15 posts - 91 through 105 (of 626 total)
I don't use schemas everywhere for the sake of just using them but I DO use them and they are fantastic! I have a datawarehouse that contains data from several...
November 15, 2018 at 6:46 am
There are two main ways to create and publish SSRS reports. The first is to use Report Builder and the second is Visual Studio but you need to install SQL...
November 14, 2018 at 1:02 pm
It's been just about two weeks and still haven't had any issues since I made the changes mentioned in my previous post. This job was consistently failing at least a...
November 14, 2018 at 9:08 am
You will want to use a window funtion for this. If you provide some sample data I could make sure it comes out the way you expect it. Or you...
November 9, 2018 at 7:09 am
Well the leading wildcard in that LIKE clause will guarantee it will have to do full scans. Something LIKE 'text%' is fine though. I guess it comes down to your...
November 9, 2018 at 7:05 am
November 9, 2018 at 6:50 am
Lynn's suggestion is the way the go. Since your a little rusty here is an example on how to create a calendar table.
I normally have a dedicated Tally...
November 8, 2018 at 1:40 pm
This seems to work fine for me unless I'm missing something...
DECLARE @guid UNIQUEIDENTIFIER, @binary VARBINARY(16)
SELECT @guid = NEWID()
SELECT @binary = CAST(@guid AS...
November 8, 2018 at 1:03 pm
Converting date/time data to strings is horribly expensive. You're better off using DATE/TIME functions...
November 7, 2018 at 7:40 am
Ok, back in front of my computer. Also I didn't originally scroll down and see your expected output.
I omitted eventid for grouping purposes but it's the same as...
November 6, 2018 at 6:38 am
Sorry but I’m doing this on mobile right now. Just follow my example for the window function where I use MIN but instead use FIRST_VALUE and change the column name...
November 5, 2018 at 9:35 pm
I don't fully unserstand your requirements from your description but yes you can get the same result set without doing a self join and by using some window functions.
November 5, 2018 at 11:28 am
I'm going with converting the dates at the source and see if that buys me anything.
SELECT ID, somedate
FROM OPENQUERY(INFORMIX, 'SELECT ID, TO_CHAR(somedate, "%Y-%m-%d") somedate...
November 1, 2018 at 9:01 am
Is the Informix DB linked server a live data source? I get this issue sometimes...
October 31, 2018 at 9:21 am
Viewing 15 posts - 91 through 105 (of 626 total)