Forum Replies Created

Viewing 15 posts - 4,366 through 4,380 (of 8,761 total)

  • RE: Query assistance possible cursor??

    g.britton (10/13/2015)


    Shouldn't your example output be:

    1 0 Apple

    4 2 Apple

    8 3 Apple

    Guess it's "before and including"

    😎

  • RE: Query assistance possible cursor??

    jeffrey.sharp (10/13/2015)


    Table definition

    Product_ID identity 1,1

    Product_Purchased varchar(25)

    1 Apple

    2 Pear

    3 Banana

    4 Apple

    5 ...

  • RE: SQL Licensing - Named Instances

    arrjay (10/13/2015)


    Hi there - For SQL Standard edition, would I need multiple licenses if I created multiple named instances on the same physical or virtual server?

    Thanks, Russell.

    Quick answer is that...

  • RE: xml file and conversion datetimeoffset ?

    Quick thought, change the data type from datetime to datetime2, the value is out of range for the former.

    😎

  • RE: How can I efficiently downsize some Unicode fields?

    Quick question, have you considered turning on compression on those tables and indices, most likely more effective and almost no risk involved.

    😎

  • RE: Are the posted questions getting worse?

    ChrisM@Work (10/12/2015)


    Great meeting up with you Eirikur. I've met a half dozen people from Iceland and they have all been charming and completely bonkers. You're similar - but where the...

  • RE: Querying XML data type with UNICODE characters

    eklavu (10/12/2015)


    Hi, Experts

    I'am having an issue fetching Chinese characters in a XML data type. It return questions mark (?).

    Would you be able to advise me? TIA.

    Below is the sample script.

    DECLARE...

  • RE: Today's Random Word!

    Luis Cazares (10/12/2015)


    crookj (10/12/2015)


    djj (10/12/2015)


    eccentricDBA (10/9/2015)


    Ed Wagner (10/9/2015)


    Luis Cazares (10/9/2015)


    Eirikur Eiriksson (10/9/2015)


    Ed Wagner (10/9/2015)


    DonlSimpson (10/9/2015)


    anthony.green (10/9/2015)


    Ed Wagner (10/9/2015)


    crookj (10/9/2015)


    Ed Wagner (10/9/2015)


    happygeek (10/9/2015)


    Deadlock victim!

    Cost

    Expense

    Revenue

    Tax

    Tariff

    Price Increase

    Pint

    Pitcher

    Round

    Parrotheads

    Paradise

    Snake Eyes (pair a dice)

    G.I.Joe

    DYJoe

  • RE: Convert Oracle query to SQL

    vipin_jha123 (10/12/2015)


    Yes sir

    Slight different between the two, roughly connect_by_isleaf is the equivalent of GetDescendant

    😎

  • RE: Convert Oracle query to SQL

    Quick question, is this hierarchical data?

    😎

  • RE: How to combine results from 4 rows into 1?

    Quick solution

    😎

    SELECT

    RoleName = max(pr.name ...

  • RE: Today's Random Word!

    Ed Wagner (10/9/2015)


    DonlSimpson (10/9/2015)


    anthony.green (10/9/2015)


    Ed Wagner (10/9/2015)


    crookj (10/9/2015)


    Ed Wagner (10/9/2015)


    happygeek (10/9/2015)


    Deadlock victim!

    Cost

    Expense

    Revenue

    Tax

    Tariff

    Price Increase

    Pint

  • RE: Help to sort out conversion error

    Slightly more pedantic approach preventing an implicit conversion

    😎

    DECLARE @sql NVARCHAR(400)

    DECLARE @WgnWCUser VARCHAR(30)='DBO'

    DECLARE @TIMESTAMP VARCHAR(30)='UpdateTimestamp'

    DECLARE @datFrom DATETIME='20150916'

    DECLARE @datTo DATETIME='20150930'

    SET @sql='SELECT EVENTUID,EVENTTIMESTAMP,EVENTMAJORTYPE,EVENTMINORTYPE INTO #TEMP

    FROM ' + @WgnWCUser + '.EMPLOYEE A WITH(NOLOCK)

    WHERE A.'+@TIMESTAMP+'>=CONVERT(DATE,'''+CONVERT(VARCHAR(25),@datFrom,112)+''',112)AND...

  • RE: Are the posted questions getting worse?

    dwain.c (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Eirikur Eiriksson (10/1/2015)


    ChrisM@Work (10/1/2015)


    Oh, and maple beer - yuck.

    This made me spill my ESB...

  • RE: Slow Query (FOR XML)

    sandhuz24 (10/7/2015)


    Thanks Eirikur!

    Sorry for the delay in getting back to the post. Been really busy at work. I had the indexes on the table as you suggest in your post...

Viewing 15 posts - 4,366 through 4,380 (of 8,761 total)