Forum Replies Created

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

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

  • RE: sp_dates add this proc to your code collection

    Didn't you leave out a few numbers?

    declare @date datetime

    set @date = getdate()

    select

    convert(varchar(35),@date,a.Code) AS FormattedDate,

    Code = convert(varchar(3),a.Code),

    convert(varchar(40),'select convert(varchar(35),@date,'+convert(varchar(20),a.Code)+')') as [SQL]

    from

    (

    select Code = 0 union all

    select Code = 1 union all

    select Code...

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

    This will do what you want:

    declare @a nvarchar(max)

    select

    @a = isnull(@a+N' union all ',N'')+

    '

    select [Database] = convert(sysname,'''+a.name+

    '''), [Table] = a.name collate SQL_Latin1_General_CP1_CI_AS from '+

    quotename(a.name)+'.sys.tables...

  • RE: Just Walk Away - Blacklisting - and Twits without Twitter

    Bob Hovious (4/7/2009)


    I had a job interview once where I was asked if I had ever thrown large manuals at people. I thought it was a joke question...

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