Can''t create User Defined functions!

  • can u do this.

    right click the server and click properties

    please mention these details

    Product

    Product Version

     




    My Blog: http://dineshasanka.spaces.live.com/

  • Product: SQL Server Standard Edition

    Product Version: 8.00.878 (SP3)

  • Hmmm... I really don't know... let's try to look around. What is the database you are using? Is it user or system database?

    Can you run these statements and post results here:

    select suser_sname()

    select user_name()

  • It is a user database.

    select suser_sname():  sa

    select user_name():     dbo

     

    SURPRISE!

    I've created a new database in the same server and there I have no problems!. I can create the UDF's. I only have problems in my production database! Any new idea?

  • YEEESS! I've found the solution for my problem.

    The problem was the level of compatibility of the database. It was set to Level 65 (because this database was started in SQL 6.5). I've changed it to Level 80 and now it works (I don't need the backward compatibility)

    Thanks to everybody who tried to help me!

  • Doh! I can't believe I didn't think to check that. Would this be worth making a FAQ (I know it's not frequent, but the compatibility level often causes similar problems)?

  • LOL... who has that wonderful icon, banging the head on a desk? Phillcart? Well, that's how I felt when I read the explanation. In fact this was the simplest solution - and nobody remembered to ask about it.

Viewing 7 posts - 16 through 21 (of 21 total)

You must be logged in to reply to this topic. Login to reply