Forum Replies Created

Viewing 15 posts - 196 through 210 (of 522 total)

  • RE: Conversion Fun

    If I am not totally wrong, the behaviour is not due to IsNumeric itself, but to the fact that you can cast this value to money or smallmoney.

    Try this:

    SET NOCOUNT...

    Best Regards,

    Chris Büttner

  • RE: Optimizing Indexes

    So I missed the "not" - verrrry tricky! 😀

    If it was intended to be tricky, then I admit it was well done.

    If not, I assume rephrasing to "ALLOW_PAGE_LOCKS is set...

    Best Regards,

    Chris Büttner

  • RE: Optimizing Indexes

    I must be missing something:

    Documentation states that

    REORGANIZE cannot be specified for a disabled index or an index with ALLOW_PAGE_LOCKS set to OFF.

    http://msdn.microsoft.com/en-us/library/ms188388(SQL.90).aspx

    Also testing it directly in SQL2K5 resolves...

    Best Regards,

    Chris Büttner

  • RE: Inequality!

    One thing to note is that the optimizer is more intelligent than in previous versions and of course they are still improving it. So if the optimizer thinks that...

    Best Regards,

    Chris Büttner

  • RE: Regd deletion of Rows from large table

    Maybe something like this?

    SELECT * INTO #temp FROM dbo.SourceTable WHERE

    TRUNCATE TABLE dbo.SourceTable

    INSERT INTO dbo.SourceTable SELECT * FROM #temp

    Best Regards,

    Chris Büttner

  • RE: Can this cursor be made into a procedure?

    Matt Miller (6/23/2009)


    I don't know about too complicated....

    Just for clarification - I wrote about 3 solutions.

    The only one that I said would be complicated is the last one where you...

    Best Regards,

    Chris Büttner

  • RE: Can this cursor be made into a procedure?

    I fear you have no other option than using either CLR or dynamic SQL.

    Of course you could do somthing like the following in a T-SQL function

    The expression evaluator revisited (Eval...

    Best Regards,

    Chris Büttner

  • RE: Disabling Indexes

    Tao Klerks (6/23/2009)


    Why does the index data get deleted for views but not for non-clustered indexes?

    Hi Tao, it actually does get deleted for non-clustered indexes as well.

    The sentence is a...

    Best Regards,

    Chris Büttner

  • RE: Help with query

    Pyay Nyein (6/18/2009)


    Yeah, nice one, Chris.

    Well, you guys did the hard part 🙂

    Best Regards,

    Chris Büttner

  • RE: Help with query

    thetodaisies (6/18/2009)


    Hey,

    please try this. the union is used to get the last record which wll not be returned in the first query

    select a.* from

    (select ROW_NUMBER() OVER (ORDER BY...

    Best Regards,

    Chris Büttner

  • RE: one character of data

    Tom.Thomson (6/17/2009)


    Christian Buettner (6/5/2009)


    I had chosen char(1) instead of varchar(1) because thats what it actually is, a fixed length string.

    And I had chosen char(1) instead of nchar(1) because I think...

    Best Regards,

    Chris Büttner

  • RE: DMV

    I must object the suggested answer.

    It is possible to use 1-part names, although it does not really make sense to do this:

    CREATE LOGIN Test WITH PASSWORD = 'Test123!'

    CREATE USER [Test]...

    Best Regards,

    Chris Büttner

  • RE: TDE - SQL Server 2008

    Small correction: tempdb can be encrypted using TDE:

    When TDE is enabled on any user database, encryption is also automatically enabled for the temporary database (tempdb). This prevents temporary objects that...

    Best Regards,

    Chris Büttner

  • RE: one character of data

    Toreador (6/8/2009)


    The best type cannot be one which will not work for a large subset of possible characters (ie any Unicode character)

    Why?

    Best Regards,

    Chris Büttner

  • RE: Execute SQL job through batch file

    What about creating a set of stored procedures for this?

    1. User executes "dbo.spuQueueJob @JobName" via OSQL to "manually schedule" the existing job by adding the job name to a queue...

    Best Regards,

    Chris Büttner

Viewing 15 posts - 196 through 210 (of 522 total)