タイトル : タイムアウトになってしまう 投稿日 : 2007/05/28(Mon) 15:23 投稿者 : びぎ
こんにちは。 VB2005+SQLServer2005で開発しています。 ストアドプロシージャを実行しDataViewを取得したいのですが タイムアウトになってしまいます。 以前(ADO)はタイムアウトのプロパティが接続(Connection)にありましたが VB2005では見当たらなく投稿しました。 コーディングは Public Function GetData2(ByVal pSP As String) As DataView Using MyCn As New SqlConnection("Persist Security Info=True;Integrated Security=false;User ID=inq;Password=inq;Initial Catalog=ADB;Data Source=Svr") Using MyCmd As New SqlCommand MyCn.Open() With MyCmd .Connection = MyCn .CommandType = Data.CommandType.StoredProcedure .CommandText = pSP End With Using MyDA As New SqlDataAdapter(MyCmd) Using MyDS As New DataSet MyDA.Fill(MyDS) Return MyDS.Tables(0).DefaultView End Using End Using End Using End Using End Function となっています。 何か時間切れを伸ばすコーディング方法とかありませんか? |