Solved

Error connecting to my local sql express 2005

Posted on 2011-02-16
5
845 Views
Last Modified: 2012-05-11
I'm on xp, asp.net 3.5.  Error screen attached.  How to fix this?
Thanks.
sqlerr.JPG
0
Comment
Question by:lapucca
  • 3
5 Comments
 

Author Comment

by:lapucca
ID: 34909619
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
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 34909680
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
 

Author Comment

by:lapucca
ID: 34909796
The original connection string used localhost.  I changed it to local and still getting the same error screen.  Thank you.
0
 
LVL 16

Accepted Solution

by:
BurnieP earned 500 total points
ID: 34912130
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
 

Author Closing Comment

by:lapucca
ID: 34912326
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Contant UI messages in .NET 1 41
Mutually exclusive checkbox in a gridview 18 42
ASP.NET Web Form Variables being reset 2 19
Query 14 19
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

747 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