Solved

sqlConnectionString with no Inital Catalog specified

Posted on 2014-01-17
2
186 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 36

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

635 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