473,406 Members | 2,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Error in connection...The ConnectionString property has not been initialized

Hi, I'm using visual studio 2005 with sql server 2005. I made a program on my computer that works great. I wanted to transfer the same project through a remote connection to another computer, I transfered the debug file with the executable file and everything, I already have the same project on that computer but it was an earlier one I had made so I wanted to update it. The issue was, since I changed my database values, i wanted to transfer the two database files to replace both .mdf and .ldf files. When I did that on the same folder, I did overwrite the older one i had with my newer one. Then when I tried opening the executable file, it gave me this error:
Expand|Select|Wrap|Line Numbers
  1. Error in connection...The ConnectionString property has not been initialized
it also said on another table, the application has encountered a problem and needs to close...etc. Since I did overwrite the files I can't get them back, but I have a backup of the old one...how can I restore it, or what can I do to fix this problem? Please it's urgent.
Jan 24 '08 #1
2 3626
ck9663
2,878 Expert 2GB
Hi, I'm using visual studio 2005 with sql server 2005. I made a program on my computer that works great. I wanted to transfer the same project through a remote connection to another computer, I transfered the debug file with the executable file and everything, I already have the same project on that computer but it was an earlier one I had made so I wanted to update it. The issue was, since I changed my database values, i wanted to transfer the two database files to replace both .mdf and .ldf files. When I did that on the same folder, I did overwrite the older one i had with my newer one. Then when I tried opening the executable file, it gave me this error:
Expand|Select|Wrap|Line Numbers
  1. Error in connection...The ConnectionString property has not been initialized
it also said on another table, the application has encountered a problem and needs to close...etc. Since I did overwrite the files I can't get them back, but I have a backup of the old one...how can I restore it, or what can I do to fix this problem? Please it's urgent.

using your sql manager, do a complete backup of your database. copy that backup file to the destination station. using the sql manager on that station, restore your database using the backup of the source database. you might also need to modify the connectionstring on the destination machine. make sure the sql server name is correct.

-- ck
Jan 24 '08 #2
using your sql manager, do a complete backup of your database. copy that backup file to the destination station. using the sql manager on that station, restore your database using the backup of the source database. you might also need to modify the connectionstring on the destination machine. make sure the sql server name is correct.

-- ck
Hey thanks ck! I did that and it was giving an error about not having access...so what i did is go into configuration manager and in services I changed the logon from network to local service and it restored fine. Appreciate ur help!

Cheers!
Jan 25 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jonathan G. | last post by:
I'm writing my first windows service. I have a class called 'mainprocess' whose constructor is called by the service class. Within mainprocess, I declare an instance of another class I wrote,...
1
by: Tim Nelson | last post by:
I am building a data bound application for SQL server which all the forms I use sqlconnections generated by VS. I want to have a login form that changes the connection depending upon login...
4
by: Troy | last post by:
We recently installed the .Net framework on a windows 2000 server. Shortly after that we experienced intermitant problems running a web based program that accesses an Access 2002 database. The...
6
by: Tony | last post by:
Dear All, When I run an example program on the http://www.dotnetjunkies.com/quickstart/util/srcview.aspx?path=/quickstart/aspplus/samples/webforms/data/datagrid1.src&file=VB\datagrid1.aspx&font=3 ...
2
by: Sam | last post by:
I'm trying to create authentication for username and password but encounter below error message: Error Message ----------------------- The ConnectionString property has not been initialized....
9
by: Taishi | last post by:
ExecuteReader: Connection property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more...
1
by: =?Utf-8?B?SnVzdGluIERvaA==?= | last post by:
I am still a novice with .NET and I am little bit struggling with debugging. I am trying to find the cause of the error. Is it the problem with system.data.dll or libdata.dll or what? Any...
2
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
1
by: ErikJL | last post by:
I have a simple webservice that performs a SELECT query against a database, and then an INSERT statement on the same database/table. The problem arises at the time when we create the second OleDB...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.