Forum Replies Created

Viewing 15 posts - 1,831 through 1,845 (of 3,011 total)

  • RE: How to simplify a "negative a zero" formula

    This shows how to avoid repeating the expression code withing the case statement by using a derived table in a subquery. This will work for any arbitrary complex expression.

    select

    a.*,

    MyResult...

  • RE: deleted entries from the table !!!

    CH&HU (4/17/2009)


    Dear Lowell,

    I will definitely try the procedure and will keep the improvements posted.

    One more question : can't we stop a user account or login account deleting the data from...

  • RE: Reverse string without built in functions

    GSquared (4/17/2009)


    Michael Valentine Jones (4/17/2009)


    OK, as long as we are doing useless SQL, I want to add numbers together without using any Arithmetic, Logical, Assignment, String, Bitwise, or Unary Operators...

  • RE: datetime - 1/1/1900 treated as blank??

    There is no problem. SQL Server is working as designed and as documented.

    When you cast a zero length string to datatype of datetime, it casts it to the SQL...

  • RE: Reverse string without built in functions

    OK, as long as we are doing useless SQL, I want to add numbers together without using any Arithmetic, Logical, Assignment, String, Bitwise, or Unary Operators or any Mathematical or...

  • RE: How will I SUM 2 fields in the same table and subtract them with different criteria?

    select

    Material,

    sum(case Status when 1 then Qty else 0 end)-

    sum(case Status when 0 then Qty else 0 end) as Qty

    from

    MyTable

    group by

    Material

    order by

    Material

  • RE: The Cloud of Destiny

    Bob Abernethy (4/15/2009)

    ...I'm sure that the vast majority of the decision-makers in these thousands of companies are intelligent profesisonals who went through a valid decision-making process that took into account...

  • RE: Reverse string without built in functions

    Maybe you should learn to use what is available in SQL Server, like REVERSE, instead of spending time duplicating what is already available.

  • RE: Reverse string without built in functions

    pshvets (4/14/2009)


    Hello all.

    I am trying to write a function which reverses passed string WITHOUT using any built-in functions

    So if 'abc' is passed, it returns 'cba'

    I want to use recursion. Here...

  • RE: Select all tables from all databases using T-SQL

    RBarryYoung (4/10/2009)


    Florian Reischl (4/10/2009)


    Hi

    Since your count of databases is not too much you can use a VARCHAR(8000) and Barry's suggestion to use the INFORMATION_SCHEMA.TABLES:

    Unfortunately Flo, the INFORMATION_SCHEMA views do not...

  • RE: Encrypting SQL Code

    Theunis Viljoen (4/10/2009)...We are currently looking at encryption tools such as SQL Shield 4 as an effective encryption tool for SQL 2005. I would be interested to read any feedback...

  • RE: Encrypting SQL Code

    The only time I have seen SQL Server procedure encryption used was for a vendor product.

    I decrypted and looked at a few of the procedures. They appeared to have...

  • RE: Show MVP Status on forum posts

    If you want to show a special status for a poster, you might consider some kind of SSC MVP status (Most Valuable Poster?) that you setup, instead of using Microsoft’s...

  • RE: Show MVP Status on forum posts

    The quality of a response depends on what you say, not who you are.

    This is a discussion board, not a place to receive pronouncements from on high. The value...

  • RE: sp_dates add this proc to your code collection

    Lowell (4/8/2009)


    i left them out on purpose; the format of 0 = format of 100,1=101 etc; just duplicates of the same formats; I thought it's easier to just stick with...

Viewing 15 posts - 1,831 through 1,845 (of 3,011 total)