Forum Replies Created

Viewing 15 posts - 1,531 through 1,545 (of 5,841 total)

  • RE: Sql server random slow query

    mdsantos (5/13/2015)


    Hi thank you for the replies.

    What I meant with dinamic query is that part of the SQL code is passed to the stored procedure as a parameters. EXample:

    exec SP_SELECT_ROWS_K2_CLAIMS_WF...

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

  • RE: Sql server random slow query

    mdsantos (5/13/2015)


    Hi to all,

    In my company we are dealing with a very strange problem in the last couple of week in a SQL 2012 server. And maybe you could give...

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

  • RE: DBCC CHECKDB - snapshot error

    1) There are no shared files on AG - they exist on local storage on separate servers, at least to my knowledge (and unless you are combining a SQL Server...

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

  • RE: Combine the functionality of IN and LIKE in a WHERE clause

    1) What you have works fine. You can build it dynamically if you have the words in your app too (guarding against SQL Injection obviously).

    2) You cannot do what you...

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

  • RE: DBCC CHECKDB - snapshot error

    IIRC there was a recent bug fix for a dbcc checkdb snapshot error. Do a search for that and see if it applies to your issue.

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

  • RE: SQL Server 2012 AlwaysOn Availability Groups?

    You sound like you don't have experience here. I can tell you that there are MANY caveats, limitations, provisos and gotchas with Always On that will be VERY LIKELY to...

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

  • RE: Challenged with modeling a huge DB

    goldberg.yoni (5/7/2015)


    Hi,

    I'm tasked to develop a gaming web application system with relatively large database - it should hold the data about 300 million players, the orders/payment of each player -...

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

  • RE: Integers in Time field

    You can do a simple analysis of how many rows per hour to see if that metric makes sense.

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

  • RE: Integers in Time field

    J Livingston SQL (5/5/2015)


    anusha.guntupalli (5/5/2015)


    In one of the tables I am looking at :

    MAX Value: 82860

    MIN Value : 24480

    could this be seconds past midnight?

    My thoughts too. 86400 seconds in...

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

  • RE: Tuning CPU intensive remote query

    sql-lover (5/3/2015)


    TheSQLGuru (5/1/2015)


    sql-lover (5/1/2015)


    TheSQLGuru (5/1/2015)


    I didn't read deeply (TL;DR) :), but the first thing I would do is put the query into a sproc on the remote side and call...

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

  • RE: Tuning CPU intensive remote query

    sql-lover (5/1/2015)


    TheSQLGuru (5/1/2015)


    I didn't read deeply (TL;DR) :), but the first thing I would do is put the query into a sproc on the remote side and call that from...

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

  • RE: Tuning CPU intensive remote query

    I didn't read deeply (TL;DR) :), but the first thing I would do is put the query into a sproc on the remote side and call that from local box.

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

  • RE: SQL Query Help

    pseudocode

    update currentlist

    set active = 0

    from currentlist cl

    where not exists (select * from dailyload dl where cl.phonenumber = dl.phonenumber)

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

  • RE: Update takes too long

    Charles Kincaid (4/30/2015)


    Right after adding the indexes you saw no improvement. Not too surprising as the procedure was using the old execution plan that was cached when the procedure...

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

  • RE: DBCC Shrinkdatabase run every week?

    SQLRNNR (4/30/2015)


    Ed Wagner (4/30/2015)


    TheSQLGuru (4/30/2015)


    This is coming from the Database Manager at our new company.

    That seems to have been missed. Sadly it is MANAGEMENT/LEADERSHIP that is forcing these ridiculous...

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

Viewing 15 posts - 1,531 through 1,545 (of 5,841 total)