clr

Is the Actual culture related SQL to CLR float-double conversions?

夙愿已清 提交于 2019-12-06 18:37:55
问题 I am working on a ASP.Net WebForms legacy App and i need to retrofit one new feature into it. I am using a generated DataSet (Using VS 2013) to bridge the gap between ReportViewer and SQL server (Local reports, rdlc). Everything Works nicely except one thing: Float conversions. On two Windows 8.1 En_US systems -10.5 (One of the values in a column) is seen on the report as -10.5 but on the server (Win 7 SP1 Es_CO) it displays as -105 even though the query is returning -10.5 on the server's

Fatal CLR Error 80004005

北城余情 提交于 2019-12-06 17:54:27
问题 Today, everytime I try to open any .Net application I get: CLR error: 80004005 The program will now terminate. Any suggestions? 回答1: I'd start with downloading and re-installing the .NET framework. 回答2: I had this problem and uninstalling/reinstalling dot net didn't help. Randomly I found a suggestion to go to c:\Windows\Microsoft.NET\ Then rename the directory called "Assembly" to "Assembly2" or something so you don't erase it but dot net will think it's gone. After doing that, install dot

StringBuilder growing over 85k and moving to LOH? [duplicate]

前提是你 提交于 2019-12-06 16:07:59
This question already has answers here : Closed 8 years ago . Possible Duplicate: How does StringBuilder's capacity change? Let's say a StringBuilder is allocated and then it grows to over 85k, will it get moved over to the Large Object Heap? StringBuilder doesn't "grow". In pre-4.0 SB, it simply allocated a new bigger buffer and copied the content from the old to the new. So in the end yes, the internal buffer was moved to LOH. The SB object not, because it's very small (to make it simple, it could have been simply a reference to the buffer and the length of the string in the buffer. It was a

How to debug exception not handled by CLR

谁都会走 提交于 2019-12-06 14:14:09
问题 I am developing a .NET application which is crashing at seemingly random times. It has references to an unmanaged dll which I suspect is throwing an exception which is unhandled. When the application crashes, I get this message when no debugger is attached (compiled as click-once): At which point I can attach VS2012 as the debugger and see the call stack: > ntdll.dll!77e015de() Unknown [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] ntdll.dll!77e015de() Unknown

Retrieve CLR DLL from SQL Server

天大地大妈咪最大 提交于 2019-12-06 13:35:53
问题 Is it possible to rebuild or retrieve a VB CLR dll file which you've imported into SQL some time ago? I've gotten to the point where I was able to find the contents of this DLL by doing: SELECT * FROM sys.assembly_files but I don't how if it's possible to rebuild the dll with the contents found there. Any help would be very appreciated :) 回答1: There is a very good example here. The following code comes from the link provided. DECLARE @IMG_PATH VARBINARY(MAX) DECLARE @ObjectToken INT SELECT

How big is the risk when testing a .net 3.5 Assembly using a .net 4.0 test assembly

时光毁灭记忆、已成空白 提交于 2019-12-06 13:17:35
I realise that Visual Studio 2010 sp1 allows test projects to target 3.5 now. However, for various reasons I don't fully appreciate, our test projects still target dot net 4.0. The general question is in the title. How big is the risk? Specifically, this presumably means that the tests will run in the CLR v4, whereas many of our clients will be using CLR v2. Also, the tests seem to use v4 of library components (such as System.Data), even though the application is built against v2. One method (System.Data.SqlClient.SqlBulkCopy) contains a bug in v2 which has been fixed in v4. Our testing missed

How to use mixed C++ & .Net dll in node.js? (Error: abort() has been called)

心不动则不痛 提交于 2019-12-06 11:30:07
I want to create a native node extension using a dll containing C++ and C# code in Visual Studio 2015. I cannot make it work following my own instructions of yesteryear, which is based on the latest node-gyp . When not using the /clr option, I can run a program like the following just fine. console.log("1"); const addon = require('./build/Release/addon'); console.log("2"); When enabling /clr , only the first call to log gets executed. When compiling the dll in debug mode, I get the following message: How to fix / debug this? (I know there's edge, but I am trying to go the node-gyp way) After

Virtual and Physical Memory / OutOfMemoryException

痴心易碎 提交于 2019-12-06 11:15:55
I am working on a 64-bit .Net Windows Service application that essentially loads up a bunch of data for processing. While performing data volume testing, we were able to overwhelm the process and it threw an OutOfMemoryException (I do not have any performance statistics on the process when it failed.) I have a hard time believing that the process requested a chunk of memory that would have exceeded the allowable address space for the process since its running on a 64-bit machine. I do know that the process is running on a machine that is consistently in the neighborhood of 80%-90% physical

Validating decimal in C# for storage in SQL Server

女生的网名这么多〃 提交于 2019-12-06 11:04:41
问题 I have a decimal database column decimal (26,6) . As far as I can gather this means a precision of 26 and a scale of 6. I think this means that the number can be a total of 26 digits in length and 6 of these digits can be after the decimal place. In my WPF / C# frontend I need to validate an incoming decimal so that I can be sure that it can be stored in SQL Server without truncation etc. So my question is there a way to check that decimal has a particular precision and scale. Also as an

External “Hello World” Function in SQL Anywhere with Powerbuilder-generated DLL

戏子无情 提交于 2019-12-06 10:57:04
I created a function in PowerBuilder.NET Hello World . The project compiled as Helloworld.dll , generated in C# from the PowerBuilder utility. Inside Helloworld, I made the non-visual n_cst_helloworld . Inside the non-visual, I made the object function of_hello() . These are the issues I encountered when trying to access Helloworld.n_cst_helloworld.of_hello() in an external function on SQL Anywhere. The external function uses CLR and is called in Interactive SQL right now. Here is the script I'm trying to launch in iSQL (through ASA): ALTER PROCEDURE "DBA"."ext_helloworld"() EXTERNAL NAME