Forum Replies Created

Viewing 15 posts - 2,311 through 2,325 (of 3,221 total)

  • RE: T-SQL

    BitBucket and Lynn,

    I'll throw my hat in the ring in your favor. I can't argue as eloquently as Lynn, but I'll say this - you are absolutely correct. I'm in...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: T-SQL

    Cliff Jones

    My users would expect to see CST and GMT appended to the result

    What you are discussing has been addressed by Lynn Pettis, you are referencing the mode...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: T-SQL

    Lynn Pettis has explained in great detail the reason the times are the same, and as a matter of fact has explained the reasoning better than I could have. ...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Group By query

    OK but give us a little additional information... what table(s) contain the information you need? How are the tables linked (Foreign key) or?

    What have you attempted (your T-SQL...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Split the data into monthly

    You might want to look at the date part function in Books On Line:

    DATEPART (Transact-SQL)

    ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/15f1a5bc-4c0c-4c48-848d-8ec03473e6c1.htm

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Need correct data type

    This will give you an approximate answer:

    declare @thisTime decimal(8,2)

    declare @thisTime2 decimal(8,2)

    set @thisTime = datediff(ss, getdate(), '11/22/2009')

    set @thisTime2 = CAST(datediff(ss, getdate(), '11/22/2009')AS DECIMAL(8,2))/3600

    select @thisTime AS 'Total seconds' ,@thisTime2 AS 'Total...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Rebuilding indexes doesnt work

    Trooper09 - Do you believe that the index fragmentation is effecting your performance? Which method of rebuild/defragging did you use?

    From the same link that you posted: (Emphasis added)

    http://msdn.microsoft.com/en-us/library/ms188917.aspx

    Reducing Fragmentation...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Problem Exporting to Excel 2007

    I think that SSRS is NOT exporting data to EXCEL 2007.

    From my Excel 2007 help file:

    WorkSheet size 1,048,576 rows, 16,384 Columns.

    Other improvements to Excel:

    http://visio.mvps.org/Excel_2007.htm

    If memory serves me correctly...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Problem Exporting to Excel 2007

    render to Excel 2007 for our execs but every time I try to export it if fails

    Specifically what error message is returned?

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: Efficient Searching

    Suggest you read the articles on indexing written by Gail Shaw the 2nd of which is the featured article today

    http://www.sqlservercentral.com/articles/Indexing/68563/

    You also might want to spend time looking at these videos...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: I have a scenario where there are 4 records with same ID. I need to write a code so that i can take only last 3 records

    Modify the following:

    ;with numbered as(SELECT rowno=row_number() over

    (partition by your duplicate column, order by Your duplicate column),col1, col2, col3 from your table name)

    select * from numbered WHERE...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: How to select on the previous days date

    Greg Albrecht-252263

    Greg it would help those who want to help you if you would provide further information. Is your date a DATETIME value, or is it month/day/year in...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: How to export query result set into text/excel file?

    alpeshgediya

    A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', see "Surface Area Configuration" in SQL...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: find size iof the index

    Use the code posted by george sibbald-364359 to this forum.

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • RE: find size iof the index

    Rather impatient aren't you... that said try this (Contributed by one unknown to me, prior to your asking the question. To this individual we both owe a hearty THANK...

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

Viewing 15 posts - 2,311 through 2,325 (of 3,221 total)