how to change default size of c# generated store procedure
Hi all,i am trying to write c# store procedure which returns me a binary data it looks as below public static void SqlStoredProcedure2(string name, out byte[] backup)and generated sql looks like...
View ArticleRegister assembly
I would like to add assembly closedxml.dll to SQLserver:http://closedxml.codeplex.com/ It has referencing some other windows dll, like: System.Drawing System.Windows.Forms WindowsBaseand so on... When...
View ArticleUpdate My Db table with using Currency Converter Service
Hi, I need to update my currencyConverter table containng latest conversion rate .Can you please suggest a method through which I can update this with the use of Currency conversion Web...
View ArticleSQL CLR Memory issues on SQL Server 2008 R2
We are facing major issues with one of our SQL Servers.We have many error loggings of these types and eventually they lead to sql server dump and even process crashes.6532 .NET Framework execution was...
View ArticleSql Server 2012 Error when creating assembly from System.IdentityModel.dll'
HelloWe are trying to call a WCF from a CLR procedure in Sql Server 2012. We implemented this in Sql Server 2005 and works fine, but now we want to upgrade it to 2012. The database has trustworthy set...
View Articleno data retrive when calling c# store procedure from c++
Hi alli am trying to call a c# store procedure from c++ which returns me a byte array it looks like below [Microsoft.SqlServer.Server.SqlProcedure] public static void SqlStoredProcedureClr(...
View ArticleSystem.Security.SecurityException: Request failed. issue in SQL CLR
Hi ,I am try to run one EXE file from sql server 2005 by using CRL intgration, but am get following error: Msg 6522, Level 16, State 1, Procedure hello, Line 0 A .NET Framework error occurred during...
View ArticleSQL Server 2012 CLR UDT object
DECLARE @user AS varchar(256)DECLARE @AgtList csOperatorListSET @AgtList = CONVERT(csOperatorList, '')SET @user = @AgtList.RetrieveList()SELECT @userSELECT @AgtList.GetUserName() AS 'User...
View ArticleHow to do further manipulation on sql procedure records using CLR
Hello everyone. I am newbie to CLR integration while developing an understanding to CLR integration in c#.net for stored procedure in sql server 2008 i am caught in a problem. for a better...
View ArticleHow do I define a CLR data type to be comparable? Or is this currently not...
I'm trying to define a CLR data type, in C#, which can be used in either 'SELECT DISTINCT ...' or 'SELECT ... GROUP BY ...'. When I try it, I get one of the errors: Msg 421, ... The MyType data...
View ArticleReturn multiple values from C# to MDX query
HiI have a MDX query that calls C# function that caluclates the score of an agent. It works for each agent. I can get the values for different agents but this works only in Console Application. I am...
View ArticleIs this serious SQL/CLR bug present in SQL Server 2012?
I'm rather surprised to see that even after two months nobody on the SQL/CLR team has made any comment about this very serious bug report that pertains to SQL/CLR trigger support in SQL Server 2008...
View ArticleSQL and Email Problems
I am trying to get sql to download email for me. and put the body into sql. Here is where i got the code from. http://www.limilabs.com/blog/download-emails-with-sqlserver#comment-472876Basically this...
View ArticleUnable to load System.IdentityModel.dll assembly into SQL Server 2012
Hello,I try to load an assembly which refers to 'System.IdentityModel.dll' (because it uses WCF) into SQL Server 2012 Express 64Bit.I get always this error message:Msg 6544, Level 16, State 1, Line...
View ArticleGetting: CREATE PROCEDURE failed because T-SQL and CLR types for parameter...
C# code: public static void HelloWorld( SqlInt64 companyID, SqlString s1, SqlString s2, out string text )SQL:CREATE PROCEDURE hello @c bigint, @s1 VARCHAR(32), @s2 VARCHAR(32), @i nchar(25) OUTPUT AS...
View ArticleDelay on CLR installation on SQL Server 2008 R2
HiOn just one of our servers, when we run our script to install our .NET SQL CLR objects into a database, it pauses on the CREATE ASSEMBLY command for30 seconds before proceeding and completing...
View ArticleSQL CLR to remove delimiter in SQL column
Hi,I m new to SQL CLR and as I was googling around I found that SQL CLR potentially could resolve my issue.Here's the scenario: I have a SQL column with data in this format:Team Members19;#Twain,...
View ArticleSQL C# CLR Table Valued Function slows down even though code didn't change!
I created a a SQL C# CLR table valued function which gets called inside a stored procedure. This was taking 9 seconds to run on a record set of 250000 records.Without changing the record set or the...
View ArticleCLR ERROR after install SP2 CU5
Recently installed service pack CU5 service pack 2 for MSSQL Server 2008 R2 after the service pack installations CU5 the store procedure created by one began to fail CLR communication because it has...
View ArticleHow to access IBM Hadoop using jaql and retrieving a table by clr tvf?
Hi!Given a solution provided by IBM using Hadoop, where you can access data through jaql.Is it possible to make an clr tvf takingan jaql string as input and giving table back as result set?Any code...
View Article