Forum Replies Created

Viewing 15 posts - 5,821 through 5,835 (of 5,841 total)

  • RE: Use Red-Gate''''s backup... and Go to Jail???

    Quote from article:  "

    All software is licensed on a per computer basis. For example, if you wish to use SQL Backup on more than one computer you will need an...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Stored Proc is slow, but SQL code is fast

    >> I got sidetracked by other issues and haven't got to any of the newer suggestions yet.

     

    WHAT?!?! You mean you don't get to work on one task to completion?!?  OUTRAGEOUS!! ...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Stored Proc is slow, but SQL code is fast

    it is almost certainly query caching that is getting you in trouble here. 

    do all your tables have an index on LST_DTE?  do you have indexes on the columns joined...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Stored Proc is slow, but SQL code is fast

    Without seeing the code, I would bet that either 1) you are hard-coding a variable or two in your where clause in query analyzer which allows the query optimizer to...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Difference bet. 2000 vs. 2005 Stored Procedure

    Irrespective of why the code snippet you produced is running slower on sql2k5, wouldn't it be MUCH faster to simply create a table with the rows you DO WANT in...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Optimizing: Delete of 1.000.000 of rows

    1) There are a number of 'improvements' to your query:

    set rowcount outside the query

    use explicit transactions and error checking

    SET ROWCOUNT 10000    --I might go with 50K here?

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Copyright Concerns on SQL Server Central

    Here is the link for those that are wondering:  http://www.sqlservercentral.com/scripts/viewscript.asp?scriptid=1243

    There were a number of quite contentious threads some time ago about how the sql server user community will lose...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: list User Stored Procedures that reference a specified table

    Colin, your query does exactly what I cautioned against.  Suppose a line of a sproc wraps in syscomments (nvarchar 8000 IIRC), and it wraps in such a way to split...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Add index to existing table

    Since you are a newbie to SQL Server (and appear to have been thrown into the deep end of the pool I will...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: list User Stored Procedures that reference a specified table

    Be careful though.  Sysdepends is not guaranteed to be accurate at all times.  The most thorough way is to grep through syscomments with a LIKE clause of  '%tablename%' and join...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Add index to existing table

    Jurriaan, you should definitely NOT create the index before populating the data.  This will simply lead to a very fragmented index right off the bat.

     

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: HELP!!! Getting data from two huge tables in a huge DB

    Well, if you build a clustered index it is gonna hurt!  The entire table may well be rewritten out to the transaction log as the data is sorted and laid...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: HELP!!! Getting data from two huge tables in a huge DB

    Proper sizing of disk files for databases is something that is optimally done by the DBA, not by sql server hitting a full file and then auto-growing the file based...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: HELP!!! Getting data from two huge tables in a huge DB

    You mentioned doing data mining so I will assume that you actually DO need all the data from the day's join query so you can run it through some mining...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Multiple Databases vs. Minimal Databases

    >> That is correct as long you give the access to the db through application but I have seen the cases sometimes clients want to generate custom reports which requires...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 5,821 through 5,835 (of 5,841 total)