Forum Replies Created

Viewing 15 posts - 931 through 945 (of 1,415 total)

  • RE: Nested Break

    mwpowellhtx (3/17/2015)


    patrickmcginnis59 10839 (3/17/2015)


    ZZartin (3/17/2015)


    So was this a question on why single character variable names @i and @j-2 are terrible choices?

    Ok lets see your choice for variable names!

    given the execution...

  • RE: Nested Break

    ZZartin (3/17/2015)


    So was this a question on why single character variable names @i and @j-2 are terrible choices?

    Ok lets see your choice for variable names!

  • RE: Nested Break

    Doesn't work for me, I get

    Msg 137, Level 15, State 2, Line 1

    Must declare the scalar variable "@j".

    I'm pretty sure that when the code / batch completes, all variables become...

  • RE: Using SQL Server Migration Assistant on Live Database

    ccoscina (3/13/2015)


    It's not so much that I expect ssma to be a transaction manager.

    What I'm wondering is - if the orders table is currently being written to by the...

  • RE: ORDER BY using UNION

    You need the alias "Unavailabledate" next to your column name in the first query:

    with CLOSEDDATES AS (SELECT '2016-01-01 10:00' CLOSEDDATE)

    ,

    RESERVATIONS AS (SELECT '2016-01-02 10:00' RESERVATIONDATE)

    --SELECT [ClosedDate] FROM [ClosedDates] AS UnavailableDate...

  • RE: Using SQL Server Migration Assistant on Live Database

    Just an opinion, but thats seems to be asking SSMA to be some sort of replication / transaction manager and I'd be surprised if this would go off without a...

  • RE: Join Query - getting duplicates

    Interestingly enough, your data post looks almost identical to the section of the linked article from my previous post titled "The Wrong Way to Post Data ".

    Also you're labelling the...

  • RE: Join Query - getting duplicates

    We'll need sample data for this one so we can tell which key (join predicates) are duplicating.

    This link http://www.sqlservercentral.com/articles/Best+Practices/61537/ will show the desired sample data formatting.

    edit: obviously don't post...

  • RE: Where do senior SQL DBAs land finally?

    Wayne West (3/3/2015)


    patrickmcginnis59 10839 (3/3/2015)


    ...have your "stack smashed for fun and profit."

    Hey! "Smash Your Stack For Fun and Profit!" is the name of my forthcoming intro programming book, how...

  • RE: Where do senior SQL DBAs land finally?

    Don Halloran (3/3/2015)


    Jeff Moden (3/2/2015) I told her that I'd do that right away and that I'd never touch front end code ever again after doing it. And, I...

  • RE: Need help to get the "Real" column / table names from the fields selected withing a Sql_View

    Sean Lange (2/25/2015)


    Hi and welcome to the forums. I see what you are trying to do here but I would suggest that you should avoid nesting views like the plague....

  • RE: Want to create random alphanumeric characters for primary key values

    dwain.c (2/19/2015)


    CELKO (2/18/2015)


    I need to create random alphanumeric characters as primary key values when inserting a record [sic]. .. I don't want to use GUID or auto increment...

  • RE: DBA vs. Developer Question / Issue

    Grant Fritchey (2/19/2015)


    patrickmcginnis59 10839 (2/19/2015)


    Eric M Russell (2/19/2015)


    patrickmcginnis59 10839 (2/19/2015)Ok I'll bite, why is the row lookup slower on heaps? There is still an (invisible) key to the row.

    OK

    When a...

  • RE: DBA vs. Developer Question / Issue

    Eric M Russell (2/19/2015)


    patrickmcginnis59 10839 (2/19/2015)Ok I'll bite, why is the row lookup slower on heaps? There is still an (invisible) key to the row.

    OK

    When a table is non-clustered heap,...

  • RE: DBA vs. Developer Question / Issue

    edited, I found a citation for Matt's description.

    Matt Miller (#4) (2/19/2015)


    patrickmcginnis59 10839 (2/19/2015)


    One advantage of a clustered key is that it will benefit non-clustered indexes, because the clustered key is...

Viewing 15 posts - 931 through 945 (of 1,415 total)