Solved

How to change a connection string to an SQL database

Posted on 2009-07-15
5
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

695 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