Forum Replies Created

Viewing 3 posts - 76 through 79 (of 79 total)

  • RE: Changing the data type of column from varchar to int

    Yes, smth like this:

    alter table MyTable drop constraint PK_INK_NEXT_OPERATION;

    alter table MyTable alter column operation_id int not null

    alter table MyTable add constraint PK_INK_NEXT_OPERATION primary key (operation_id);


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: How to Make Scalar UDFs Run Faster (SQL Spackle)

    Msg 530, Level 16, State 1, Line 1

    The statement terminated. The maximum recursion 100 has been exhausted before statement completion.

    If it is supposed to work on a really long strings...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

  • RE: How to Make Scalar UDFs Run Faster (SQL Spackle)

    Jeff Moden,

    Wonderful note about set statistics time! Never heard of it.

    "Try to beat it using any form of "all in one query" code."

    Here you go!

    Sample Data (one million rows of...


    I am really sorry for my poor gramma. And I hope that value of my answers will outweigh the harm for your eyes.
    Blog: http://somewheresomehow.ru[/url]
    Twitter: @SomewereSomehow

Viewing 3 posts - 76 through 79 (of 79 total)