login about faq

I need to call the cript2 functions for like encoding from a SQL scalar function in SQL2012 65bit.

I am not familiar how to build a c#.net wrapper so I can install this managed CLR into SQL. Has someone already done this type of code.

PS, So far, under SQL 2012 64bit, I am not able to call directly the registered 64 COM DLL libraries using OA_Create.

Thanks Rick

asked Jun 04 '14 at 15:06

rgarcia350's gravatar image


Try using the "Chilkat Mono" .NET assembly instead.

The difference between "Chilkat Mono" and "Chilkat .NET" is that the Mono implementation is a 100% managed .NET assembly that references a native DLL (or shared lib) for it's implementation, whereas the "Chilkat .NET assembly" is a mixed-mode assembly that is composed of a managed outer-layer API with a native inner core.

It is possible to use "Chilkat Mono" with Visual Studio C# and VB.NET applications, in exactly the same way as using the "Chilkat .NET" mixed-mode assembly -- except that at runtime the Chilkat Mono assembly needs to find and load the native DLL. The name of the native DLL to load is contained in the "ChilkatConst.cs" source file in the Chilkat Mono download. See http://www.mono-project.com/Interop_with_Native_Libraries for information about how the runtime finds the DLL specified by DllImport. You can probably reference the Chilkat Mono assembly from SQL, and then place the native DLL in a directory where the runtime will find it (on the computer were SQL server runs).


answered Jun 06 '14 at 09:20

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 04 '14 at 15:06

Seen: 578 times

Last updated: Jun 06 '14 at 09:20

powered by OSQA