473,385 Members | 2,014 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,385 software developers and data experts.

problem connecting to sql database

I am attempting to reinstall from a windows gone bad problem.
XP had "died" and unable boot into os, so there was no backup or copy database made.

Have installed new hdd. copied most all of the old hdd to a "backup" folder on new hdd. I know of the program files ms sql data subdir.
System state.
XP professional , not sharing on network, so is like standalone pc.
sql is 8.0 ( the downloaded version that was part of the installation of a precreated data base.)
XP is now sp2 I do not think it was prior.
I copied the contents of the old data folder to the new folder, overwriting the install created db files.
error given when running data base is
This program cannot connect to your database file, cuttingedge_xpo.
Please make sure that your database is started and start Program again.

I contacted the “support” people of the db and they said a sql db cannot be moved / recovered except by back up and restore, which is impossible in this case.
I cannot believe a db product is “unrecoverable” from this.
Did I miss any other sql files like configs or is this just not possible.
I do not want to retype a lot.

Can any one help me fix this.
Jun 1 '07 #1
6 1624
I am attempting to reinstall from a windows gone bad problem.
XP had "died" and unable boot into os, so there was no backup or copy database made.

Have installed new hdd. copied most all of the old hdd to a "backup" folder on new hdd. I know of the program files ms sql data subdir.
System state.
XP professional , not sharing on network, so is like standalone pc.
sql is 8.0 ( the downloaded version that was part of the installation of a precreated data base.)
XP is now sp2 I do not think it was prior.
I copied the contents of the old data folder to the new folder, overwriting the install created db files.
error given when running data base is
This program cannot connect to your database file, cuttingedge_xpo.
Please make sure that your database is started and start Program again.

I contacted the “support” people of the db and they said a sql db cannot be moved / recovered except by back up and restore, which is impossible in this case.
I cannot believe a db product is “unrecoverable” from this.
Did I miss any other sql files like configs or is this just not possible.
I do not want to retype a lot.

There is a program in one of the sub dirs that I think may fix it, but I am not familiar with sql.


irectory of C:\PROGRA~1\MICROS~2\MSSQL\BINN

04/17/2001 11:22 PM 21,056 cmdwrap.exe
12/17/2002 05:23 PM 311,872 sqlagent.EXE
12/17/2002 05:23 PM 156,224 sqlmaint.exe
12/17/2002 05:26 PM 7,520,337 sqlservr.exe
4 File(s) 8,009,489 bytes
0 Dir(s) 399,421,976,576 bytes free

C:\PROGRA~1\MICROS~2\MSSQL\BINN>sqlmaint /p

Microsoft (R) SQLMaint Utility (Unicode), Version 8.00.760
Copyright (C) Microsoft Corporation, 1995 - 1998

USAGE: [-?] | [-S <Server Name>]
[-U <Login ID> [-P <Password>]]
l reports older than given
time period
C:\PROGRA~1\MICROS~2\MSSQL\BINN>sqlmaint -rebldidx

Microsoft (R) SQLMaint Utility (Unicode), Version 8.00.760
Copyright (C) Microsoft Corporation, 1995 - 1998

USAGE: [-?] | [-S <Server Name>]
[-U <Login ID> [-P <Password>]]
-D <Database Name>
[-Rpt <Output File>]
[-To <Operator Name>]
[-CkDB | -CkDBNoIdx]
[-CkAl | -CkAlNoIdx]
[-CkTxtAl]
[-CkCat]
[-UpdSts]
[-RebldIdx <% Free Space>]
[-BkUpDB <Backup Path> | -BkUpLog <Backup Path>]
[-BkUpOnlyIfClean]
[-BkUpMedia DISK [-DelBkUps <time period>] | TAPE]
[-UpdOptiStats <% of Database to Sample>]
[-HtmlRpt <Html File>]
[-VrfyBackup]
[-RmUnusedSpace <Minimum DB in MB> <% of free space to leave>]
[-PlanID <GUID identifying the maintenance plan in 36 character
hex format>]
[-PlanName <Maintenance plan name>]
[-CrBkSubDir] Create a sub-directory (for storing backup files)
for the database(s).
[-UseDefDir] Use the default backup directory.
[-WriteHistory] Write history to msdb.dbo.sysdbmaintplan_history
.
[-DelTxtRpt <time period>] Delete text reports older than given
time period
[-DelHtmlRpt <time period>] Delete html reports older than given
time period

Can any one help me fix this.
Jun 1 '07 #2
Motoma
3,237 Expert 2GB
Is the SQL Server service running? Can you connect from the machine the database is on? Is the windows firewall enabled?
Jun 1 '07 #3
There is no source machine, just the contents of the hdd put in a folder on the new hard drive.
The origional hdd is non bootable, will never again be bootable.
The sql service is running.
I am not sure about the other two questions I do not think they apply in this instance since this is the working machine.
Jun 1 '07 #4
Motoma
3,237 Expert 2GB
There is no source machine, just the contents of the hdd put in a folder on the new hard drive.
The origional hdd is non bootable, will never again be bootable.
The sql service is running.
I am not sure about the other two questions I do not think they apply in this instance since this is the working machine.
They do apply, as these are two things that may be indicators as to why you are unable to access the SQL Server.
Jun 2 '07 #5
They do apply, as these are two things that may be indicators as to why you are unable to access the SQL Server.
I need clarifition on the question
Can you connect from the machine the database is on?
I do not under stand the question pertaining to a standalone machine with the data on the same machine. The origional hdd that had the os and data is not functioning, so I cannot boot the of on that hdd. that is why the contents og the hdd was copied to a subdir on the new hdd.

The data is NOT accessed across a network. Just on the one pc.


Is the windows firewall enabled?
It is gneerally on, but I did try to access the data with it off, but got the exact same result.
Jun 2 '07 #6
Motoma
3,237 Expert 2GB
I am sorry, I originally misread your problem.

This seems like a very tough situation you are in; you have already done most of the things I would have suggested trying.

My only idea is to set up the directory structures to exactly match how they were on your original machine: SQL Server stores information about the database storage directories, and I would not be surprised if this caused a problem. I would then recreate the databases in the new server. Take the server off line (fully shut it down) and then drop the backed up files into the data directory again. You will likely have to do the master DB as well, in fact, it is probably best to do the entire Data directory.

Other than this, I have no clue what else you could try. If you get things figured out, please post back what the solution was, I am sure this would be an extremely handy thing to know.

Good luck,
Motoma
Jun 4 '07 #7

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

Similar topics

1
by: kaiwing18 | last post by:
Hi , I have a problem relate to java and database. Could anyone answer me ?Please see the following code. import java.sql.*; public class Result { public static void main(String args) {
0
by: Max | last post by:
Hi wise people, Has anyone encountered the Crystal Reports problem I describe below? If so, how did you solve it? It seems that every article posted on google regarding CR and logon problems is...
3
by: W Akthar | last post by:
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to Outlook. The problem lies when I try to create an...
12
by: Ann Marinas | last post by:
Hi all, I would like to ask for some help regarding separating the asp.net webserver and the sql server. I have created an asp.net application for a certain company. Initially, we installed...
14
by: Nick Gilbert | last post by:
Hi, I have an asp.net application which runs from a CD-ROM using Cassini. As such, it is single user only. The application connects to an Access database when it is loaded, and keeps the same...
0
by: richard | last post by:
OS: Winxp and Win2003 Visual Basic.NET 2003 MS-SQL Server 2000 hey all I am a newbie in vb.net but i have managed to build a simple chat server in vb.net using socket and a client connecting...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but...
0
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
2
by: Patrick F | last post by:
Hi, i have SQL Server 2005 and a database set that is called, myCompany the problem is that i cant connect from my page to it, here is from the web.config: ( i have got this connectionstring from...
2
by: orandov | last post by:
Hi, I am having a problem connecting my .net applications from the application server to the database server. When I run the application from my windows xp (sp2) box it works fine. When I try to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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,...

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.