Forum Replies Created

Viewing 15 posts - 91 through 105 (of 626 total)

  • RE: Do you use custom schemas?

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Deploying a report

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Error converting data type DBTYPE_DBDATE to date

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Correctly using AVG() for partial table samples

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Optimize a LIKE '%text%' query

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: The Cost of Switching

    David.Poole - Thursday, January 22, 2015 6:52 AM

    I've been surprised by the cost of some NOSQL solutions. By the time you...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: building a ledger from separate transaction tables

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Converting between binary hex and GUID (uniqueidentifier)

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: how to get rows from two datetime fields with hours on morning time.

    drew.allen - Tuesday, November 6, 2018 9:45 AM

    Converting date/time data to strings is horribly expensive.  You're better off using DATE/TIME functions...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Aggregate without self join

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Aggregate without self join

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Aggregate without self join

    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.


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Error converting data type DBTYPE_DBDATE to date

    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...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Error converting data type DBTYPE_DBDATE to date

    Lynn Pettis - Wednesday, October 31, 2018 9:35 AM

    Y.B. - Wednesday, October 31, 2018 9:13 AM


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

  • RE: Error converting data type DBTYPE_DBDATE to date

    mark.humphreys - Wednesday, October 31, 2018 8:52 AM

    Is the Informix DB linked server a live data source?  I get this issue sometimes...


    SELECT quote FROM brain WHERE original = 1
    0 rows returned

Viewing 15 posts - 91 through 105 (of 626 total)