Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 862
  • Last Modified:

Error connecting to my local sql express 2005

I'm on xp, asp.net 3.5.  Error screen attached.  How to fix this?
Thanks.
sqlerr.JPG
0
lapucca
Asked:
lapucca
  • 3
1 Solution
 
lapuccaAuthor Commented:
Here are my connection strings.
  <add name="core" connectionString="Data Source=.\SQLEXPRESS;user id=xxx;password=yyy;Initial Catalog=tecore_Core"/>
  <add name="master" connectionString="Data Source=.\SQLEXPRESS;user id=xxx;password=yyy;Initial Catalog=tecore_Master"/>
  <add name="web" connectionString="Data Source=.\SQLEXPRESS;user id=xxx;password=yyy;Initial Catalog=tecore_Web"/>  
0
 
rawinnlnx9Commented:
try using 'local' instead of the . on my local installs I actually have named installs such as SQL2005, SQL2008, etc... When you installed did you install it as "default"? If so then simply use "Data Source=local;..."
0
 
lapuccaAuthor Commented:
The original connection string used localhost.  I changed it to local and still getting the same error screen.  Thank you.
0
 
BurniePCommented:
Hi,

What is the name of your Sql Instance?

Let's say you go into Microsoft SQL Server Management Studio, this would be the upper menu level item name.

Then modify your connection strings using this name as follow :

  <add name="core" connectionString="Data Source=SqlInstanceName;user id=xxx;password=yyy;Initial Catalog=tecore_Core"/>
  <add name="master" connectionString="Data Source=SqlInstanceName;user id=xxx;password=yyy;Initial Catalog=tecore_Master"/>
  <add name="web" connectionString="Data Source=SqlInstanceName;user id=xxx;password=yyy;Initial Catalog=tecore_Web"/>  

Replace SqlInstanceName with your name, it can be something like YourName\SQLEXPRESS, just put everything you see in uppercase.


0
 
lapuccaAuthor Commented:
Apparently I instlled it as a named instance.  I had to put macineName\sqlName in connection string to make it work.  It won't work with local when it's a named instance.  Thank you.
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now