Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

instance failure, in System.Data in sql 2012

$
0
0

On Win Server 2012 Standard I have a C# app that runs fine with sql 2008 express. When I installed sql 2012 express I get "instance Failure" source: System.data. when the following LYNQ query executes:


//MessageBox.Show("Starting GetInitialPortStatus.");

db =newDataClasses1DataContext();   //establish dataconnection to CALMasterSQL


// 2. Query creation.

var PortsQuery =from portrecord in db.Channels

select portrecord;


// 3. Query execution.

int count = 0;

// MessageBox.Show("Starting >portrecord in PortsQuery<.");

foreach (var portrecord in PortsQuery)           // add rows to the grid for each record in the database Ports table

                {...}

Otherwise the app works fine. The closet fix in the forum I could find was to run

exec sp_configure 'user instances enabled',1.
Go
Reconfigure

Which I did but no change.

How can this be corrected. It seems like it is a known issue but no fix for sql 2012?

Thanks

Morris


   



















Thank you Morris


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>