Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6081045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:07:51+00:00 2026-05-23T11:07:51+00:00

I have asp.net web site uses inproc as session manangment. Now, I am looking

  • 0

I have asp.net web site uses “inproc” as session manangment. Now, I am looking at the option to store the sessions in SQL server. I looked at the some online articles that I have to use “InstallSqlState.sql or InstallPersistSqlState.sql” to create the session database on the sql server. Here are my questions.

  1. Do I have to use the script or can i just create a database manually (using SQL management studio to create one) and just make sure I update the exact database information on the web.config
  2. Currently, I am saving the session as Sesssion.Contents[“…”], how does this affect if I change it SQL server as session managment?
  3. Is using SQL going to be make the site running slow?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T11:07:51+00:00Added an answer on May 23, 2026 at 11:07 am

    I would recommend you using the aspnet_regsql.exe utility (part of the .NET framework) which will create the necessary databases and tables. It can be run from a remote machine as well, not necessary from the SQL Server. For example:

    aspnet_regsql.exe -S SomeSqlServer -E -ssadd -sstype p
    

    Once you the ASPState database is created on the target SQL Server simply modify your web.config file to specify that you want to use a SQL Server for Sessions:

    <sessionState 
        mode="SQLServer"
        sqlConnectionString="Data Source=SomeSqlServer;Initial Catalog=AspSate;User Id=asp;Password=secret;" 
    />
    

    You might need to create a user which is authorized to access this database. No changes are necessary to your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a asp.net mvc web application an it uses some favicon.ico. Now when
I have an ASP.NET MVC 3 web site that uses Windows Authentication running under
I have an asp.net site that uses Bing Translate Web service(http://api.microsofttranslator.com/V2/Soap.svc) The code that
I have website that uses ASP.net Membership Provider. This web site will be served
I am looking into Performance issues of an Asp.Net 2.0 Web Site which uses
I have a web site in asp.net that uses a master page. In this
I have a Silverlight web app which uses ASP.net Website administration tool for user
I have a website that uses basic ASP.Net forms authentication. In the web.config file
I have a asp.net web site that was developed on the .Net Framework v2
I have an ASP.Net web site (ASPX and ASMX pages) with a single web.config

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.