Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Problem with user-defined functions in SQL Server 2008

Problem with user-defined functions in SQL Server 2008

Scheduled Pinned Locked Moved Database
databasehelpcsharpsql-serverdotnet
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    khuzwayom
    wrote on last edited by
    #1

    Hi All Would you please help me, I have a stored procedure that calls a function within it. It is working fine when pointing to production database, but when I change my connection to point to QA it raises an error. I have copied both the stored proc and the function from production to QA but still. The error that I get is "A .NET Framework error occurred during execution of user-defined routine or aggregate" I am using SQL Server 2008 full version. Thank you in advance for your assistance.

    MP

    M 1 Reply Last reply
    0
    • K khuzwayom

      Hi All Would you please help me, I have a stored procedure that calls a function within it. It is working fine when pointing to production database, but when I change my connection to point to QA it raises an error. I have copied both the stored proc and the function from production to QA but still. The error that I get is "A .NET Framework error occurred during execution of user-defined routine or aggregate" I am using SQL Server 2008 full version. Thank you in advance for your assistance.

      MP

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Are you getting the error in the client app or actually in the stored procedure. The dot net error indicates either the client has a problem or you have the CLR integration in SQL server turned on X| . Either way without more detail cannot help.

      Never underestimate the power of human stupidity RAH

      K 1 Reply Last reply
      0
      • M Mycroft Holmes

        Are you getting the error in the client app or actually in the stored procedure. The dot net error indicates either the client has a problem or you have the CLR integration in SQL server turned on X| . Either way without more detail cannot help.

        Never underestimate the power of human stupidity RAH

        K Offline
        K Offline
        khuzwayom
        wrote on last edited by
        #3

        Hi RAH Thanx for the reply. I actually get this error even when I manually execute the stored procedure in SQL Server.

        MP

        M 1 Reply Last reply
        0
        • K khuzwayom

          Hi RAH Thanx for the reply. I actually get this error even when I manually execute the stored procedure in SQL Server.

          MP

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Then I would think the function is a CLR function and there is a bug in there. Never having used the CLR in SQL Server I do not know how you debug such a beast.

          Never underestimate the power of human stupidity RAH

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups