Forum Replies Created

Viewing 15 posts - 196 through 210 (of 458 total)

  • RE: Super-admin

    John Mitchell-245523 (9/2/2015)


    Goodness! If the IT department isn't fulfilling one of its most important roles by taking backups, then that needs escalating to the very top, doesn't it?

    John

    Backups are...

  • RE: Super-admin

    John Mitchell-245523 (9/2/2015)


    I think the important thing is that backups are made to a specified location, and then backed up to tape as soon as possible. Your network admins...

  • RE: Which is Best to use, #Temp Table or @Table Variable?

    Jeff Moden (8/14/2015)


    pdanes (8/14/2015)


    If you are manually running some code in SSMS, table variables have the additional advantage of being generated fresh on every run. Temp tables stay around, and...

  • RE: Which is Best to use, #Temp Table or @Table Variable?

    If you are manually running some code in SSMS, table variables have the additional advantage of being generated fresh on every run. Temp tables stay around, and you have to...

  • RE: Unable to run procedures with 'Execute as owner'

    Well, I've made some progres on it. I had to manually change a bunch of permissions, and I got it running again. However, I have no idea why something that...

  • RE: Unable to run procedures with 'Execute as owner'

    ScottPletcher (6/19/2015)


    Is the owning account a single user account? Or did it get changed into a group account or role?

    When you use "EXECUTE AS OWNER" the owner cannot be...

  • RE: Unable to run procedures with 'Execute as owner'

    Joie Andrew (6/19/2015)


    Was the sa login recently disabled or renamed on the instance where your development is pointing to?

    As far as I know, nothing has changed. At least, I haven't...

  • RE: SSMS truncating PowerShell output

    Mode con works, Format-Table -wrap still truncates. Thank you both.

  • RE: SSMS truncating PowerShell output

    Alvin Ramard (6/3/2015)


    One option would be to send the results to file. I know I'd like a better option, but it's better than nothing.

    I'd like to keep it in...

  • RE: Replace slow query with table

    ZZartin (6/3/2015)


    Unless real time updates to the view are needed could you just run a scheduled job every however often to populate your temp table instead of using triggers?

    Yes, I...

  • RE: 'Check constraint' on group of records

    Not a bad idea, but that someone would most likely be me, so I think it's better to build triggers that prevent the situation from occurring in the first...

  • RE: 'Check constraint' on group of records

    Now that I think about it some more, I'm not even sure that it's possible to enforce an 'exactly one' condition, even with code. It would never be possible for...

  • RE: 'Check constraint' on group of records

    spaghettidba (5/25/2015)


    You could also use indexed views. I have a blog post on the subject here[/url].

    Thanks for the tip. I'm looking at your blog, but it's a bit technical and...

  • RE: 'Check constraint' on group of records

    GilaMonster (5/25/2015)


    CREATE UNIQUE INDEX idx_TableOfClovekNames_ClovekAutoID

    ON TableOfClovekNames (ClovekAutoID)

    WHERE JeHlavni = 1

    The unique requirement on that only applies to rows where JeHlavni is 1, and it forces that there may not be...

  • RE: 'Check constraint' on group of records

    GilaMonster (5/25/2015)


    I would use a filtered index for that (well, part of that).

    You want to ensure that there is only ever one row with JeHlavni = 1 for each...

Viewing 15 posts - 196 through 210 (of 458 total)