Forum Replies Created

Viewing 15 posts - 106 through 120 (of 3,221 total)

  • RE: How to get difference between two dates in days and hours?

    Use the DATEDIFF functions ...

    for example

    SELECT DATEDIFF ( datepart , startdate , enddate )

    This will return the number of days difference.

    SELECT DATEDIFF(d,'2013-04-05 10:45:41.013','2013-04-07 14:45:41.013')

    returns 2 days

    This returns the...

    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 Seperate number from a text

    bigshopmall (4/4/2013)


    Suppose the column name of table is mValue and tablename is xy then following query will give the result:

    select mvalue,RequiredValue = case when ISNUMERIC(left(mvalue,1))=1 then SUBSTRING(mvalue,1,CHARINDEX(' ',mvalue)-1)

    ...

    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: Resource Governor

    Knew two - guessed the 3rd .... but wondering how many of those answering the question actually use the Resource Governor ?

    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: Migration detail for SQL SERVER 2000 TO SQL SERVER 2012

    I would suggest you start your upgrade task using the Upgrade Advisor

    here is a link that will assist you in starting your upgrade

    http://msdn.microsoft.com/en-us/library/ms144256(v=sql.90).aspx

    The above reference starts with assistance in upgrading...

    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: Cursor in Stored Procedure

    Without sample table definition(s), and sample data it is difficult to make a recommendation.

    That said, I would recommend that you look at the MERGE statement.

    For example:

    [ WITH <common_table_expression> [,...n] ]

    MERGE...

    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: Truncate Table

    Thanks for a nice clear question

    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: Passing Tables as Parameters

    Very, very good question + nice question ... made me aware of the subtle elements of using tables as parameters, and thanks

    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: Deterministic

    Revenant (3/22/2013)


    I agree that the question is murky due to the exceptions. It took me 25 minutes to figure this one out; it forced my to read BOL really carefully.

    Thanks,...

    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?

    Can I brag, can I boast ..... can I pat myself on my own back ... wether I can or can not .. I will

    My one hundreth QOD has been...

    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: Casting question

    Nice question - had to think long and hard for the correct answer

    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 migration - Database 90 to 100

    You could get a good idea of what needs to be done for the upgrade by running the UPGRADE ADVISOR available at:

    http://www.microsoft.com/en-us/download/details.aspx?id=11455

    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: Temp Table Data Types

    Nice question .. learned something from it ... thanks

    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: invalid character in input file

    Without actual test data all I can suggested is that you look up the REPLACE function.

    It is used in this manner:

    REPLACE(<old_text>, <start_num>, <num_chars>, <new_text>)

    If you would provide some sample data,...

    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: MULTIPLE INSERT IN A DESIRED SEQUENCE

    Rauf Miah

    Your request sounds very much like home work. I am not adverse to helping a student, but first post what you have attempted, and the error message 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: UPDATE PART OF DATA

    If I understand what you desire to do correctly, this should do the job.

    CREATE TABLE T(COMCOD nchar(4), ACTCODE nvarchar(6), ACTDESC nvarchar(250),

    PRIMARY KEY (ACTCODE))

    ...

    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 - 106 through 120 (of 3,221 total)