Solved

sqlConnectionString with no Inital Catalog specified

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

809 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