Forum Replies Created

Viewing 15 posts - 301 through 315 (of 5,841 total)

  • RE: Help with SQL Loop Query

    jcelko212 32090 - Thursday, April 20, 2017 2:36 PM

    ChrisM@Work - Thursday, April 20, 2017 9:03 AM

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

  • RE: Slow insert

    1) Any triggers on the table inserting into?

    2) Any keys on the table inserting into?

    3) Did you use sp_whoisactive to see how the query is performing...

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

  • RE: Help SQL query, count and group by day on multiple fields

    HAH! Looks like our posts were being typed up at the same time, and you beat me by 5 minutes. Great minds think alike! 😎

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

  • RE: Record Insert fails in database table

    DesNorton - Thursday, April 20, 2017 9:08 AM

    Is this table possibly used as a staging area for processing data.
    If it is, are...

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

  • RE: SQL temp table issue

    In addition to other statements, I ALWAYS question this type of structure in temp objects in client code:

    dataid int primary key identity(1,1),

    In my experience...

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

  • RE: Help SQL query, count and group by day on multiple fields

    select (
    ------Send Money
      select count(RECID) sum1
      from V_FBNK_FUNDS_TRANSFER001
      where TRANSACTION_TYPE = 'AC2U'
      AND HISTORY_NUMBER NOT IN (2)
      ) AS 'SendMoney1'
    ,
    (select...

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

  • RE: Need help on SQL SERVER WARNING.!

    What data type is PLC Cd?

    It would really help if you gave us more/all of the query and create table statement with some sample data.

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

  • RE: tempdb curiosity

    Jeff Moden - Wednesday, April 19, 2017 8:38 AM

    fizzleme - Tuesday, April 18, 2017 4:34 PM

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

  • RE: tempdb curiosity

    With all the back and forth, I would like to reiterate that you REALLY should have IFI enabled (unless you have some REALLY esoteric security requirement).

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

  • RE: SQL Query Help

    pseudo code:

    select
    from tablea a
    where not exists (select * from tablea b where a.guid = b.guid and b.reason <> reason.reason)

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

  • RE: SQL Query Help

    WHERE NOT EXISTS? Or possibly just a not equals.

    Note I am just guessing here since you didn't provide CREATE table statements with INSERTs of sample data and your...

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

  • RE: Help with SQL Loop Query

    Without sample data and EXACTLY what is happening we may not be able to help.

    What I do in debugging cases like this is scatter PRINT statements of various...

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

  • RE: How do I sort this set of records ( SQL HELP please )

    Sean Lange - Monday, April 17, 2017 3:35 PM

    Slightly off topic but you should consider not splattering that NOLOCK hint all over...

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

  • RE: There is insufficient system memory in resource pool 'default' to run this query.

    Grant Fritchey - Wednesday, April 12, 2017 7:36 AM

    I get that there isn't a table, but the data is in a format that...

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

  • RE: There is insufficient system memory in resource pool 'default' to run this query.

    Another thing that should help performance (although not in computing a query plan) is to use explicit transactioning. Have a BEGIN TRAN/CHECK FOR ERROR/COMMIT OR ROLLBACK every 10K plus-or-minus statements. 

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

Viewing 15 posts - 301 through 315 (of 5,841 total)