Re: SQL 2000 TIMEOUT ERROR WHEN TRYING TO CONNECT USING C#

Tech-Archive recommends: Fix windows errors by optimizing your registry



OK, if the SQL Server is accessible from other computer, you then need to
make sure it does accept username/pasword pair (that is, mixed security mode
is enabled).


"Terrance" <Terrance@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9C6426C4-42AF-4BE1-A75C-86A7C520764B@xxxxxxxxxxxxxxxx
I checked the Sql Server and it has Allow other SQL Servers to connect
remotely to this SQl using RPC. Is this what your were talking about?

--
TC


"Norman Yuan" wrote:

1. If the SQL Server and the app are not on the same computer, make sure
the
SQL Server allows remote access.
2. Since you pass username/password in ConnectionString, make sure the
SQL
Server has mixed security mode enabled (by default installed, only
Windows
security mode is enabled).

"Terrance" <Terrance@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:23E6BDEC-0994-4616-9AEB-19B3ED2E5890@xxxxxxxxxxxxxxxx
I have an application that runs fine on my machine(of course) that
access
the
local Sql Server. However, when trying to run this application from
another
machine I receive a Sql timeout error. I thought it was my stored
procedure
but that doesn't seem to be the case. The following are the connection
strings that I've tried:

//private string connstring = "integrated security=SSPI;data source=<ip
address>;"
// "persist security info=False;initial
catalog=projectDB";

private string connstring = "pwd=<password>;uid=<username>;" +
"database=projectDB;server=<ip address>";

//private string connstring = "Data Source=<ip address>;" +
// "Initial Catalog=projectDB;" +
// "User Id=<username>;" +
// "Password=<password>";

Do anyone know how I can get over this hump? By the way I'm running the
application locally on the remote computer.
--
TC





.



Relevant Pages

  • RE: Block Admin access to my data
    ... consider re-configuring your SQL server to use "Windows Authentication ... Only" security mode. ... leaving sa with all the un-removable rights. ... Still, you need to pay attention to your SQL service/agent accounts, since ...
    (microsoft.public.sqlserver.security)
  • RE: Block Admin access to my data
    ... consider re-configuring your SQL server to use "Windows Authentication ... Only" security mode. ... leaving sa with all the un-removable rights. ... Still, you need to pay attention to your SQL service/agent accounts, since ...
    (microsoft.public.sqlserver.security)
  • Re: Troubleshoot connecting client to SQL Server instance on a server
    ... an advanced product, such as SQL Server, works as you expected. ... A server running Windows Small Business Server ... SQL Server security (Authentication mode and logins). ... use Windows security mode for the SQL Server/Express. ...
    (microsoft.public.access.adp.sqlserver)
  • Cannot add new NT login
    ... When adding a new login, ... sp_grantlogin) on a Security mode SQL Server of Windows Only, ... Windows NT user or group 'PUSNJLP\bostrke1' not found. ...
    (microsoft.public.sqlserver.security)
  • Re: Problem with SQL Server authentication
    ... Make sure the SQL Server/Express's mixed security mode is enabled. ... I added a new user to SQL Server, ... I tick to Use SQL Server Authentication, ...
    (microsoft.public.dotnet.framework.adonet)