A bit of an odd one this. I have a couple of instances of SQL Server 2012, SP1, one being Dev Edition and the other Standard Edition and both are VMs running under VMWare.

When executing a Stored Procedure to query Oracle via a Linked Server, the Standard Edition (let's call it P2) crashes SQL Server. The error message in the query window is 'A transport-level error has occurred when receiving results from the server. (provider: Shared Memory Provider, error: 0 - The pipe has been ended.)', however that's probably because SQL Server has crashed.

Querying the Dev Edition (let's call it U2), the query partially works but using things like DECODE and ROUND in the query also causes it to crash SQL Server.

On a third instance, again running Dev Edition (call this one D2), the same query works fine.

All three are exactly the same except for the edition difference between P2 and U2. All have 4GB of memory and all seem to have their default, out-of-the-box installation settings intact as far as I can see and all three have Oracle 9.2 clients installed and are using the Oracle Provider for OLE DB. I'm seeing absolutely nothing in the SQL Log to indicate what occurred just before the crashes however there is an entry in the App Event Log:

Faulting application name: sqlservr.exe, version: 2011.110.3128.0, time stamp: 0x50deadad Faulting module name: ntdll.dll, version: 6.2.9200.17438, time stamp: 0x55a41b15 Exception code: 0xc0000374 Fault offset: 0x00000000000ea539 Faulting process id: 0x4aa0 Faulting application start time: 0x01d121404502766c Faulting application path: C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\sqlservr.exe Faulting module path: C:\Windows\SYSTEM32\ntdll.dll Report Id: 87c13341-8d33-11e5-9409-005056952126 Faulting package full name: Faulting package-relative application ID:

And I have intermittently seen other errors, most notably the following: 'Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "OraOLEDB.Oracle" for linked server "UBIX" reported an error. The provider reported an unexpected catastrophic failure. Msg 7305, Level 16, State 2, Line 1 Cannot create a statement object using OLE DB provider "OraOLEDB.Oracle" for linked server "UBIX".' However this error may well clear after a server reboot as it did previously.

The only piece of information that might be worth looking at so far is a reference to Distributed Transactions Role service not having been installed under the Application Server role. No idea whether that's relevant or not so I was wondering if anyone might be able to point me in the right direction.



  • 1
    Open a case with CSS. This may be a bug they're already aware of, and there may be a fix in SP2 or subsequent cumulative updates. – Aaron Bertrand Nov 17 '15 at 15:11
  • Can you script the linked server definitions? Perhaps there are some subtle differences. Particularly, since you mention distributed transactions, what does this query show: SELECT s.name , s.is_remote_proc_transaction_promotion_enabled FROM sys.servers s – Max Vernon Nov 17 '15 at 16:13
  • 1
    I was just about to raise a call with MS support when I came across a possible solution on their support site. I tested the fix and it works. The culprit turns out to be double-dash comment characters. Fairly innocuous when preceding a line of code in T-SQL but apparently deadly enough to crash SQL Server when passed to Oracle via a Linked Server. Didn't get a chance to update this yet. The solution is to either remove any lines preceded by -- or enclose them within /* */. The relevant article is support.microsoft.com/en-us/kb/2295405. – YaHozna Nov 18 '15 at 17:19
  • Many thanks to all for the input by the way. – YaHozna Nov 18 '15 at 17:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.