Forum Replies Created

Viewing 15 posts - 661 through 675 (of 1,315 total)

  • RE: Litespeed backup in stored procedure

    Use osql or sqlcmd and save the output to a file.

    I haven't tried it, but possibly if you run osql or sqlcmd from xp_cmdshell with no output file command-line option,...

  • RE: Litespeed backup in stored procedure

    You can get the error message for the last database backup with the query

    SELECT

    TOP 1 ErrorMessage

    FROM [Litespeed reporting database]

  • RE: SQL Query for Roll Up Totals

    If you change the last line to "group by G.GroupCode WITH ROLLUP", you'll get an extra row with the grand total for Amount (and a NULL for GroupCode).  Is...

  • RE: Litespeed backup in stored procedure

    How about the ErrorMessage field of the LitespeedActivity table?

  • RE: Should I use NOLOCKS?

    NOLOCK is like a chainsaw, it's very useful but also dangerous.  I don't think I would put it on any list of standards or best practices if those recommendations would...

  • RE: Flat files - any advantages?

    If join performance is a concern for a normalized design, there are a lot of things to check before going to a denormalized structure.

    Do the indexes allow efficient joins?  Does...

  • RE: how do I find the the location of data

    This will produce the queries to find all occurrences of 312564777 in int or bigint columns, or [n][var]char columns of length 9 or greater, in all user tables with only...

  • RE: backups

    Reading the backup history is great, but it might not show you when backups failed.  For that you need to look at the SQL Agent log.  This is not a...

  • RE: Capture output/Return value

    exec @return = Proc arg1, ...

  • RE: Performance on SELECT *

    The only performance gain achieved by using "SELECT *" is that it takes less time to type.  You might argue that there is some miniscule benefit in compilation time, or...

  • RE: Help with row_number()

    Whenever I see something create a temp table and then delete unwanted rows, I wonder if the final table could be generated in one step.  The ROW_NUMBER function can't be...

  • RE: Question of the Day for 11 Dec 2006

    How are we supposed to know when we're supposed to spot the sneaky little syntax errors in the trick questions, and when we're supposed to overlook the stupid errors in...

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

    Most of the suggestions in this thread have assumed that you have some control over how the backups are done.  If Netbackup is running things, you don't have any control. ...

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

    One of the compressed-backup vendors (I don't recall which, probably either LiteSpeed or RedGate) has a benchmark of backing up 1TB in < 2hr.  They probably were using hardware that...

  • RE: Dual core vs quad CPU?

    A dual-core CPU may be equivalent to 1.6-1.8 single CPU's, but that doesn't mean it is equivalent to 0.8-0.9 x the performance of a 2-CPU system.  It should perform better than a dual-processor...

Viewing 15 posts - 661 through 675 (of 1,315 total)