Forum Replies Created

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

  • RE: CurrentDb looking at old path

    I've never seen that before. So ?currentdb.Name in the immediate window does not return the correct path?

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Analytical Interview Questions

    james.morrison 19355 (6/22/2011)


    mike.mcquillan (6/22/2011)


    The one thing I have learnt from the interview process is MAKE THEM WRITE SOME CODE. I never used to do this and made some bad hires...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Search for Ambiguous Column Names after upgrade to SQL2008

    Ninja's_RGR'us (6/22/2011)

    Nope and I'm on a )*(/$"*(U case sensitive server.

    Ya, major PITA. Screw everything about that. :pinch:

    On both my 2005 and 2008 servers, I get

    Msg 4104, Level...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Search for Ambiguous Column Names after upgrade to SQL2008

    Very nice club to have in the bag. Saved.

    I had to qualify this part

    FROM

    ...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Verify my warning trigger

    So here is my update, as promised, unabridged. I put the additional column and new trigger into production yesterday...and a part I didn't test before, the generate billing screen, returned...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Trigger update

    You have to be very careful with this type of trigger. It's an UPDATE only trigger, which means if someone updates the date received field by itself in the ReceiveOrder...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: How to optimize this query

    This is what your query looks like when formatted, but seems like an extra parentesis is at the end:

    select answered = sum(

    CASE WHEN

    sf.answerNumeric IS NULL AND (sf.answerText IS NULL...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Analytical Interview Questions

    What do yall think about giving the interviewee a "broken" database to analyze? Script out one of your databases except remove some indexes, rewrite a basic update statement to use...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Verify my warning trigger

    tfifield (6/10/2011)


    Todd,

    Messing with proprietary apps like this is probably asking for more trouble than it's worth. I've had to do it and I've found it's usually easier and more...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Automation of Creating Trigger on All User Databases

    chelta (6/14/2011)


    ...I'm attempting to print out the statement, however that is not helping either as it will not print when there is a variable name for the database name.

    Why not?...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: While...Union

    Use something like this to create your view (this creates a view a script that creates a view that combines all of my _Contacts tables, obviously.):

    DECLARE @My_View VARCHAR(max)

    DECLARE @stmt VARCHAR(1000)

    PRINT...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: How to Monitor SQL servers

    We use SQL Diagnostic Manager. http://www.idera.com/Products/SQL-Server/SQL-diagnostic-manager/

    Lots of green and red buttons and dials and charts and alerts!

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Query Case Statement Filter based on Dependant Data

    rjshupert (6/15/2011)


    So thanks for the sample. It was very close, I tweaked it to this:

    (COALESCE(Database_Status,Instance_Status) = N'deployed' or is null)

    And it's now displaying the expected results. Thanks so...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Query Case Statement Filter based on Dependant Data

    Coalesce returns the first non-null argument in the list. So this statement will compare Database_Status when it is non-null, but compare Instance_Status when Database_Status is null.

    Check out http://msdn.microsoft.com/en-us/library/ms190349.aspx

    You can also...

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

  • RE: Query Case Statement Filter based on Dependant Data

    If you want to switch on null, use this

    WHERE

    (COALESCE(Database_Status,Instance_Status) = N'deployed')

    ______________________________________________________________________________
    How I want a drink, alcoholic of course, after the heavy lectures involving quantum mechanics.

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