Creating a session database with ASP.NET_Regsql.exe

Source: Internet
Author: User

Cmd:

C:\users\zhangsc>c:\windows\microsoft.net\framework64\v4.0.30319\aspnet_regsql.e
Xe-s zhangsc-pc-u sa-p [email protected]-ssadd-sstype c-d sessionm

Aspnet_regsql.exe parameter explanation
-General information and functions
-W is the way of the wizard, which is the graphical interface.
-C Connection string,-if SQL Server is already installed, you can use this parameter to connect to the database
-s server name, which can be the name of the database or the name of the instance
-u username, the user name of the login database, which is typically used to create database tables or database scripts.
-p password,-the password to log in to the database. Generally-u and-P always appear together
-E, without any parameters, which identifies you will use the current Windows user as the user connecting to the database.
-d database name, use this parameter to establish the corresponding database name, if not specified will default to the ' Aspnetdb ' database
-sqlexportonly filename, parameter is the name of the file to be saved, and the parameter identifies only the script and configuration script for the database, without any action.
-A all|m|r|p|c|w,-a means to allow or open a function, M for membership function, R for Role management function, p for the profile function, C for Web Parts personalization, W for Web events, all for open/ All of the above features are available
-R all|m|r|p|c|w-r for removing or prohibiting a feature, m for membership function, R for role management, p for profile, C for Web Parts personalization, W for Web events, all for forbidden/ Turn off all of the above features
For example: Aspnet_regsql.exe–a p–e
--session State Feature
-ssadd, open/Available SQL Server mode session state mode
-ssremove, close/Remove SQL Server mode session state mode
-sstype t|p|c, specify a specific way, t means that the data and State of session states will be placed in the SQL Server ' tempdb ' database, the management scripts and stored procedures will remain in the "ASPState" database, if the machine starts, The session state will not be saved, which is also the default setting. P indicates that the data and status of the session state and the associated stored procedures will be placed in the SQL Server ' ASPState ' database; C means that the data and State of the session and the associated stored procedures will be placed in the SQL specified by the-d parameter Server's Database
For example: Aspnet_regsql-s localhost-u sa-p wrox-ssadd-sstype P
--sql Cache Dependency Features
-ed, no parameter representation, available/Open SQL Cache Dependency feature
-DD, no parameters, indicates the Disable/disable SQL Cache Dependency feature
-et, no arguments, but must be followed by the-t parameter, which indicates that the table is open/can use the SQL Cache Dependency feature
-DT, no parameters, but must be followed by the-t parameter, which represents the Disable/close SQL Cache Dependency attribute for a table
-T table name, a database table name that must be used with-et or-DT
-LT, without parameters, will query the database, listing all database tables using the QL Cache Dependency feature
For example: Aspnet_regsql.exe-s localhost-u sa-p password-d northwind-t products–et

Creating a session database with ASP.NET_Regsql.exe

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.