SQL Server 2005 dbase に接続すると、コードは正常に動作します。しかし、SQL Server 2008 データベースに接続すると失敗します。
シナリオ: Webservice は最初に 2008 dbase に正常に接続します。次に、COM+ オブジェクトでの呼び出し中に、接続が失敗します。
VS2008 を使用するようにプロジェクトを最近アップグレードし、Sql Server 2008 にアップグレードしました。
using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required, transactionTimeOut))
{
using (SqlConnection sqlConnection = new SqlConnection(DataConnection))
{
try
{
String command = "my_StoredProcedure";
using (SqlCommand sqlCommand = new SqlCommand(command, sqlConnection))
{
sqlConnection.Open(); //- exception is throw right after this call in the COM+ object.
アイデアはありますか?