
Script could be written that talks to the database
- or -
Post a project like this4972
£30/hr(approx. $40/hr)
- Posted:
- Proposals: 8
- Remote
- #186811
- Awarded
.Net - C# & VB.Net / Application Developer / Web Developer / CMS / Wordpress / Joomla / Drupal / MySQL / XHTML / CSS / AJAX
306749627823979626417972884363121366716364033
Description
Experience Level: Expert
Hi , I'm a friend of Lego's and I'm a java/mysql developer. I'm trying to help Lego with his move but I don't know the technologies, so I've suggested that he go to someone like yourself for help with moving his database. I wanted to explain the situation as I understand it, so that we can be clearer about what needs to be done..
The problem is this:
Lego has the .aspx code, in fact all the code of the website, but I don't think he has access to the database. So moving the code to another provider should be easy, but the problem is how to move the database.
One thing I can think of is - he does have ftp access to the website, so presumably, a script could be written that talks to the database, and that script could be uploaded to the website and then it could give us a snapshot of the database - perhaps there is a MS SQL query like 'describe table' or something that will tell us the design of all the tables. Then we can rebuild the database?
The problem is that the person that developed this website is very territorial, and it was hard to get access to the code. I think we would have problems to get a backup of the database from him.
Does that make sense and what do you think would be the best strategy for getting a copy of the database?
We did find this code in some of the source code - does this help?
private static string getConnStr(string strFrom)
{
string strPath = HttpContext.Current.Server.MapPath(strFrom) + "\\MembersDB.mdb";
string strDBConn = "Provider=Microsoft.Jet.OLEDB.4.0;Password=\"\";User ID=Admin;Data Source=" + strPath;
return strDBConn;
}
Thanks for your assistance. I should also mention that there are plenty of other bugs in the website, so there would be no shortage of follow-on work from this!
Thanks.
The problem is this:
Lego has the .aspx code, in fact all the code of the website, but I don't think he has access to the database. So moving the code to another provider should be easy, but the problem is how to move the database.
One thing I can think of is - he does have ftp access to the website, so presumably, a script could be written that talks to the database, and that script could be uploaded to the website and then it could give us a snapshot of the database - perhaps there is a MS SQL query like 'describe table' or something that will tell us the design of all the tables. Then we can rebuild the database?
The problem is that the person that developed this website is very territorial, and it was hard to get access to the code. I think we would have problems to get a backup of the database from him.
Does that make sense and what do you think would be the best strategy for getting a copy of the database?
We did find this code in some of the source code - does this help?
private static string getConnStr(string strFrom)
{
string strPath = HttpContext.Current.Server.MapPath(strFrom) + "\\MembersDB.mdb";
string strDBConn = "Provider=Microsoft.Jet.OLEDB.4.0;Password=\"\";User ID=Admin;Data Source=" + strPath;
return strDBConn;
}
Thanks for your assistance. I should also mention that there are plenty of other bugs in the website, so there would be no shortage of follow-on work from this!
Thanks.
Iego C.
100% (11)Projects Completed
17
Freelancers worked with
12
Projects awarded
7%
Last project
17 Jun 2016
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies