Forum Replies Created

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

  • RE: EXECUTE

    Hugo Kornelis (2/14/2012)


    cengland0 (2/14/2012)


    Technically, both statements could execute if you just happened to have a stored procedure with the name [use master dbcc showfilestats]. I know, this is crazy...

  • RE: EXECUTE

    Thanks for the great question. Couple points:

    1. I thought both statements were exactly the same. I sat there looking at it for about 4 minutes before I...

  • RE: Read Uncommitted, locks, and transactions

    Cliff Jones (2/13/2012)


    Yes, that was the way I always did it also. It was very fast but then you had to deal with all those pesky named constraints and...

  • RE: Read Uncommitted, locks, and transactions

    SQL Kiwi (2/13/2012)


    cengland0 (2/13/2012)


    What other ways can you change the entire contents of a table and still have the reports available without dirty data?

    Aside from the VIEW suggestion, similar alternatives...

  • RE: Read Uncommitted, locks, and transactions

    SQL Kiwi (2/13/2012)


    Hugo Kornelis (2/13/2012)


    I didn't check it, but I fully expect an ALTER VIEW statement to require an exclusive schema lock.

    This is true, but it's not really a problem...

  • RE: Read Uncommitted, locks, and transactions

    This was a good question. I like how it was written in the terms of a real problem to solve.

    What other ways can you change the entire contents of...

  • RE: HASHBYTES

    Raghavendra Mudugal (2/10/2012)


    how do you suggest to plan this? first to "get" you need to "set", and how are you going to get by bypassing the trace?

    (your comments has created...

  • RE: HASHBYTES

    Raghavendra Mudugal (2/10/2012)


    cengland0 (2/10/2012)


    Steve Jones - SSC Editor (2/9/2012)


    SELECT HASHBYTES( 'SHA1', 'R@nd0m' + Pwd + firstname)

    FROM Employees

    In this case, without access to the code, it becomes hard to determine...

  • RE: HASHBYTES

    Steve Jones - SSC Editor (2/9/2012)


    SELECT HASHBYTES( 'SHA1', 'R@nd0m' + Pwd + firstname)

    FROM Employees

    In this case, without access to the code, it becomes hard to determine what the input...

  • RE: Old Dog, New Tricks

    GSquared (2/8/2012)The best bet is, if the database is on their server instead of yours, assume they know everything about it. Since it's impossible to stop them from finding...

  • RE: INSERT OUTPUT

    Hugo Kornelis (2/8/2012)

    You are aware that mainstream support for SQL Server 2005 has already ended, are you? I'd consider upgrading, if I were you... :hehe:

    You're right that the ideal situation...

  • RE: Old Dog, New Tricks

    GSquared (2/6/2012)


    Running the SQL code inline, instead of in procs, doesn't actually help with that. Well, unless the people stealing it have never heard of Profiler or traces, of...

  • RE: Old Dog, New Tricks

    jcb (2/6/2012)


    SQL Injection and Performance are 2 items from a wide list why I hate dynamic sql.

    Some app use, at least, parameterized dynamic sql and it blocks most problems with...

  • RE: Computed Columns 1

    jlennartz (2/3/2012)


    Good question as it led to alot of interesting discussion which is usually the most interesting part of the QoTD's.

    I learn much more through the QOTD discussions than I...

  • RE: Old Dog, New Tricks

    jcb (2/3/2012)


    I dislike using dynamic SQL but for .net I sugest using @

    String sqlcode = @" /*this

    ill keep

    the break lines

    no need to fancy concatenations */

    select *

    from

    mytable

    where

    myfavoritesqlresource = 'SSC';

    ";

    😎

    I just...

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