Solved

sqlConnectionString with no Inital Catalog specified

Posted on 2014-01-17
2
182 Views
Last Modified: 2014-01-19
in web.config using a SessionState element like so :

<system.web>
<sessionState cookiesless="UseUri"
       mode="SQLServer"
       sqlConnectionString="Data Source=localhost; Integrity Security=SSPI"


Now up above they leave out the Initial Catalog in the sqlConnectionString. So what database is being used for the sqlConnectionString?
0
Comment
Question by:metro156
2 Comments
 
LVL 35

Assisted Solution

by:Miguel Oz
Miguel Oz earned 250 total points
ID: 39790053
The Aspnet_regsql.exe tool create create a database named ASPState containing stored procedures that support SQLServer mode.check links below for more details:
Explain the diffrent session modes (In your case SQL Server Mode):
http://msdn.microsoft.com/en-US/library/ms178586(v=vs.80).aspx
How to enable this mode:
http://support.microsoft.com/kb/317604
0
 
LVL 52

Accepted Solution

by:
Carl Tawn earned 250 total points
ID: 39790545
If you don't specify the database name it will use the default database configured for the user who is connecting.
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question