jordanking
Programmer
- Sep 8, 2005
- 351
Hello,
Can anyone outline the main differences between using the following providers when connecting to a SQL server 2005 database:
SQLNCLI vs Microsoft.Access.OLEDB.10.0 provider
I am working with an access ADP and obviously a sql server 2005 back end. I have been working at a problem for days now(outlined in the following threads: thread707-1426632 and thread183-1426981). I created a stored procedure that returns a recordset and output parameters. But I could not access both, I could only get the recordset, but no output parameters. SO with some help and a lot of testing, i narrowed the problem down to the connection string.
this one works: (returns recordset and output parameters)
which is the same as using "cnn.Open CurrentProject.AccessConnection"
this one does not: (only returns recordset but some of its properties are unaccessable, like recordcount, and no output parameters)
I am planning to package this solution for distribution in a small business environment with sql server 2005.
Can anyone maybe shed more light on why this is happening and maybe some pros and cons to each provider, like should I use one for simple select queries and another for procedures that return results.
In addition, I found that if I package the solution with the access 2007 runtime I have to install the SQl server native client in order to use the SQLNCI provider. I assume the microsoft.access provider is packaged together when the project is complied.
I appologize if this is out of the scope of this forum,
thanks in advance.
JK
.....
I'd rather be surfing
Can anyone outline the main differences between using the following providers when connecting to a SQL server 2005 database:
SQLNCLI vs Microsoft.Access.OLEDB.10.0 provider
I am working with an access ADP and obviously a sql server 2005 back end. I have been working at a problem for days now(outlined in the following threads: thread707-1426632 and thread183-1426981). I created a stored procedure that returns a recordset and output parameters. But I could not access both, I could only get the recordset, but no output parameters. SO with some help and a lot of testing, i narrowed the problem down to the connection string.
this one works: (returns recordset and output parameters)
Code:
cnn.Open "Provider=Microsoft.Access.OLEDB.10.0;Persist Security Info=False;Data Source=REGENT01\SQLEXPRESS;Integrated Security=SSPI;Initial Catalog=RegentSigns;Data Provider=SQLOLEDB.1"
this one does not: (only returns recordset but some of its properties are unaccessable, like recordcount, and no output parameters)
Code:
Cnn.Open "Provider=SQLNCLI;Data Source=REGENT01\SQLEXPRESS;Integrated Security=SSPI;database=RegentSigns"
I am planning to package this solution for distribution in a small business environment with sql server 2005.
Can anyone maybe shed more light on why this is happening and maybe some pros and cons to each provider, like should I use one for simple select queries and another for procedures that return results.
In addition, I found that if I package the solution with the access 2007 runtime I have to install the SQl server native client in order to use the SQLNCI provider. I assume the microsoft.access provider is packaged together when the project is complied.
I appologize if this is out of the scope of this forum,
thanks in advance.
JK
.....
I'd rather be surfing