Forum Replies Created

Viewing 15 posts - 1,561 through 1,575 (of 2,894 total)

  • RE: parse string

    Do you like puzzles?

    declare @in varchar(50)

    declare @out varchar(50)

    set @in = '[p]a]a]s]s][p'

    select @in as [IN],

    (

    select r+''

    from

    (

    ...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to load a temp table with the result set of a sproc

    ...

    Don't need the DECODE function, it was confusing to me, found use CASE WHEN more readable if verbose. Packages, just reminds me of ADA and after working with SQL...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to load a temp table with the result set of a sproc

    Lynn Pettis (5/15/2012)


    Eugene Elutin (5/15/2012)


    Transactions that involve table variables last only for the duration of an update on the table variable. Therefore, table variables require less locking and logging resources....

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to load a temp table with the result set of a sproc

    Transactions that involve table variables last only for the duration of an update on the table variable. Therefore, table variables require less locking and logging resources. Because table variables have...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: primary keys

    Lynn Pettis (5/15/2012)


    I am going to just say we are going to have to agree to disagree. I am not going to say that the Primary Key should most...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • 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...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: ad hoc queries

    kwe477 (5/15/2012)


    Excerpt from below link:

    ...

    Dynamic queries:

    are nothing more than ad-hoc queries built using a dynamic string. Dynamic queries are considered ad-hoc queries by the optimizer because they are not...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: primary keys

    ...

    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, and should...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to change NULL into a value when executing a FETCH

    jonas.kasper (5/15/2012)


    Yes I do...

    I am creating a job that will send emails every morning showing different data that has occured during the last day. Some of the data that is...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to change NULL into a value when executing a FETCH

    Phil Parkin (5/15/2012)


    Eugene Elutin (5/15/2012)


    ISNULL(tb_2.column_2, 'Undefined')

    You didn't mention the 'c' word...

    Or, yeah!:cool:

    To OP:

    Are you sure you need a cursor for what you're doing?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to change NULL into a value when executing a FETCH

    ISNULL(tb_2.column_2, 'Undefined')

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Organically cancel a resultset from proc if rowcount is zero?

    reidres (5/15/2012)


    Thank you, but no.

    While the output of your proc is correct, I am literally interested in either a process that matches my topic title or a definitive...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Switching number with counting

    ...

    Only while you're looking. There is no guarantee of order in a SELECT unless you have an ORDER BY.

    ...

    It's not applicable for dense_rank, where order is enforced. After second...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: ADO recordset does not open after executing stored procedure

    If nothing has changed, it would continue to work.

    So, something has changed! (It doesn't work now - it's a change!)

    Is this only bit doesn't work? Any other parts of code...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: ADO recordset does not open after executing stored procedure

    I would think that ADO has a problem with oppening the connection to SQL server as per your "Friday's" environment.

    DNS changed?

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 1,561 through 1,575 (of 2,894 total)