Цитата:
Сообщение от
sukhanchik
SQL 2005 ставит другой драйвер доступа (в ODBC) к себе так называемый SQL Server native. Нужно его использовать при подключении к SQL 2005. Но для этого правда нужно установить Client Tools на клиента.
Это как одно из решений. Более тщательно не лазил - думаю наверняка возможно более легко решить проблему - нежели на каждого клиента водружать Client Tools
Ругается на невозможность соединения по пайперу. Может быть надо еще что-нибудь в настройках Windows сделать?
Или вот это (ошибка у меня такая же):
Strange Error: provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe
Now it is a good thing that ADO.NET 2.0 actually gives you meaningful errors. Here is an example -
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 0 - No process is on the other end of the pipe.)
But the funky thing is, by default when using ASP.NET 2.0 and SQL Server 2005, you'd get the above error with the following connection string -
Data Source=127.0.0.1; Initial Catalog=xxx; user id=yyy; password=zzzz
What's happening over here is, by default SQL Server 2005 (Express, Evaluation, and Developer editions only) disables remote network connections. That makes sense from a security point of view - while the Enterprise, Standard and Workgroup editions will listen to Remote client connections over TCP/IP. So the resolution to this problem obviously is either
a) Change the above connection string to - Data Source=(local); Initial Catalog=xxx; user id=yyy; password=zzzz
Где это правится????
И далее:
b) Go to SQL Server 2005 Surface area configuration tool, and set your settings as shown below -