Forum Replies Created

Viewing 15 posts - 691 through 705 (of 5,678 total)

  • RE: Why XML Datatype present in SQL Server.

    Alan above walked you through XML in general, but... um... hm. A few comments (not on Alan's work, that was pretty thorough).

    for text its nvarchar

    No. For text it's...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Relationship between two tables (what is correct?)

    Carlos, so you're looking for how we usually approach creating many to many tables?

    The relationship is (role)1..N to 0..1(groups)

    This would usually imply that you have a 1 to...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: OVER and PARTITION BY. Please explain

    TecNQ (5/8/2013)


    Thanks again.

    The last code needed a GROUP BY to work, but it works!

    The first one didn't. It came back saying "Incorrect syntax near DISTINCT".

    I assume that's the COUNT(DISTINCT...)?

    Cheers

    Yeah, sorry,...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: OVER and PARTITION BY. Please explain

    TecNQ (5/8/2013)


    What I am trying to do is report by each student ID, the number of Qualifications and Units.

    But as you may have already seen, it's reporting the same COUNT()...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: OVER and PARTITION BY. Please explain

    TecNQ (5/8/2013)


    Thanks Craig. I found that link too (yes I can use Google), but I didn't understand it. Your reply made more sense actually. Thanks

    No worries, usually it's a case...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Can someone tell me what's happening with this query?

    kevinv (5/8/2013)


    I'm seeing a difference in a query between SQL 2005 and SQL 2008 and I'm not understanding. The below demonstrates it. On SQL 2008, the second query below will...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: OVER and PARTITION BY. Please explain

    In case you're simply having google-fu failure, here's the link explaining the code:

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

    MSDN article on ROW_NUMBER().

    OVER is a keyword to tell it you're about to tell it your intentions, that's...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: A Check and Foreign Key Constraint Improves Query Performance

    EDIT: This is a textwall, I know, sorry for that but I got on a roll. Peter, a response to you starts about 1/3 of the way down. /EDIT

    L'...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: SSMS Stored procedure help

    alan_lynch (5/2/2013)


    so my problem now is that I am the owner of this procedure but I cannot modify it because it is now encrypted and grayed out. is there...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: SSMS Stored procedure help

    CREATE PROCEDURE TestProc

    WITH ENCRYPTION

    AS

    ...

    GO


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: SSMS Stored procedure help

    Final check, what does it say when you rt-click -> Script Stored Procedure as -> Create To -> New Query Editor window?

    My guess is they most likely encrypted the procedures....


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: SSMS Stored procedure help

    There are a couple of ways that can be grayed out, but to get rid of a series of Q&A... are you the sa on the box or DBO of...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    L' Eomot Inversé (5/2/2013)


    Evil Kraig F (5/2/2013)


    SQLRNNR (5/2/2013)


    This is sooo true

    http://xkcd.com/1205/

    LOL, I know. I've actually printed it out and hung it on my cube wall.

    Take care not to forget...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: Are the posted questions getting worse?

    SQLRNNR (5/2/2013)


    This is sooo true

    http://xkcd.com/1205/

    LOL, I know. I've actually printed it out and hung it on my cube wall.


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

  • RE: A Check and Foreign Key Constraint Improves Query Performance

    Last thing first. 🙂

    L' Eomot Inversé (5/1/2013)


    So we can either continue to try to understand each other - which may be difficult, given the different backgrounds - or we can...


    - Craig Farrell

    Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

    For better assistance in answering your questions[/url] | Forum Netiquette
    For index/tuning help, follow these directions.[/url] |Tally Tables[/url]

    Twitter: @AnyWayDBA

Viewing 15 posts - 691 through 705 (of 5,678 total)