Solved

How to change a connection string to an SQL database

Posted on 2009-07-15
5
132 Views
Last Modified: 2012-05-07
Hello ...I had an SQL database stored in my laptop.Unfortenatelly my laptop was broken for a reason...I saved the hard drive ...and bought a new laptop.
This sql database used a connection string named: FM_beConnectionstring1(MySettings) and the route was :Data Source=SPARTAN2-PC\VAIO_VEDB;Initial Catalog=FM_be;Integrated Security=True
(FM_be is name of the database)
this does not work in my new laptop ...and all my datasets use this route...
how can i change this without creating the datasets from the begining...
thank you in advance
0
Comment
  • 3
  • 2
5 Comments
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24862358
Kindly check whether
1. Your new laptop name is SPARTAN2-PC\VAIO_VEDB.
2. Remote configurations are enabled for SQL Server.
3. FM_be database is available in your new laptop.
0
 
LVL 18

Author Comment

by:John (Yiannis) Toutountzoglou
ID: 24864397
SPARTAN2-PC\VAIO_VEDB:old laptop
FM_be is available on the new laptop
0
 
LVL 57

Accepted Solution

by:
Raja Jegan R earned 500 total points
ID: 24865573
In your connection string, you still refer to your Old laptop it means.
Kindly change it to your new laptop in connection string and give it a try.
0
 
LVL 18

Author Comment

by:John (Yiannis) Toutountzoglou
ID: 24967679
I am very sory for the delay ...It is Summer in Greece so I left for Vacation...
I checked you answer so i did the following:
MyProject -Setting-
and there i just change the server....
thank you very much
0
 
LVL 57

Expert Comment

by:Raja Jegan R
ID: 24967764
Welcome and glad to help you out..
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

13 Experts available now in Live!

Get 1:1 Help Now