Forum Replies Created

Viewing 15 posts - 421 through 435 (of 452 total)

  • RE: The Flaws of Choice

    When we build an application, or even work with a platform like SQL Server, what' s the right balance between simplicity and choice? I'm not sure, but I think that...

  • RE: Counting spaces

    Technically speaking, the explanation for the answer is not correct. The explanation given is that SQL server ignores trailing spaces when comparing strings.

    But in this example, SQL server isn't comparing...

  • RE: Fun with Scale and Precision

    Steve Eckhart (12/4/2009)


    select cast(1.67574 as decimal(38,10)) = 1.675400000 which has precision 6 and scale 10, right?

    and

    select cast(10000 as decimal(38,10)) = 10000.0000000000 which has precision 1 and scale 10, right?

    wrong, and...

  • RE: Fun with Scale and Precision

    vk-kirov (12/4/2009)


    ...

    Something about this can be found in BOL, topic "Precision, Scale, and Length (Transact-SQL)": http://technet.microsoft.com/en-us/library/ms190476.aspx

    We have two numbers of type NUMERIC(38,10), so their precision = 38 and scale =...

  • RE: Conditional Set-Based Processing: Moving Towards a Best Practice for ETL

    I actually think Dan Linstedt had a good point, even if it was lost in the marketing-speke of the rest of his post. To wit: why do you have constraints...

  • RE: More Fun With NULL

    duda (11/9/2009)


    Nice one, Noticed that when you use your case statement as per below then you get the "Date is Null" results as you do not have your else statement.

    SELEC[T]...

  • RE: A Neural Network in SQL Server

    jacroberts (10/27/2009)


    I can see that you can do this using SQL server but I fail to see any benefit to using SQL Server rather than wirting some code using a...

  • RE: AND & OR

    Well, this question does provide one good bit of information.

    Based on the answer %s at the time of of writing, I estimate than somewhere between 66% and 74%* of...

  • RE: B-tree

    Tom Garth (9/30/2009)


    SQL Server indexes are organized in a B-tree structure. The "B" in B-tree stands for what?

    The question is specifically referring to SQL Server indexes. The Microsoft definition would...

  • RE: TSQL LAB 2 - Writing Conditional WHERE Clauses

    Excellent article! I especially want to thank you for

    I have not done a performance comparison of all the different methods. Each of the methods mentioned above has its own place....

  • RE: @@DBTS

    Here are the two relevant statements from Books Online:

    "Returns the value of the current timestamp data type for the current database." (in the definition)

    "@@DBTS returns the last-used timestamp value of...

  • RE: T-SQL Parsing Crazy Eights

    john.arnott (9/22/2009)

    ...

    The important point here would seem to be that the environment from which a query is run can affect its output. I haven't tried embedding this sort...

  • RE: @@Error and sp_rename

    Chirag (9/3/2009)


    This is what i did

    begin try

    EXECUTE sp_rename N'fakename', N'fakename2', 'OBJECT'

    end try

    begin catch

    select @@ERROR

    end catch

    Yes. That will catch the error as it happens. So you determined the value of @ERROR...

  • RE: @@Error and sp_rename

    Chirag (9/3/2009)


    I found the question confusing. It asks for value of @@Error which is 15248. I put the statement in a TRY/CATCH and got the @@Error as 15248.

    The question is...

  • RE: SQL Server 2008 T-SQL Enhancements Part - IV

    Good article. I have a 3rd party app which will begin using the FILESTREAM attribute in the next major release, and this article gives me a good overview of how...

Viewing 15 posts - 421 through 435 (of 452 total)