質問

私の父は、プロパティ管理を行うためにMSアクセスデータベースを作成しました。今、彼はそれをインターネット上で他のユーザーと共有したいと思っています。そこで、ネットワークソリューションでホストされたSQL Serverアカウントを取得しました。 MSのこれらのガイドラインを使用して、Access 2003クライアントをテストSQLデータベースに接続しようとしています。

http://office.microsoft.com/en-us/access/hp052745861033.aspx

ただし、私が取得するエラーメッセージは「プロバイダーの初期化エラーのために接続が失敗しました。サーバーが存在しないか、アクセスが拒否されます」。

MSComponentCheckerを実行して、MDAC 2.7以上を確認しています。鉱山はXPで2.8 SP1です。

役に立ちましたか?

解決 2

After a little more research, I figured it out.
In MS Access 2003, you have to enter the server name in this format:

serverName\instanceName,portNumber

This is a BackSlash, not a ForwardSlash. Thank you MS. Not sure why I had to specify the port number when it's the default.

Special thanks to this post: http://dbaspot.com/forums/sqlserver-server/251219-error-connecting-remote-server.html

It should be noted that you can't do much design work in Access 2003 once you are connected. So I needed to upgrade to 2007 to change the SQL schema. Hopefully, 2003 users will still be able to connect and use the app.

他のヒント

It sounds like either:

(1) your workstation is unable to connect to the SQL server instance because (a) the hostname isn't resolving correctly or (b) a firewall in your network or on your workstation is preventing the outbound connection on the needed port

or

(2) you can connect and have the correct username and password but don't have sufficient privileges to get to the database you're attempting to use. Access gives a different error than what you received if you have a bad username or password ("Login failed for user 'xxxx').

You can check the networking by running "telnet example.com 1433" (whatever hostname and port you were given to use; if you weren't given a port, use 1433) and making sure you can connect (the command window will go to a blank screen). If that works, you can then confirm with your provider that the account you're using has been granted the needed permissions. If you can't telnet to the address you need, check you have the right hostname and the existence of any firewalls.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top