Forum Replies Created

Viewing 15 posts - 1,801 through 1,815 (of 3,221 total)

  • RE: Round up or down III

    Hugo Kornelis

    Copied and tested your code and got your answers. Unfortunately I did not save my test code and now can not duplicate my results, and I tested that...

    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: Round up or down III

    For a completly different answer - execute the code with the setting for

    ARITHABORT ON and note the difference. An important fact to be aware of.

    Added after reading Hugo Kornelis...

    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: Compare Records in Table On coloumns

    Is this what you require?

    CREATE TABLE #T(C1 INT, C2 INT, C3 INT, C4 INT, C5 INT)

    INSERT INTO #T

    SELECT 1,1,1,1,0 UNION ALL

    SELECT 1,1,1,0,1 UNION ALL

    SELECT 1,1,0,1,1 UNION ALL

    SELECT 1,0,1,1,1 UNION ALL

    SELECT...

    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: Sql Query to extract the data.. Need Help...

    Rajiv Kumar

    You are much more likely to receive a tested response if you would post the table definition, some sample data as per the first link in my signature block....

    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: index fragmentation

    Have you quired sys.dm_db_index_physical_stats ?

    For example (Reorts on all DBs:

    select * from sys.dm_db_index_physical_stats(0,0,-1,0,null)

    For a specific database:

    select Object_name(object_id)AS 'Table',index_id,ROUND(avg_fragmentation_in_percent,2) AS

    'Percent Fragmentation'

    from sys.dm_db_index_physical_stats(0,0,-1,0,'DETAILED')

    WHERE database_id = db_id('your db name')

    Further refinement for...

    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: Are the posted questions getting worse?

    Don't think I have seen this in the Thread, but today is Friday the 13 and we all know what that means.

    If memory serves me correctly it is the only...

    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: SQL 6.5 and Y2K

    Boy oh boy did that make the old brain cells churn. Who would of thought this bit of ancient history would rise once again

    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: Delete Rows

    This would be one method to eliminate from the count those drivers who had INTERSTATE and INTRASTATE routes

    CREATE TABLE #T(Did CHAR(1),T VARCHAR(10))

    INSERT INTO #T

    SELECT '7','INTRASTATE' UNION ALL

    SELECT '7','INTERSTATE' UNION ALL

    SELECT...

    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: Are the posted questions getting worse?

    Celko is at it again

    http://www.sqlservercentral.com/Forums/Topic965546-1292-1.aspx#bm966047

    For a community which attempts to help, even the most inept, and helps so many this guy Celko is a real detriment ....

    Is there any...

    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: SQL subquery WHERE IN clauses

    sergio.huertac

    To repeat what I and WayneS requested. This is an example of the Create Table and sample data as it should be posted to a forum.

    CREATE TABLE #StatusFilter(

    StatusID...

    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: SQL subquery WHERE IN clauses

    sergio.huertac

    You are more likely to receive a tested answer if you include in your posting the Table definition(s), sample data and required results as described in the article whose link...

    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 the backup is runing successful..

    I am having difficulty understanding your question. But if you desire to know if a database is being backed up (not how it was performed) try the following code.

    SELECT...

    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 identify the objects that are commented in the procedure

    Lines can be comented by using -- (for a single line of text) or /* */

    The @Script holds the text you retrieved from the syscomments entry and is used...

    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: Create New Excel Sheet if current sheet is full(65536) using SSIS

    rohit.kumar.barik

    May I suggest that you read this article, which contains a wealth of sample code ... It has code to name Excel spread sheets, add work sheets, write to a...

    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 - 1,801 through 1,815 (of 3,221 total)