RE: arghh.. can't get .NET to connect to sql server

From: linda deng[MS] (lideng@online.microsoft.com)
Date: 09/23/02


From: lideng@online.microsoft.com (linda deng[MS])
Date: Mon, 23 Sep 2002 05:39:05 GMT


Hi Steve,

When accessing the SQL Server, there are two authentication modes. One is
SQL Server authentication, the other is Windows NT authentication. When you
specify the userid and the password in your connection string, it indicates
that you use the SQL Server authentication, so you should specify a
standard account and its password in the string, for example, 'sa'.

You also can specify 'Integrated Security=SSPI' in your connection string
when using OLE DB Provider, or 'Trusted_Connection = yes' when using ODBC
Driver to utilize the 'Windows NT authentication' to access the SQL Server.
In this situation, you don't need to specify any userid or password in your
string. IIS Server will transfer the user account which you logon on to the
machine 'a' to the SQL Server for authentication. For more information or
sample code on the connection string, you can refer to
http://www.able-consulting.com/ADO_Conn.htm.

Sincerely,

Linda Deng
Microsoft Support Engineer

This posting is provided "AS IS" with no warranties, and confers no rights.



Relevant Pages

  • Re: using VBA to insert records from access database to sql server
    ... I don't think you can specify a connection string *within* a query like ... My preferred solution to this kind of problem would be to use ODBC to link ... the Access MDB and the SQL Server table. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Cannot connect using sa
    ... that's because there isn't generally an advantage to SQL Server ... Windows authentication is significantly more secure. ... >>>from the connection string, couldn't connect, then when I put it back I ...
    (microsoft.public.sqlserver.setup)
  • Re: SQL Server 2005 - getting Bruteforced
    ... The SQL Server is running on an Internet Server with ASP.NET v2 remotely. ... We are testing several Web Applications there with a Remote Team. ... The ASP.NET Applications are using SQL Authentication instead of Windows ... Here's an example ADO.NET connection string using integrated security. ...
    (microsoft.public.sqlserver.security)
  • Re: big performance problem
    ... When your system authenticates to SQL server (i.e. connection string ... > I am using a form authentication turned off right now as I am just testing ... > I am using stored procedure and datareader and also the DB size is very ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Linked Server - Force Translate
    ... I had the same issue when using a connection string with same ... > see sp_addlinkedserver in Books Online for details. ... > You can also use OPENROWSET and specify a connection string with it. ... > Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se ...
    (microsoft.public.data.oledb)