Solved

sqlConnectionString with no Inital Catalog specified

Posted on 2014-01-17
2
180 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

3 Use Cases for Connected Systems

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

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:…
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now