Forum Replies Created

Viewing 15 posts - 6,541 through 6,555 (of 6,679 total)

  • RE: Advice on Query 'Expiry Date' GETDATE() + 5 Days?

    gwade (5/30/2008)


    Excellent point about the index scan, Jeff.

    I'm wondering with the new expresssion, if the date that the query is run is 2008-05-30 13:25:23.723 and the expiry value is...

  • RE: Index on a Temp table conundrum

    How are you creating the temp table? What kind of index are you creating?

    If you do the following, you shouldn't have any problems:

    Create Table #t1 (

    id int primary key...

  • RE: Advice on Query 'Expiry Date' GETDATE() + 5 Days?

    gwade (5/30/2008)


    A possible issue - maybe minor, maybe not depending on your user needs:

    Getdate() returns a date time stamp including hh:mm:ss.000.

    This is not an issue if your expiry...

  • RE: linked server name

    Instead of messing around with DNS, client network utility, etc... I use the following, which is much easier to manage.

    Declare @server nvarchar(50)

    ,@source nvarchar(50);

    Set @server = 'aliasname';

    Set @source =...

  • RE: Last Index defrag / rebuild

    Kyle Neier (5/29/2008)


    I've used the STATS_DATE function to determine the last time that statistics were updated. Issuing either "update statistics" or "alter index rebuild" modifies this date. Issuing a reorganize...

  • RE: DBCC SHRINKFILE

    Warren Peace (5/29/2008)


    Matt, Big thanks to you!

    My next attempt to reclaim disk is to use Winzip commandline to script the compression of each .bak file on a nightly bassis after...

  • RE: Exceptionally Large DBsize

    santhu (5/29/2008)


    Hi all,

    thanks for all your replys,

    Database has set as unrestricted growth and every time increases by 50MB,

    Full Backup is scheduled every night and Logfiles every 15 minutes

    Recovery Mode...

  • RE: The Differences Between SQL Server 2000 and 2005 - Part 2

    When connected to that instance of SQL Server you can run: SELECT @@VERSION which will tell you what version of SQL Server you are connected to.

    To identify what is available...

  • RE: DBCC SHRINKFILE

    Yes - that will no longer be supported and the supported way is to change the recovery model from full to simple, then change it back to full again.

    Either way,...

  • RE: DBCC SHRINKFILE

    Warren Peace (5/28/2008)


    Per MS this will be depricated. I use this to shrink my TX logs on Sunday mornings. Does anyone know what the replacement will be? I checked in...

  • RE: Stored Procs and date parameters in SQL2000 vs. SQL2005

    Did this solve your problem? Please post back and let me know the results.

    Thanks,

    Jeff

  • RE: backup sql server schema without permissions

    And now a plug from our sponsors (I am not affiliated - I just use their products). 😀

    1) Create a new blank database

    2) Using SQL Compare by...

  • RE: Stored Procs and date parameters in SQL2000 vs. SQL2005

    No - you need to keep the parameters, and add the local variables:

    CREATE PROCEDURE bmssa.usp_VENDOR_ONTIME

    @Date1datetime

    ,@Date2datetime

    AS

    DECLARE@BeginDt Datetime

    ,@EndDt Datetime

    SET @BeginDt = dateadd(day, datediff(day, 0, @Date1), 0); -- round to midnight

    SET @EndDt...

  • RE: Exceptionally Large DBsize

    What is the recovery model for that database? If it is full recovery model, how often are you backing up the transaction log?

    What are the mdf and ldf file...

Viewing 15 posts - 6,541 through 6,555 (of 6,679 total)