MS SQL Server 2005 + 2008

I already had vs2005 installed and the sql server that comes with it. I also installed ms sql server studio manager.

I got a project that is done in vs2008, and i got the database files as well: .mdf, .ldf

I installed vs2008 and it installed a bunch of features with it that it needs and i believe that it also installed the 2008 sql server though not sure.

i attached the database using the studio manager (right click, attach, browse...)
now i ran the website and when it tries to connect to the database iget the error below.
i think its trying to find the database on the 08 db server.. ? and i attached it to the 05 db server?

your help is greatly appreciated.

thanks in advance.

System.Data.SqlClient.SqlException was unhandled by user code
  Message="A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)"
  Source=".Net SqlClient Data Provider"
  ErrorCode=-2146232060
  Class=20
  LineNumber=0
  Number=-1
  Server=""
  State=0
  StackTrace:
       at DAL.GetUser.getUser() in C:\Users\Rogue\Desktop\TechLink\TechLink\DAL\GetUser.cs:line 40
       at BLL.LoginUser.Login() in C:\Users\Rogue\Desktop\TechLink\TechLink\BLL\LoginUser.cs:line 29
       at TechLink.Login.btn_click_Click(Object sender, ImageClickEventArgs e) in C:\Users\Rogue\Desktop\TechLink\TechLink\TechLink\TL\Login.aspx.cs:line 30
       at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
       at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
       at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
  InnerException:
salalimosAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Raja Jegan RSQL Server DBA & Architect, EE Solution GuideCommented:
>> provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified

Make sure your SQL Server is up and running.
Also check whether your Browser Service is up and running if you are trying to connect to a named instance.
Check out the links below which contains some other additional possible causes:

http://blogs.msdn.com/sql_protocols/archive/2005/09/28/474698.aspx
http://aquesthosting.com/SQLError26
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
salalimosAuthor Commented:
Figured out the problem, had a typo in the server name:D

thanks for your comment.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.