Hello,
I try to connect with a SqlDatSource to a Acces 2003 query with parameters. I get the following error message
Retrieving procedure parameter information is not supported by the 'Microsoft.Jet.Oledb4.0' provider
Does the SqlDataSource not support Acces queries?
Here's the code
Dim report1 As New ReportName()
report1.ReportParameters.Add("NumeroPersonne", ReportParameterType.Integer, 4)
Dim sqlDataSource2 As New SqlDataSource()
sqlDataSource2.ProviderName = "System.Data.OleDb"
sqlDataSource2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Erisk\RiskAssessment\data\RiskAssessment.mdb"
sqlDataSource2.SelectCommand = "std_KYC_BO_NoParam"
sqlDataSource2.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
sqlDataSource2.Parameters.Add("@NumeroPersonne", DbType.Int32, "=Parameters.NumeroPersonne")
report1.DataSource = sqlDataSource2
rvClients.Report = report1
rvClients.RefreshReport()
I try to connect with a SqlDatSource to a Acces 2003 query with parameters. I get the following error message
Retrieving procedure parameter information is not supported by the 'Microsoft.Jet.Oledb4.0' provider
Does the SqlDataSource not support Acces queries?
Here's the code
Dim report1 As New ReportName()
report1.ReportParameters.Add("NumeroPersonne", ReportParameterType.Integer, 4)
Dim sqlDataSource2 As New SqlDataSource()
sqlDataSource2.ProviderName = "System.Data.OleDb"
sqlDataSource2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Erisk\RiskAssessment\data\RiskAssessment.mdb"
sqlDataSource2.SelectCommand = "std_KYC_BO_NoParam"
sqlDataSource2.SelectCommandType = SqlDataSourceCommandType.StoredProcedure
sqlDataSource2.Parameters.Add("@NumeroPersonne", DbType.Int32, "=Parameters.NumeroPersonne")
report1.DataSource = sqlDataSource2
rvClients.Report = report1
rvClients.RefreshReport()