Forum Replies Created

Viewing 15 posts - 391 through 405 (of 522 total)

  • RE: CASTing

    Simon Facer (5/27/2008)


    The REPLICATE('-', 8000) has an implicit cast to NVARCHAR

    Sorry Simon, this is not correct (or at least misleading).

    The type conversion happens during the concatenation of the two strings.

    --...

    Best Regards,

    Chris Büttner

  • RE: Putting all your data in one column of one table

    Why not go one step ahead and store the data in a text file (xml) instead of a database.

    Text files even support replication out of the box! And you should...

    Best Regards,

    Chris Büttner

  • RE: Ledger Balance Calculation

    Hi Mark,

    if I read your posts correctly, you are storing both balances AND activity in your ledger table, right?

    It might make sense to split these up (maintain the balances separate...

    Best Regards,

    Chris Büttner

  • RE: SQL Server 2005

    brewmanz.sqlservercentral (5/8/2008)


    Christian Buettner (5/8/2008)


    ...

    And the provided link should be evidence enough.

    To take the first bit of evidence presented and then dismiss all other evidence that disagrees is a bit...

    Best Regards,

    Chris Büttner

  • RE: SQL Server 2005

    The question is correct.

    And the provided link should be evidence enough.

    Best Regards,

    Chris Büttner

  • RE: Bit data

    Good Question!

    Although I doubt that this new implicit conversion is an improvement for SQL Server.

    I would be interested to know why they have not allowed TRUE or FALSE as bool...

    Best Regards,

    Chris Büttner

  • RE: Implicit Conversions

    Hm, the answer is kind of paradox.

    Either the "the varchar is converted to int" or an "error occurs". But not both.

    I would have preferred an answer like this:

    ...

    Best Regards,

    Chris Büttner

  • RE: ANSI_NULLS

    Great Question! I almost stumbeled...

    I only would have added this one as well:

    SET ANSI_NULLS OFF

    SELECT COUNT(ggg) FROM testnull WHERE ggg=1 OR ggg!=1 OR ggg=NULL;

    Best Regards,

    Chris Büttner

  • RE: T-SQL query

    Christian Buettner (5/2/2008)


    saimsaboor (5/2/2008)


    In the "where" Clause the "datename" function is Nondeterministic function also when we use "like" operator then query can not use indexes on that key resulted in...

    Best Regards,

    Chris Büttner

  • RE: Is XML the Answer?

    From my experience, XML is more or less document-centric.

    It allows easy validation and "ETL" from a document using XSLT.

    If a "document" is only rows & columns, then XML is probably...

    Best Regards,

    Chris Büttner

  • RE: T-SQL query

    saimsaboor (5/2/2008)


    In the "where" Clause the "datename" function is Nondeterministic function also when we use "like" operator then query can not use indexes on that key resulted in table scan...

    Best Regards,

    Chris Büttner

  • RE: T-SQL query

    As I already stated in one of the previous QODs with a similar question:

    The suggested answer does not work with languages other than english...

    Try this instead:

    WHERE '1;3;4;5;7;8' LIKE '%' +...

    Best Regards,

    Chris Büttner

  • RE: File Handling A Different Way

    Hi Phil,

    Doing file handling in ASP.NET doesn't mean you can't make your SQL Server secure. And I am not denying that it is possible to do file handling in SQL...

    Best Regards,

    Chris Büttner

  • RE: File Handling A Different Way

    The problem with this is, that it is also perfectly simple to un-secure your database with xp_cmdshell.

    In general you should use the right tools for the right tasks.

    And to...

    Best Regards,

    Chris Büttner

  • RE: File Handling A Different Way

    Hello shashank,

    In my opinion you should not use the SQL Server DB engine for file handling. I don't know ASP.NET in detail, but I am pretty sure that there must...

    Best Regards,

    Chris Büttner

Viewing 15 posts - 391 through 405 (of 522 total)