Forum Replies Created

Viewing 15 posts - 31 through 45 (of 227 total)

  • RE: Joining INSERTED and UPDATED tables when PK column changes

    Huh! That's a really clever approach (of course relying in the implicit ordering of those tables). Very interesting food for though. But yeah, maybe I should just push for a...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Deciding on being Developer or DBA

    Beatrix Kiddo - Monday, February 6, 2017 8:19 AM

    Also, check out the salaries in your area. In mine (City of London), DBAs...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Deciding on being Developer or DBA

    Jeff Moden - Thursday, February 2, 2017 9:28 PM

    Xedni - Thursday, February 2, 2017 1:12 PM

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Deciding on being Developer or DBA

    Chris Harshman - Thursday, February 2, 2017 2:02 PM

    Xedni - Thursday, February 2, 2017 1:12 PM

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Deciding on being Developer or DBA

    That's very helpful. Thanks for taking the time to put that together for me.

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Identify if index exists on partition function

    Sergiy (12/7/2016)


    Index name is not a really good indicator of index existence.

    You may have many identical indexes, all with different names.

    To check if an index with the same structure as...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Identify if index exists on partition function

    I figured out a solution

    if exists (select 1

    from sys.indexes

    ...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Identify if index exists on partition function

    Well that's the first part of it, yes. But what I really want to check is if it's already on the partition scheme.

    The table already has a clustered index which...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Quick table size information

    sequelgarrett (7/5/2016)


    This only works within the dbo schema. To have it work with all tables, you'd need to change line 39 to do something like this:

    Thanks for pointing that out.

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Quick table size information

    robert.sterbal 56890 (7/4/2016)


    What are your restrictions on republishing this script?

    Use it to your heart's content.

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Return string between 2 characters from the end of the string

    Here's my approach. Forgive the verbosity, the only way I can think through string manipulation in SQL is to do it in steps.

    -- fictious source data

    ;with src as

    (

    ...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Generate n random int subsets

    Gotcha. Unfortunately, that function doesn't have the same signature as the one in your original code sample. I modified the function to accept all three parameters (start, end and increment;...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Generate n random int subsets

    Could you provide the code for TallyGenerator? Since I'm not actually trying to just generate random numbers, it's difficult to see where I'd slot in my legitimate symbols, or how...

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Generate n random int subsets

    Eirikur Eiriksson (6/27/2016)


    ...all subsets of the same size will be identical (duplicates), is this what you intended?

    😎

    Ew... you're right. Nice catch.

    Executive Junior Cowboy Developer, Esq.[/url]

  • RE: Generate n random int subsets

    Hi Erikur,

    Thanks again for the reply. To preface this, your post was VERY helpful, and I doubt I would have got to the version I'm happy with now without your...

    Executive Junior Cowboy Developer, Esq.[/url]

Viewing 15 posts - 31 through 45 (of 227 total)