Forum Replies Created

Viewing 15 posts - 631 through 645 (of 2,894 total)

  • RE: sqlcode vs sp

    ...

    Also, to be able to "make the best use of the underlying DB engine" you must acquire a deep knowledge of the DB engine, and I am not interested in...

  • RE: software adds comp_companyid that distors my sql results

    any way to acheive the first result by tweaking the second tsql?

    please advise

    In short: No, there is no way, without stopping your "software" to change your original query.

  • RE: sqlcode vs sp

    fmuzul (3/11/2013)


    ...

    Maybe you live in a different world than mine. For me the redeploy of an application is not a problem, I just need to replace a .exe file, and...

  • RE: sqlcode vs sp

    fmuzul (3/11/2013)


    BOL is written by Microsoft. This is not an independent point of view.

    They want to convince the reader that s.p. are good.

    Is wiki independent enough for you? http://en.wikipedia.org/wiki/Stored_procedure

    Typical...

  • RE: ORDER BY = Bubble Sort ? Quick Sort ? Insertion Sort ?

    Lynn Pettis (3/11/2013)


    Eugene Elutin (3/11/2013)


    Curiosity is a great thing!

    Without it, elephants wouldn't have trunks...

    What does the Crocodile have for dinner?...

    :hehe:

    Whatever it wants...

    It prefers to start with curios, little elephants, actually......

  • RE: sqlcode vs sp

    fmuzul (3/11/2013)


    My suggestion is: avoid stored procedures at all, unless you have very special needs of performance on some complicated operations.

    ...

    Calling statement! :w00t:

    I'm afraid you will not find many SQL...

  • RE: sqlcode vs sp

    Van Heghe Eddy (3/10/2013)


    Using stored procedures has also the following benefits.

    Security : dba can determine who can execute what

    Tuning : mostly stored procedures are written by sql developpers who mostly...

  • RE: ORDER BY = Bubble Sort ? Quick Sort ? Insertion Sort ?

    Curiosity is a great thing!

    Without it, elephants wouldn't have trunks...

    What does the Crocodile have for dinner?...

    :hehe:

  • RE: Group a set of chain values

    Ok, if the data and output requirements OP provided this time are right, then the following should work for him:

    DECLARE @UnitConvert table

    (

    ID int identity(1,1),

    ConvertUnitOne...

  • RE: Group a set of chain values

    dwain.c (3/11/2013)


    Of course, I could be wrong as Eugene has proven in the past.

    I think his query may be workable. All you'd need to do is UNPIVOT the two...

  • RE: Combine variable and select statement

    vahid.arr (3/11/2013)


    I want to combine this select statement and a variable(@EndUserDel) to get result.how can i do that?

    declare @EndUserDel nvarchar(20)

    select * FROM [dbo].[Service]

    i want this...

  • RE: Group a set of chain values

    UNION ALL SELECT 2000,1000

    UNION ALL SELECT 2000,700

    doesn't look like a chain to me, is it valid combination? Can ConvertUnitOne point to two different ConvertUnitTwo?

    If it's not valid, than you...

  • RE: Create CLUSTERED Index

    Eugene Elutin (3/11/2013)


    You can also create new clustered index with DROP_EXISTING option, except it will happen in one transaction, so it may not safe too much of time. I guess...

  • RE: Create CLUSTERED Index

    You can also create new clustered index with DROP_EXISTING option. I guess it's equivalent to dropping and re-creating non-clustered indexes manually. However, if index you're going to drop is participating...

  • RE: cursor concatenating variable

    And what is the problem?

Viewing 15 posts - 631 through 645 (of 2,894 total)