Update certificate for signed SQLCLR assembly
To be able to update sqlclr assemblies I had to sign them. So I used a code signing certificate.Now the certificate is about to expire so I extended the certificate.But when I try to do an alter...
View ArticleCLR_Auto_Event and CLR_Manual_Event Wait States
Hello, I'm hoping someone can clarify what I am seeing below: I have a SQL Server which the 2nd top wait state according to the SQL Server 2005 SP2 dashboard is "CLR_Auto_Event" and...
View ArticleUsing Scalar-valued functions in a stored proc
HiI am running the following on a windows 2008 R2 Server running SQL 2008 Management server on a 64bit server The following Stored Procedure: select dbo.decryptpassword(encryptedpassword) as...
View ArticleHow to implement & run VBScript within SQL 2008?
Hello what are the steps to implement/configure a VBScript (with .config file) with SQL 2008?(The VBScript file is a sync process that does DMLs within the SQL Server DB that it's on and also updates...
View ArticleADO.Net
Below code is used to fetch data from DB. Select * from ErrorLog with (nolock) Where Logdate = 20140603 and RMSCode not like 'Rport%' and serverdetail not like ('GE-%') And Convert(Varchar,...
View ArticleEXEC a database stored procedure inside a SQL CLR procedure
I'm developing a SQL CLR stored procedure for a SQL Server 2012 SP1 Express database. I want to know how to do this: Now, I do that inside a database stored procedure, but I need to do it inside a SQL...
View ArticleSmartCard and C#
is it possible to incorporate a smart card service with c# ?? if true ... how ???
View ArticleCLR Stored Procedure Crashes, Restarting Job Fixes it
Almost Every time I try to run my job containing a CLR Stored procedure the job fails on an Out of Memory issue comes up and crashes the Job. Restarting the job fixes the issue and it works the second...
View ArticleAssembly user account
I have created sql assembly which calls some external exe. The problem is that this assembly runs under SQL server service account. How can I force assembly to run under some specific domain user. Is...
View ArticleSetting up SQL Server in .Net - No option to create Service-based Database
I'm trying to create a Service-based Database in my SQL Server project. I've been following this tutorial:http://msdn.microsoft.com/en-us/library/vstudio/ms233763(v=vs.110).aspxBut have found myself...
View ArticleAccessing the global and user variables of SSRS in custom developed extension
I am new to .NET and i am working on creating server level solution for out SSRS reports. we need to access the built-in global and user variables in our .Net code. we need to know how to access them....
View ArticleConvert SqlString to byte[] and back in UDF
I am trying to encrypt an nvarchar in a C# CLR UDF and store it back into the same nvarchar. Unfortunately, when I store the encrypted value back, the high-order byte of each nchar is zero, so some...
View ArticleBest practices for maximum performance of C# CLR scalar UDF in View
Can anyone give some tips for best performance of a C# CLR UDF on SQL 2008 R2 or SQL 2012? Including maximizing the performance of the transition to CLR. I am using it in a View. E.g.,create myview...
View ArticleAlter a table from a CLR Function.
I have a issue that I feel should be able to be solved easily but so far I am coming up with nothing.Is there a way to use the inputs from a function to be part of the result table?This should help...
View ArticleAnalysing and Updating large amounts of data
I have been tasked with finding and masking all credit card numbers stored in a 120GB SQL database. The number could be stored in the content on ntext columns. I've built a query to find all 'text'...
View ArticleCreate Assembly fails in SQL Server 2012 SP1 if an assembly is built with...
Environment:Windows 2008 R2. SQL Server 2012 SP1 64 bit.I have a .NET assembly built using .NET Framework 4.0 with Platform Target set to AnyCPU and Unsafe options. The assembly has dependency on few...
View ArticleFind last date in field
HiI have a field which contains text and 1 or in other cases multiple dates. i need to extract the last date in the field. the date is full date but can in some cases contain 'th' or 'st' eg it can...
View ArticleMicrosoft .NET Framework NGEN v4.0.30319_64 should it say started in Services...
We found that the Microsoft .Net Framework NGEN (clr_optimization_v4.0.30319_64 and clr_optimization_v4.0.30319_32 ) service is stoped with automatic(delayed start) when we tried to start it give us...
View ArticleBest practices for maximum performance of C# CLR scalar UDF in View
Can anyone give some tips for best performance of a C# CLR UDF on SQL 2008 R2 or SQL 2012? Including maximizing the performance of the transition to CLR. I am using it in a View. E.g.,create myview...
View ArticleHow can i import visual Studio attached DataBase to MS SQL server ?
I have visual studio project with attached DB for it. Now i need to import it to the SQL server to view in managment studio.I tried to attache the .mdf file but it gives an error. How to do...
View Article