Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

CLR Assembly C# DBMS

1

35 views

Is it possible to do SQL's CLR assembly in other DBMS? or what would be the CLR analog in DBMS Oracle, MySQL, PostgreSQL...

asked June 18, 2011 10:44 am CDT
posted via StackOverflow

2 Answers

1
 

You couldn't just make a DBMS use the .NET CLR but if the DBMS supports a way to call arbitrary code via standard entry points then you can create a bridge. Oracle for example has the OCI (Oracle Call Interface) that you could use to bridge to .NET assemblies.

answered June 18, 2011 11:23 am CDT
1
 

You cannot use the CLR type you register in SQL server database directly in an Oracle database (and I guess the same holds true for MySql and other databases). Each database that supports User defined datatypes and has a .NET provider usually has a framework in place for representing the UDT in the the CLR world.

For example, in Oracle you need to implement the 'Oracle.DataAcess.Types.IOracleCustomType' interface to be able to convert between the UDT and CLR type and the 'IOracleCustomTypeFactory' to create instances of the custorm type. You can find more information here.

answered June 18, 2011 11:23 am CDT

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview