Forum Replies Created

Viewing 15 posts - 4,156 through 4,170 (of 26,490 total)

  • RE: Dynamic SQL and Parameters

    Could you post the actual SQL you are trying to generate. I'm a little lost from the what you posted and knowing what the final result that would be...

  • RE: Stored Procedures slower than queries

    If you are splitting a VARCHAR(MAX) or NVARCHAR(MAX) string, you should look at using a CLR splitter instead of a T-SQL splitter.

    Please check out this article for information: http://www.sqlservercentral.com/articles/Tally+Table/72993/.

    Also, in...

  • RE: the use of CTEs

    Sergiy (1/11/2016)


    Kedazs (1/11/2016)


    Yes. I also use CTE's to "clean up my code". Especially if it is something being called multiple times within the select. I do not think...

  • RE: Date Conversion

    Eirikur Eiriksson (1/10/2016)


    rahulsahay123 (1/8/2016)


    I am getting a data feed with date column of type integer.Format is mmddyyyy.

    Values are like : 01092015

    Now i want to convert this into...

  • RE: Date Conversion

    Jason A. Long (1/8/2016)


    rahulsahay123 (1/8/2016)


    I am getting a data feed with date column of type integer.Format is mmddyyyy.

    Values are like : 01092015

    Now i want to convert this...

  • RE: get all dates between 2 dates 7 days apart

    Tallboy (1/8/2016)


    Hi Guys,

    Looking for a cte which will list all dates between 2 dates 7 days apart. May want to change to 14 days apart later.

    Here is my code....but gives...

  • RE: Are the posted questions getting worse?

    TomThomson (1/8/2016)


    Brandie Tarvin (1/6/2016)


    djj (1/5/2016)


    SQLBill (1/5/2016)


    If I hear of any openings anywhere that allow full work from home, I'll pass them your way.

    -SQLBill

    There all over the internet.:-P And I...

  • RE: Are the posted questions getting worse?

    simon-hulse (1/8/2016)


    I'm new to posting on this site although I have worked with SQL for over 20 years I tend not to post as 9/10 times you end up in...

  • RE: Are the posted questions getting worse?

    simon-hulse (1/8/2016)


    I'm new to posting on this site although I have worked with SQL for over 20 years I tend not to post as 9/10 times you end up in...

  • RE: the use of CTEs

    Sergiy (1/7/2016)


    Alan.B (1/7/2016)


    Using a CTE and keeping the code compatible with SQL 2005, we could re-write the code like this:

    ...

    Huge, Huge improvement!!! Irrefutable evidence of the usefulness of a CTE.

    Compare...

  • RE: the use of CTEs

    You have to remember that many times threads go off on tangents, and sometimes the tangents actually impart knowledge that may not have been provided otherwise.

    I don't believe that this...

  • RE: It's the end of the year

    Toreador (1/7/2016)


    Rich Mechaber (1/6/2016)


    This, for example, throws an error:

    SET LANGUAGE british

    SELECT CAST('2003-02-28' AS datetime);

    Server: Msg 242, Level 16, State 3, Line 4

    The conversion of a char data type to a...

  • RE: Happy New Year 2016

    Stephanie J Brown (1/5/2016)


    mjh 45389 (1/5/2016)


    Stephanie J Brown (1/4/2016)


    I'd like to learn more of the "language of business", so I can find better ways to communicate IT needs to our...

  • RE: the use of CTEs

    Sergiy (1/6/2016)


    Lynn Pettis (1/6/2016)


    Unfortunately you failed to recreate the function as originally coded. You are relying on the existence of a tally table in the database. The original...

  • RE: the use of CTEs

    Sergiy (1/6/2016)


    Luis Cazares (1/6/2016)


    I'll just want some help from those who prefer subqueries over CTEs to transform one of our favorites functions.

    Here you go:

    SET ANSI_NULLS ON

    GO

    SET QUOTED_IDENTIFIER ON

    GO

    CREATE FUNCTION [dbo].[DelimitedSplit8K_NoCTE]

    --=====...

Viewing 15 posts - 4,156 through 4,170 (of 26,490 total)