Forum Replies Created

Viewing 15 posts - 7,486 through 7,500 (of 8,753 total)

  • RE: update column

    Here is some code that does the job, not perfect though and leaves some room for improvements.

    ๐Ÿ˜Ž

    USE tempdb;

    GO

    SET NOCOUNT ON;

    /* Staging tables */

    create table dbo.tmp_management

    (memberid int,

    pid int,

    firstname varchar(10),

    lastname varchar(10),

    DOB...

  • RE: SSIS Error

    SQL_Surfer (8/16/2014)


    I've a CSV file as source going to OLEDB Destination (SQL table)

    Row delimiter is CRLF

    Text Qualifier is "

    Issue is some data value inside itself contains " to represent...

  • RE: How do I get part of URL?

    halifaxdal (8/16/2014)


    Thanks for the discussion but I am sorry I didn't see that your reply is talking my question here:

    What I am looking for is a simple query (with no...

  • RE: How do I get part of URL?

    In the old days (pre 1998) this was simple, only handful of top level domains. Today this is quite complicated and the only way is to maintain a registry of...

  • RE: Are the posted questions getting worse?

    Koen Verbeeck (8/16/2014)


    Luis Cazares (8/14/2014)


    Grant Fritchey (8/14/2014)


    Evil Kraig F (8/14/2014)


    djj (8/14/2014)


    ChrisM@Work (8/14/2014)

    remember '76/'77

    Wish I could remember what last year was like, I remember some nice days for '77 as...

  • RE: SQL DBA high ended question (5+ yearsโ€™ experience)

    Evil Kraig F (8/15/2014)


    Brandie Tarvin (8/15/2014)


    It's Wednesday. 3 people walk up to your cube. One is from the QA team, one is from the reporting team, and one is a...

  • RE: PIVOT without aggregate function?

    Jeff Moden (8/15/2014)


    I can't speak for anyone else but I consider MAX to be a form of "aggregation" even when it applies to character based values.

    I agree, anything one can...

  • RE: Assign Row number to the result set without using Row_Number

    Ed Wagner (8/15/2014)


    Jeff Moden (8/15/2014)


    GilaMonster (8/15/2014)


    Eirikur Eiriksson (8/15/2014)


    Koen Verbeeck (8/15/2014)


    GilaMonster (8/15/2014)


    Eirikur Eiriksson (8/14/2014)


    You can try out these methods as previously suggested

    However OP said

    I really don't like this temp table...

  • RE: SQL DBA high ended question (5+ yearsโ€™ experience)

    Ed Wagner (8/11/2014)


    GilaMonster (8/11/2014)


    paul.knibbs (8/11/2014)


    Jeff Moden (8/9/2014)

    With the understanding you have of that counting problem and the additional understanding that I don't ask "trick" questions or questions based on trivia,...

  • RE: Assign Row number to the result set without using Row_Number

    Koen Verbeeck (8/15/2014)


    GilaMonster (8/15/2014)


    Eirikur Eiriksson (8/14/2014)


    You can try out these methods as previously suggested

    However OP said

    I really don't like this temp table creation

    So, no row number, no temp tables....

  • RE: PIVOT without aggregate function?

    serviceaellis (8/15/2014)


    JeeTee (8/15/2014)


    If MemberTypeID 2 is all you care about, you can simply omit the lines of code from Eirikurs example that reference MemberTypeIDs you don't care about.

    Is this for...

  • RE: Assign Row number to the result set without using Row_Number

    You can try out these methods as previously suggested, hard to understand why going through all the trouble instead of using ROW_NUMBER!

    ๐Ÿ˜Ž

    USE tempdb;

    GO

    SET NOCOUNT ON;

    DECLARE @RESSET TABLE

    (

    ...

  • RE: Stored Procedure slower on faster newer machine ?

    Look into the MAXIMUM DEGREE OF PARALLELISM and COST THRESHOLD FOR PARALLELISM[/url] settings.

    ๐Ÿ˜Ž

  • RE: PIVOT without aggregate function?

    serviceaellis (8/14/2014)


    Not really understanding the difference?

    Main thing with what I need is it's not an aggregate

    My bad, sorry for the incomplete answer;-)

    The complexity of not using an aggregate is...

  • RE: 1MB datafile growth size?

    It is of course possible on almost static databases with mostly reads and hardly any inserts/updates, but in general it is unlikely. There may be other reasons where one would...

Viewing 15 posts - 7,486 through 7,500 (of 8,753 total)