Forum Replies Created

Viewing 15 posts - 8,641 through 8,655 (of 9,641 total)

  • RE: Writing

    Michael Earl (5/9/2008)


    I'm basically just lazy.

    I even have a good idea today - I wish I were a bit more motivated.

    I'll take any ideas you aren't motivated enough to use!

  • RE: Performance Issue Cleared Only After SQL Reboot

    A couple of things:

    1. Autoupdate stats should probably be on, especially since you do not mentioning manually updating stats. If you have a highly transactional system then out...

  • RE: Writing

    For all those who have posted that they don't write due to fear of being wrong. The one article I have written did not have anything "wrong", but after...

  • RE: Writing

    I have to be honest, I don't really like to write. I have submitted and had 1 article published here on SSC and have a blog, but I really...

  • RE: Update rows to resolve issues about duplicate keys on Create Unique Index

    All right. Does it matter which one of the records with duplicate ModifiedUTC, you keep? Here's an idea:

    [font="Courier New"];WITH cteDuplicateValidRecords AS -- get all the records with more...

  • RE: Selecting Latest Date

    You could use top 1 or you could try something like this:

    [font="Courier New"]SELECT DISTINCT  

         RT.IndexId,

         ISNULL(dbo.ufn_GetBestIdentifier(RT.IndexId),

         dbo.ufn_GetBestVirtualIdentifier(RT.IndexId)),

         dbo.ufn_GetEntitySystemName(RT.IndexId),

         RT.Status,

         CONVERT(VARCHAR, RT.DateCreated, 106) AS DateCreated,

         RT.CreatedBy,      

         RT.DataTag,

         MH.MergedDate

    FROM  

       @resulttable AS...

  • RE: Problem with Subtotal in Matrix

    You need to change the function in the data row of the matrix to AVG() from SUM() if you want the subtotals/totals to be Avg()

  • RE: Is T-Sql really that hard to learn?

    I basically agree with Grant. Select -> From->Where->Order By are real easy to understand and comprehend. The key is that good database design requires that you understand joins...

  • RE: Logon/connection problem with SQLAgent

    Check the owner of the job.

  • RE: Allowing a user access to setting up security

    I don't think you can set it up so they can just see the security section, but you can put them in the fixed server role of securityadmin id you...

  • RE: Threat - DBO

    As far as I am concerned there is no reason for anyone to be a member of the db_owner role in a production database. The DBA should create roles...

  • RE: Problem emailing query results with Database mail

    Your where clause looks fine to me now, except that if p21_invoice_amt_remaining_view.amt_remaining_frominv is numeric you do not need the quotes .

    When you say it did not like it, did you...

  • RE: Problem emailing query results with Database mail

    Because your query is within a string you need to use 2 single-quotes in order to have one show in your string. So you need something like this:

    @query =...

  • RE: Help with query - Quick Response Needed

    G's explanation is right on. I have used Float in the past, but it does not give precision and you had specifically mentioned Decimal(3,2) in your original post which...

  • RE: Type Casting String to Currency

    What error are you getting? It could be the blank values are causing the issue. Convert blanks to null before converting to currency.

Viewing 15 posts - 8,641 through 8,655 (of 9,641 total)