Forum Replies Created

Viewing 15 posts - 61 through 75 (of 901 total)

  • RE: Using DelimitedSplit8K

    Chris,

    I keep forgetting that the LEAD/LAG window functions have the 'default' value field, and have been using ISNULL (as per my previous example!!!) :w00t:

  • RE: Consultant about like operator

    Just as a side bar, I worked in a travel company with a rather aggressive profanity filter on the mail server, and bounce legitimate emails that contained the word Bastardise(d),...

  • RE: Why should i go for MS-SQL server not for Oracle and MySQL ?

    As with all things speak to anyone from the various camps and they will tell you their option is better, I remember being told by an Ingres developer that it...

  • RE: SSISDB

    I believe that you have to remove the SSISDB and start from scratch as there is no way that I know of to recover the password after the setup has...

  • RE: Using DelimitedSplit8K

    Theres a big logic flaw in yourscript, you add the Time to a DATETIME that already has a time component, which is why my results look a little weird.

    as...

  • RE: Using DelimitedSplit8K

    This might help you get started

    NOTE : Tables changed to TEMP tables for ease, also using my own String splitter

    Reporting.SplitParam_Test (Effectively Jeff Modens).

    ;WITH CTE_GetAudit

    AS

    (

    select

    CONCAT([Forename],' ' ,[Surname]) AS...

  • RE: Using DelimitedSplit8K

    Final script you provided seems to work fine, I just cant see the connect between that and the CRM table.

    What is the data set you are looking to return.

    As you...

  • RE: Using DelimitedSplit8K

    TSQL Tryer (3/5/2015)


    ignore last post - think I've worked it out - will post all code again shortly.

    Sorry

    I was just about to send a response, its the ai/bi columns that...

  • RE: Using DelimitedSplit8K

    For a start you insert is completely malformed, replace the * with a comma, and you are missing single quotes around the bi/ai columns in the selects.

    Just taking the...

  • RE: Using DelimitedSplit8K

    There are a couple of possible issues, have you tried just putting one of those fields into a variable and passing it through the Splitter

    I did a simple test using...

  • RE: don't start one statement until the previous is finished

    SQL is linear, so it wont start a statement until the previous has completed, there could be an issue with transactions, overlapping, or not completing in time for the next...

  • RE: Dynamic Return type in a function

    Why do you need to create a function for this. simply do this for text fields

    ISNULL(NULLIF(@column,'NULL'),'No Data'))

    or this for Numeric fields

    ISNULL(NULLIF(@column,'NULL'),0))

    Its also likely to be more efficient than calling a...

  • RE: Insert into table dates in between two dates

    hi,

    Sorry I didn't get back to you yesterday, work got hectic.

    I didn't realise this was for a DW, had it been a OLTP system I would have used the structure...

  • RE: Using DelimitedSplit8K

    Nevyn (3/2/2015)


    Try

    SELECT 'SELECT '

    + COALESCE(QUOTENAME(user_name,''''),NULL)+','

    + COALESCE(QUOTENAME(date_of_change,''''),NULL)+','

    + COALESCE(QUOTENAME(time_of_change,''''),NULL)+','

    ...

  • RE: Insert into table dates in between two dates

    cs_source (3/1/2015)


    Thank you very much! i didn't think to use a function, i do already have a date dimension table.

    the solution worked using the following code for those who need...

Viewing 15 posts - 61 through 75 (of 901 total)