Forum Replies Created

Viewing 15 posts - 676 through 690 (of 1,315 total)

  • RE: Huge db backup taking too long. help me reduce

    The fastest and easiest way to speed up your backups would be to get SQL LiteSpeed, RedGate Backup, or one of their competitors, and create compressed backups.  Your mileage may...

  • RE: Joining Two Queries That Contain Groupings and Aggregate Functions

    The simple answer is to just use your existing queries as derived table subqueries.  You have to remove the ORDER BY clauses, but otherwise it is simply:

    SELECT ...

    FROM (

        {...

  • RE: sql 2000 to sql 2005 upgrade

    If you shut down SQL 2000 the upgrade advisor wouldn't be able to connect to the databases.

    If at all possible you want to do a fresh install of SQL 2005 on...

  • RE: sql server 2005 memory on 64 bit machine

    Out of curiosity, why would you want to limit SQL Server to 6GB out of 8GB RAM on a "dedicated sql server machine"?  SQL 2005 memory management is designed to...

  • RE: How to extract dates from text string?

    I can name that date in one query

    -- Use STUFF to remove the date suffix, then cast the strings to datetime

    --...

  • RE: SELECT Top 1...?

    Or just move the MAX inside the CASE:

    Case

    When Max(datestamp) IS

  • RE: SELECT Top 1...?

    Hang on there PW, I think the CASE statement in your subquery is backwards.  The way it is written it will return -1 as the orderid for all records with...

  • RE: SELECT Top 1...?

    You can get multiple rows if a customer places more than one order a day.  To be sure you only get one row per customer you may have to...

  • RE: DTS insert and Update

    Look at the options for the data pump task.  The default is to commit all rows in one transaction, but you change it to commit every x number of rows. ...

  • RE: DTS insert and Update

    The best way to prevent table locks is to limit the number of rows that are part of each transaction.  Commit inserts every few thousand rows, perform updates in a...

  • RE: Employer / Employee - READ FIRST

    How about "don't post anything you'd NOT want your employer to read."

  • RE: Log Shipping

    Wouldn't your solution (unknown password on the primary) work if you didn't bother changing the password every day?  Passwords are stored in the master database, so they wouldn't be part of...

  • RE: DBCC DBReindex

    That is an oversimplification.  It needs 1.2 x the size of the data in the table just to rebuild a clustered index.  (If there have been a lot of randomly-distributed...

  • RE: Query Designer Timeout

    Use the "Design Query in Editor" toolbar button to use the graphical query designer.  It won't run queries, but when you're finished the query is automatically pasted into the active...

  • RE: Identity column unique only in table

    This version should be fairly robust.  This will prevent multiple users from getting the same number, but it will create locking problems if you have a lot of concurrent users. ...

Viewing 15 posts - 676 through 690 (of 1,315 total)