Forum Replies Created

Viewing 15 posts - 931 through 945 (of 2,647 total)

  • RE: Report Manager

    Try this:

    USE ReportServer

    GO

    SELECT u.UserName, s.*

    FROM subscriptions s

    INNER JOIN Users u

    ON s.OwnerID = u.UserId

    AND u.UserName = 'Jared'

    Jared
    CE - Microsoft

  • RE: Alias Exists Subquery

    Sean Lange (5/15/2012)


    SQLKnowItAll (5/15/2012)


    Why do you violate ISO-11179 rules?

    Hehehe... Because nobody learns them or cares to. I'll tell you a question I have never been asked at an interview... "Are...

    Jared
    CE - Microsoft

  • RE: Alias Exists Subquery

    Why do you violate ISO-11179 rules?

    Hehehe... Because nobody learns them or cares to. I'll tell you a question I have never been asked at an interview... "Are you familiar with...

    Jared
    CE - Microsoft

  • RE: Data Sel Pull

    So...

    SELECT AgencyID, AgencyName,AgencyType, COUNT(AgencyID)

    FROM Agencies

    WHERE (Grade = 'D' AND PeriodFinishDate > GETDATE() - (365 * 3))

    OR

    (YEAR(ReportReceivedDate) > YEAR(ReportDueDate) - 3)

    OR

    (Other= -1 AND OtherReason='High Profile' AND ReportDueDate > GETDATE() - (365...

    Jared
    CE - Microsoft

  • RE: Data Sel Pull

    What is the question?

    Jared
    CE - Microsoft

  • RE: Need help creating case statements from a query.

    I'm super confused. Please reference the article in my signature by Jeff Moden, otherwise you are going to get 20 responses that all do something different and none of them...

    Jared
    CE - Microsoft

  • RE: Add a new user

    jralston88 (5/11/2012)


    So in order for this 'user' to be added - they have to be a "server principal" aka login. Is this correct?

    Taking this one step further -...

    Jared
    CE - Microsoft

  • RE: Bug or problem with a merge statement SQL Server 2008 R2

    I don't think anybody's mad. We want to help and, probably more importantly, learn. We just couldn't do much with the error except for take it at its word. Let...

    Jared
    CE - Microsoft

  • RE: Bug or problem with a merge statement SQL Server 2008 R2

    Welsh Corgi (5/15/2012)


    I'm getting the following error:

    The MERGE statement attempted to UPDATE or DELETE the same row more than once. This happens when a target row matches ore than one...

    Jared
    CE - Microsoft

  • RE: primary keys

    sqlvogel (5/15/2012)


    SQLKnowItAll (5/15/2012)


    Well, of course it depends... I still don't see your justification for Microsoft having a lot to answer for. Its likes saying that Nissan has "a lot to...

    Jared
    CE - Microsoft

  • RE: primary keys

    Lynn's answer is indeed the only prudent one: it depends. Microsoft has a lot to answer for in making the primary key default to a clustered index.

    Well, of course it...

    Jared
    CE - Microsoft

  • RE: ad hoc queries

    Its kind of like asking what's the difference between a salad and a fruit. A salad can be made of fruit or vegetables, and a fruit can be in...

    Jared
    CE - Microsoft

  • RE: primary keys

    Lynn Pettis (5/15/2012)


    Eugene Elutin (5/15/2012)


    ...

    Now, for whatever reason, Microsoft by default makes it the clustered index. This is 99% of the time wrong.

    The clustered index should be on a...

    Jared
    CE - Microsoft

  • RE: primary keys

    Eugene Elutin (5/15/2012)


    ...

    Now, for whatever reason, Microsoft by default makes it the clustered index. This is 99% of the time wrong.

    The clustered index should be on a better choice,...

    Jared
    CE - Microsoft

  • RE: Is this true?

    dan-572483 (5/14/2012)


    For confirmed errors & corrections see KB968609

    Yes, and as I said there is no mention of these 2 pages. So, if it IS correct I would like someone with...

    Jared
    CE - Microsoft

Viewing 15 posts - 931 through 945 (of 2,647 total)