Forum Replies Created

Viewing 15 posts - 42,661 through 42,675 (of 49,571 total)

  • RE: How to get the print message in sproc

    Try RAISERROR instead of print.

    if @search_type <> 'ausId' and @search_type <> 'email'

    begin

    RAISERROR ('Search Type...

  • RE: Stored Procedure Basics

    I'd suggest doing it as one statement. If you do the count first and then the insert, there's a chance that another insert could occur in between and make the...

  • RE: Tables inside Filegroups

    Sure. It's one of those not-so-intuitive queries (understatement)

    This will work providing you have no table partitioning. If you do, it may give strange results

    select object_name(p.object_id), ds.name as FilegroupName

    ...

  • RE: The Ebb and Flow of Community

    skjoldtc (12/2/2008)


    I have a question for the frequent posters? Do you spend you employer's time answering questions here or are you doing it on your own time. If on your...

  • RE: Any Way Determine Data Loss

    rbarryyoung (12/2/2008)


    And whenever you want to post a 370+ line output file like this, please feel free to either trim it down some or post it as an attachment instead.

    For...

  • RE: log shipping without regular bak files

    Full backup does not truncate the tran log. Never has. Only a transaction log backup, an explicit truncate or a switch to simple recovery will truncate the tran log.

  • RE: SQL 2005-64 bit

    Don't bother with lock pages on a desktop. Since it prevents SQL from been swapped out, it could give you perf problems with other apps.

    Lock pages is important on servers...

  • RE: Question On Queries with declared Variables

    That's going to have to be a procedure, since you have dynamic SQL.

  • RE: Date Validation using ISDATE()

    Remove the select ISDATE ('5/1/2008') from before the Create Proc

    You're missing begins for two of those ifs

    If ISDATE(@DateMin) = 0

    BEGIN

    Raiserror('Please enter valid date format...

  • RE: Production issue

    Monitor that regularly and when the available space gets low, manually grow the file.

  • RE: Integrity Check -- DBCC

    That's going to take a while.

    What's the availability requirements? Can you get a weekend where the DB isn't in use? It may not take that long, but just for...

  • RE: Recommended path for advanced training?

    Gaby Abed (12/2/2008)


    Really? I'm curious what his answer was, or was it a simple "I don't know"?

    He told us (panel interview, myself, two other DBAs and a...

  • RE: Unused Columns (all NULL) and Saving Storage Space

    nate (12/2/2008)


    Then, I moved on to a different table that had no clustered indexes. Once I removed 5 unused columns and rebuilt the non-clustered index, the 'Data Space' value...

  • RE: Integrity Check -- DBCC

    Script all the objects (perhaps excluding the foreign keys) to files, bcp all of the data to file. Create a new database, run all of the script files, bcp all...

  • RE: Production issue

    It's got nothing to do with space available. Grows are very intensive operations and will cause the entire system to slow down due to the IO impact.

    As for monitoring, try...

Viewing 15 posts - 42,661 through 42,675 (of 49,571 total)