• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

SQL Error 26 - Between SQL Express 2012 and SQL Server 2008 R2

Note:  This set up works fine with another set of applications I have installed.  I sync data  between a SQL Server 2008 and a local copy of SQL Express 2012 , both on my local machine and on my remote computer.  

Problem:  
I copied the working code to another set of applications for a similar project.  Everything works on my local machine.  I do the set up on a remote machine and I get error 26.  I can gain access to the database and its tables, and I add/delete records in it through SSMS.  Yet, I cannot get my visual studio 2010 windows applications to connect to this new SQL Express database on my remote machine.  I get error 26.  

Again, I have another set of applications that work perfectly.  Any suggestions?
0
Karen Wilson
Asked:
Karen Wilson
  • 3
1 Solution
 
unknown_routineCommented:
You have to Make sure the server machine is reachable so  DNS resolve it correctly,.

Try to ping the server machine. If you can't you have to ask your network admin to govr you access.
0
 
Karen WilsonProgrammerAuthor Commented:
Yes, I can get to the server as it works with another set of applications and I can look at and enter data using management studio.
0
 
Karen WilsonProgrammerAuthor Commented:
Some days, you just need a cookie and the light turns on.

I use LINQ.  On my *.dbml screen, I needed to change the connection string to make the instance a wild card.  Doh!  

Data Source=.\SQLEXPRESS;Initial Catalog=localMngAssmnt;Integrated Security=True

Everything works now!
0
 
Karen WilsonProgrammerAuthor Commented:
I figured it out by reviewing the working application.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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