Forum Replies Created

Viewing 15 posts - 1 through 15 (of 1,583 total)

  • Reply To: WHERE condition using ='value' returns different results that using IN('value')

    Found the issue... the user who found the issue provided me with the code... which I just modified here to reproduce it "as-is"... when I  copied the same code into...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: WHERE condition using ='value' returns different results that using IN('value')

    Sure...

    USE [TempDB]
    GO

    DROP TABLE IF EXISTS #Results
    SELECT 'A' [Column1], 'B' [Column2] INTO #Results

    SELECT * FROM #Results

    SELECT * FROM #Results
    WHERE 1=1 AND [Column1] in ('A') AND [Column2] = 'B'
    ...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: WHERE condition using ='value' returns different results that using IN('value')

    My understanding of how the engine interprets "equals" versus "IN()" is pretty much the same.  The IN operator is used to compare a column value against a set of values...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Odd columns datatype precisions showing in SSMS View...

    I did come across this... which does explain it... but geeez, never in 24 years have I been bitten by this in a VIEW

    https://learn.microsoft.com/en-us/sql/t-sql/data-types/precision-scale-and-length-transact-sql?view=sql-server-ver16&redirectedfrom=MSDN

    "Operators can always change precision scale..."

    <table>

    <thead>

    <tr>

    <th>Operation</th>

    <th>Result precision</th>

    <th>Result...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Database copies (cross environment) and sizing strategies for 2019

    Thanks for the response - it's great to see the old names replying all the time 🙂

    I have considered this and we've actually used it and an alternate (SQLSafe Virtual...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Storing large LOB data

    Great stuff!  Thanks for the advice thus far....I'll play with this a bit and see if it works for this scenario

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Logshipping status report Throgh Mail

    Can you please post/attach your entire script?

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Database Integrity Issues

    Thanks for everyone's comments thus far, that's the current plan - restore to a different server, different storage, sans Vormetric and see if the corruption is still present.  Just so...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Database Integrity Issues

    I wanted to also note that Vormetric encrypts the data at the OS/folder level

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Logshipping status report Throgh Mail

    Wow this is a blast from the past!  If it's sending a blank email it's because one of the values being assigned to a parameter is NULL.  I would check...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Unusual behavior with LARGE query

    Rewriting it using the temp table is an option I did consider but was hoping for one of those “a ha” moments ??

    The execution plan is not that bad and...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Failed allocate pages

    I realize this is a very, very old post but did you ever get this resolved?  If so, what steps did you take?

    My team just got plagued with the same...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Enable Trace Flags in SQL Server

    Thanks Steve, was just seeking confirmation. I realize this isn't a "standard" or best practice per say, but always have added it in to facilitate server builds across large distributed...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • Reply To: Enable Trace Flags in SQL Server

    Is there any negative impact to adding trace flags to a server startup proc?  More of as a failsafe that anything...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

  • RE: Error 7929, Check statement aborted. Database contains deferred transactions.

    Resolving this issue for me was simply a matter or placing the DB in EMERGENCY mode and bringing it back online:
    ALTER DATABASE PROBLEM_CHILD SET EMERGENCY
    GO

    Once...

    ______________________________________________________________________________Never argue with an idiot; Theyll drag you down to their level and beat you with experience

Viewing 15 posts - 1 through 15 (of 1,583 total)