Re: Using the following connection parameter to call sp from Access
- From: "Roman Rehak" <rrehak@xxxxxxxxxxx>
- Date: Wed, 4 Jul 2007 17:37:06 -0400
Try changing "Database=" to "Initial Catalog=". Also, using sa is considered
a bad practice, you should create a user just for the database your app is
using and assign minimum privileges required to run the application.
Roman
--
Roman Rehak
http://sqlblog.com/blogs/roman_rehak
"Jack" <Jack@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:CF874F68-1818-47C4-8607-4A22B69B513D@xxxxxxxxxxxxxxxx
Hi,
I am using the following connection string from Access vba to call stored
procedure. However, there is error in the connection. When I am checking
the
same connection from the control Panel using dsn, the connection shows
success. I would appreciate if someone can tell me what's wrong with this
string. Thanks
adhcADH2KSQLCnn = "Provider=SQLOLEDB;" & _
"Data Source=ADH2KSQL;Database=ADH2KSQL;User Id=sa;Password=abcd;"
.
- Follow-Ups:
- Re: Using the following connection parameter to call sp from Access
- From: William \(Bill\) Vaughn
- Re: Using the following connection parameter to call sp from Access
- Prev by Date: Re: Connection Error: ADO.Net and SQL Server 2005
- Next by Date: Re: Using the following connection parameter to call sp from Access
- Previous by thread: Connection Error: ADO.Net and SQL Server 2005
- Next by thread: Re: Using the following connection parameter to call sp from Access
- Index(es):
Relevant Pages
|
Loading