S
Sam
I had large database about 2GB size and consist of 1 million+ records.
I use ADO.Net 1.1 in ASP.Net 1.1 for connection pooling this database and it
always prompt "Stack Memory Error".
The information request is about 2MB if I running at SQL Query Analyzer.
Please advise.
Many thanks.
Coding
-------
Dim okcon As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim okcmd As New SqlCommand()
okcmd.CommandText = "Select gbaid,account_num,acc_desc,amount from f0902
where gbmcu = " & _
TextBox_Account.Text & " and gblt = '" &
DropDownlist_LedgerType.SelectedItem.Value & _
"' and amount <> 0 and dateyear like '%" & DateYear & "%' order by
account_num"
okcmd.Connection = okcon
Try
okcon.Open()
Dim okrd As SqlDataReader = okcmd.ExecuteReader()
myDataGrid.DataSource = okrd
myDataGrid.DataBind()
okrd.Close()
Finally
okcon.Close()
okcon.Dispose()
myDataGrid.DataSource = Nothing
myDataGrid.Dispose()
End Try
I use ADO.Net 1.1 in ASP.Net 1.1 for connection pooling this database and it
always prompt "Stack Memory Error".
The information request is about 2MB if I running at SQL Query Analyzer.
Please advise.
Many thanks.
Coding
-------
Dim okcon As New
SqlConnection(ConfigurationSettings.AppSettings("ConnectionString"))
Dim okcmd As New SqlCommand()
okcmd.CommandText = "Select gbaid,account_num,acc_desc,amount from f0902
where gbmcu = " & _
TextBox_Account.Text & " and gblt = '" &
DropDownlist_LedgerType.SelectedItem.Value & _
"' and amount <> 0 and dateyear like '%" & DateYear & "%' order by
account_num"
okcmd.Connection = okcon
Try
okcon.Open()
Dim okrd As SqlDataReader = okcmd.ExecuteReader()
myDataGrid.DataSource = okrd
myDataGrid.DataBind()
okrd.Close()
Finally
okcon.Close()
okcon.Dispose()
myDataGrid.DataSource = Nothing
myDataGrid.Dispose()
End Try