Forum Replies Created

Viewing 15 posts - 751 through 765 (of 825 total)

  • RE: Encryption

    Ric Sierra (3/22/2010)


    Check out this links...

    http://msmvps.com/blogs/gladchenko/archive/2005/04/06/41083.aspx

    http://www.sqlservercentral.com/articles/Security/saveyourpassword/1420/

    this undocumented function is available since SQLServer 7

    so... what you think?

    Thank you! I love undocumented. I learned something new! 🙂

  • RE: What's the count?

    if one table has one o more rows and the other is void, the result is 0.

    NumberOfRows * 0 = 0

  • RE: SSRS case sensitivity

    stewartc-708166 (2/22/2010)


    Good question.

    Please do not post useless thinks.

  • RE: Finding the Correct Weekday Regardless of DateFirst

    The main problem is not the format of date (dmy or mdy or ymd) nor if monday is the first day of the week, but identify the day '2010-2-1' as...

  • RE: Finding the Correct Weekday Regardless of DateFirst

    This code is indipendent from datefirst:

    Monday is 0 and Sunday is 6

    SELECT cast(cast('20100215' as datetime) as int)%7

    SELECT cast(cast('20100216' as datetime) as int)%7

    SELECT cast(cast('20100217' as datetime) as int)%7

    SELECT cast(cast('20100218' as datetime)...

  • RE: Easy Error Trapping When Using xp_cmdshell

    create table XPCmdShellOutput (OutputLine varchar(1000), ID INT IDENTITY(1,1))

    Please add an identity column, so you can have output lines in the correct order

  • RE: Rowcount

    If one omits the set nocount on statement, then the results would be 1,1.

    This assert is wrong.

    The correct answer is 0,1, but the two statement should be the first in...

  • RE: Query cost

    Volumes of data returned from tables may vary (test or production database), so a well performing query may slow down or give an error.

    FROM BOL:

    Including an extremely large number...

  • RE: Replication

    My answer is correct, but it's luck!

    The text of the question is incomprehensible and the explanation is more and more incomprehensible.

  • RE: SELECT @local_variable

    If the SELECT statement returns no rows, the variable retains its present value. If expression is a scalar subquery that returns no value, the variable is set to NULL.

    That...

  • RE: How long is a NULL?

    The question is:

    it is a BUG?

    ... or it is by design?

    ... or both: it is a BUG by design!

    Try this:

    DECLARE @v-2 char(10)

    SET CONCAT_NULL_YIELDS_NULL ON

    SELECT ISNULL('abcd'+@v,'1234567890')

    RESULT: 1234567890

    This behavior is all right!

  • RE: How long is a NULL?

    Also a void string take 1 CHAR:

    SET CONCAT_NULL_YIELDS_NULL ON

    SELECT ISNULL('abcd'+''+null,'1234567890')

    Result: 123456

  • RE: Clustered Index Internals

    vk-kirov, I agree with you. Question and answer is incomprehensible!!!!

  • RE: Counting spaces

    rcavill (12/7/2009)


    You need the option

    Must declare the scalar variable "@Dec".

    When running on a Case Sensitive collation.

    Once that select statement on line 2 is adjusted then it would work.

    ------

    Robert

    Have good luck...

  • RE: Fun with Scale and Precision

    Explanation is in the note.

    Try to reduce the precision.

    SELECT CAST(cast(1.67574 as decimal(38,10)) / cast(10000 as decimal(38,10)) AS DECIMAL(38,10) ) conv_factor

    returns 0.0001670000

    SELECT CAST(cast(1.67574 as decimal(29,10)) / cast(10000 as decimal(29,10)) AS...

Viewing 15 posts - 751 through 765 (of 825 total)