Re: establishing cause of access violation?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dan Guzman (guzmanda_at_nospam-online.sbcglobal.net)
Date: 10/18/04


Date: Mon, 18 Oct 2004 08:54:36 -0500

You might try a Knowledge base search for article 322884. I am not
suggesting that you use SQL 2005 since it is currently in beta and has not
yet been released. I am suggest you use an alternate method (e.g. unmanaged
code) if you need to implement this under SQL 2000.

Below is the relevant info from the article.
.
<Excerpt>
Microsoft does not support the use of Microsoft Common Language Runtime
(included with .NET Framework) for any COM Callable Wrapper or Managed
Extensions for C++ in either Microsoft SQL Server 7.0 or Microsoft SQL
Server 2000. This limitation for support pertains directly to the use of
extended stored procedures and the use of OLE Automation for any loading of
the libraries that you must load to run in the SQL Server memory space.
</Excerpt>

-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Bonj" <Bonj@discussions.microsoft.com> wrote in message 
news:63E2865A-EF29-4723-87E4-D5D5DA839A5A@microsoft.com...
>I get KB article is not available.
> FYI, I haven't got SQL server 2005, so please don't suggest solutions
> involving that.
>
>
> "Dan Guzman" wrote:
>
>> See http://support.microsoft.com/default.aspx?scid=kb;en-us;322884.  CLR
>> integration will be included in SQL Server 2005.
>>
>> -- 
>> Hope this helps.
>>
>> Dan Guzman
>> SQL Server MVP
>>
>> "Bonj" <Bonj@discussions.microsoft.com> wrote in message
>> news:EEC5B90F-49A7-4096-9D28-47DEAC73416A@microsoft.com...
>> > Hi
>> > I have a mixed managed/unmanaged project which thanks to you guys I've
>> > managed to get rid of the linker errors of, so cheers for that.
>> > But now I'm experiencing an unknown access violation.
>> > Firstly this is an extended stored procedure DLL, I've been able to 
>> > debug
>> > it
>> > successfully by starting SQL server with the -c switch and when it is
>> > called
>> > via osql then it breaks into the debugger. Fine. I'm happy with 
>> > that....
>> > However the project also has a .cpp file that is compiled  with /clr. 
>> > This
>> > contains one managed function, which instantiates a C# class in a 
>> > separate
>> > assembly. The accessor function is called by the main (unmanaged) .cpp
>> > file
>> > that is the entry point of the extended stored procedure. When I press 
>> > F11
>> > or
>> > F10 on the accessor function, I get 'SQL server generated an access
>> > violation, and is terminating process 51'.
>> > This function used to be OK. I've got the debugger set to 'mixed', but 
>> > it
>> > won't step into the managed function.
>> > Any idea how I can trace what's actually going on?
>> >
>> >
>> >
>>
>>
>> 


Relevant Pages

  • Re: Access 2007->SQL Server2005 "connection was forcibly closed",G
    ... I moved every table I was able to move to the SQL ... closed connections - but all of these errors are in the version which used ... the SQL Server 2000 and everything worked ... communication between ODBC (OLEDB and Native Client, ...
    (microsoft.public.sqlserver.connect)
  • Re: Unable to Apply SP4 to SQL 2000 Cluster (new Node)
    ... Rebuild the node in the failover cluster. ... Scenario 1" in SQL Server 2000 Books Online. ... This setup process updates to SP4 only the binaries on the new ...
    (microsoft.public.sqlserver.clustering)
  • Re: WSS 3.0 question
    ... I followed the advise given in removing WSS 3.0 etc, ... the server is complaining that the SQL service(?) was tempered with or corrupt. ... I may just instal the SQL server as I was going eventuall use it anyway. ... If WSUS 3.0 is installed, I would suggest you uninstall it and then you install WSS 3.0. ...
    (microsoft.public.windows.server.sbs)
  • Re: 70-229 Book Recommendation
    ... The SQL Server Books Online is the ultimate authority, ... Server 2000 Database Design and Implementation" by Thomas Moore, ... > Could anyone recommend a book or two for Exam 70-229:> Designing and Implementing Databases with Microsoft SQL> ServerT 2000 Enterprise Edition? ...
    (microsoft.public.cert.exam.mcad)
  • Re: WSUS
    ... I'm not seeing performance issues with the full enchilada installed, and 25 users busy hitting SQL. ... WSUS isn't difficult to uninstall - if you have WSUS v2 (installed with SBS R2) uninstall R2 from add/remove programs. ... How can anyone work with 4 instances of SQL Server on the same box? ...
    (microsoft.public.windows.server.sbs)