Forum Replies Created

Viewing 15 posts - 916 through 930 (of 5,841 total)

  • RE: About Adhoc Optimitation on real scenario

    If you don't update statistics manually you could wind up with some very different query plans (both for the better and perhaps worse) when you switch this on. However, the...

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

  • RE: Maintaining Sequence of OUTPUT rows during INSERT

    1) you asked to not be lectured on GUIDs, so I won't do that.

    2) I WILL lecture you on the design choice of doing a partial insert and then updating...

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

  • RE: Query for splitting a single row into multiple rows based on a column data

    Luis Cazares (7/6/2016)


    You're over complicating yourself. Here's a simpler version of your query.

    SELECT l.pageno,

    l.batchid,

    l.loadid,

    n AS lnidmin,

    ...

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

  • RE: Restoring 100s of user databases..

    See if the attached will get you started.

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

  • RE: Sql server databases on flash drives

    Indianrock (7/5/2016)


    We have a project to move our largest customer database, and tempdb, from Netapp magnetic drives to Netapp SSDs.

    I hadn't heard of using these for anything other than tempdb??

    This...

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

  • RE: Job doesn't run as per schedule at 1:05a, but runs when triggered manually.

    ffarouqi (7/5/2016)


    Grant Fritchey (7/5/2016)


    I'd want the specifics on the error message.

    If it's getting timed out, that means it's firing, so it's not an issue that it's an Agent job,...

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

  • RE: Find top 10 expensive queries in the past 10 minutes

    Download a copy of Glenn Berry's SQL Server Diagnostic Scripts for your version of SQL Server. An AMAZING collection of free stuff there!

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

  • RE: Job doesn't run as per schedule at 1:05a, but runs when triggered manually.

    What does the error details for the job say? Perhaps modify the job to add step details to the logging process. Have someone stay up and monitor the server(s) involved...

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

  • RE: Stored Procedure execution

    sp_whoisactive has an option to show you the executing query plan. It is a MARVELOUS FREE tool you really should read up on. SQLBlog.com has a 30-day series on it...

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

  • RE: Stored Procedure execution

    Use sp_whoisactive to determine how much work has been done, query plan, tempdb usage, blocking, etc. You can also run it in differential mode and see how much work is...

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

  • RE: in dynamic sql , creating temp table in with in dynamic sql is good or it should be out side.

    If the structure of the temp table is fixed I always declare it outside the dynamic sql simply because then if I need to use it outside I know it...

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

  • RE: Correct MAXDOP setting

    It is very easy to adjust MAXDOP to suit varying load times since it is a live/immediate setting and requires no reboot. I am tired and can't recall it's affect...

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

  • RE: Using the case statement to show a particular column code

    Please don't double-post.

    Answer here: http://www.sqlservercentral.com/Forums/Topic1799126-392-1.aspx

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

  • RE: Case statement - boolean expression help needed

    MMITTAL 758 (7/1/2016)


    Hi All,

    I want to have the distinct values for the column which is satisfied in the case statement and also want to get the condition satisfied for the...

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

  • RE: Using the case statement to show a particular column code

    MMITTAL 758 (7/1/2016)


    Hi,

    I'm trying to add a condition in sql where I have used &regiondivision and &divisionid as variables. I want if the case 1st condition is satisfied then the...

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

Viewing 15 posts - 916 through 930 (of 5,841 total)