Forum Replies Created

Viewing 15 posts - 211 through 225 (of 369 total)

  • RE: Best Practice

    Tom Garth (9/4/2008)


    ... I never saw SELECT NULL used. That's pretty cool. I might switch.

    I discovered the SELECT NULL syntax by observing the internal SQL statements issued by Oracle when...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Best Practice

    AJ (9/4/2008)


    Good question, but I think it is being confused, including by me, with an UPSERT (as the previous posts' referral to MERGE indicates too).

    This question needs more information to...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Best Practice

    Hugo Kornelis (9/4/2008)


    Personally, I prefer SELECT * as it indicates checking for a row, not checking for a specific value or so. But that's just personal preference. From a performance...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: SET @var = (query) fails if query contains a WITH clause

    Re:

    I'm afraid I don't understand the complaint here. There are solutions to get the end result you want, with the error-protection you want. They are easy to...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: SET @var = (query) fails if query contains a WITH clause

    Jack,

    Yes, the non NAMESPACE query works. It is what you'll see published in every [rant: too simple] example.

    Since the WITH clause is used for both CTEs as well as...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: SET @var = (query) fails if query contains a WITH clause

    Just to clarify the following:

    The other method will actually return all of the rows per the query and set the value of the last row returned -- which can be...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: SET @var = (query) fails if query contains a WITH clause

    Jack,

    Yeah, I managed to come up with the same screwy solution myself. I'm not real happy, but it works.

    I submitted the same problem to a Microsoft support forum to...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Cursor optimization

    Hugo Kornelis (7/8/2008)


    GSquared (7/8/2008)


    Just to test this, I tried the following on a table with just over 1-million rows of data:

    (...)

    I had used fast_forward in the past, based on what...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Cursor optimization

    In all of the read-only cursors that I have coded I always specify FAST_FORWARD.

    I have never used STATIC as the overhead to copy the data into tempdb can be prohibitive...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Moving Files

    but definitely not if you "restart the instance with the -D parameter that specifices the database name and new path deparated by a colon". You have to give only the...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Moving Files

    James Rochez (7/2/2008)


    JohnG (7/2/2008)


    We need better quality control on the QOD. E.g., correctly spelling the names of stored procedures, etc.

    Most of us understand the intention and overlook some spelling...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Query with CONTAINS or FREETEXT with like??

    See BOL for details, syntax, and examples.

    1. Use CONTAINS vs. FREETEXT as FREETEXT has a number of limitations.

    2. The CONTAINS wildcard character is an asterisk (*).

    3. Note the limitations of...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Moving Files

    We need better quality control on the QOD. E.g., correctly spelling the names of stored procedures, etc.

    Most of us understand the intention and overlook some spelling errors (e.g., with...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Float vs Decimal?

    But, just having a degree in something is no assurance of competency.

    Very true. With all disciplines, it is one thing to be "book smart", it is another thing to...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

  • RE: Refresh All Views

    Can anyone suggest me how to fix this.Means I wanted to exclude (or print the view name which is not refreshed) the un refreshed view and refresh the other views.

    The...


    [font="Arial Narrow"](PHB) I think we should build an SQL database. (Dilbert) What color do you want that database? (PHB) I think mauve has the most RAM.[/font]

Viewing 15 posts - 211 through 225 (of 369 total)