Windows verification string

Source: Internet
Author: User

1: Set the database connection string to the following format:
Provider = sqloledb.1; Integrated Security = sspi; persist Security info = false; initial catalog = database name; Data Source = IP Address
2: Ensure that the client and database server have the same user and password
3: the database server user belongs to the Administrators group.
4. Set the Authentication Mode on the database server to Windows.

 

 

Set in Web. config (during windows verification)

Define a connection string in a class file
String pr_conn = configurationmanager. connectionstrings ["northwindconnectionstring"]. connectionstring;

String pr_ SQL = "database query statement ";
Sqldatasource pr_ds = new sqldatasource (pr_conn, pr_ SQL );
Return pr_ds.select (datasourceselectarguments. Empty );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.