Restoring SQL Server Databases After Uninstalling And Reinstalling SQL Server.

Mar 11, 2004

Hi

I have another question : 1) Restoring SQL Server Databases after uninstalling and reinstalling SQL Server.

Two days ago there was some problem with Norton Antivirus, so Windows 98 restored itself to a previous state. The SQL Server name was not available when I tried to start again, so I had to uninstall and reinstall SQL Server. I started a new Database just a week before this happened (the change from Access to SQL Server as I stated in the other thread http://www.dbforums.com/showthread.php?threadid=987880) and after reinstallation I could not access the Database any more - even while it is in the Data directory. I did not have any backup to restore from - I just started creating tables, so there was only the Log file created and the MDF database file. I tried to import it for a while to the new server, but as the database is not shown in the new server, it was unable to import like I hoped. So how do you restore it back to SQL Server when you have no backup and only the (undamaged) MDF database file if you only have one server? I had to recreate the Database from scratch again - I don't want it to happen again.

Regards

Corné

View 4 Replies


ADVERTISEMENT

Restoring SQL Server Databases From .mdf Files

Feb 14, 2006

I recently was given control of an SQL server that stop working.
We had no past backups of the database and the only file we had was the .mdf
I decided to install a fresh version of SQL 2000 on another server and created a database using enterprise manager with the same name as my database called SWATraining

I then stop the sql server

the first thing that I notice is that the .mdf that enterprise manager created had _DATA at the end of the name. Thus I renamed the the orginal .mdf SWATraining_Data and

copied it to the
C:program filesmicrosoft sql servermssqldata
when I started SQL the database was greyed out and had (suspect)labeled

How can I recover the database when the only file I have is the .mdf file??


I even tried

sp_attach_single_file_db @dbname = 'SWATraining',
@physname = 'C:Program FilesMicrosoft SQL ServerMSSQLDataSWATraining.mdf'

but reason this error

Server: Msg 5172, Level 16, State 15, Line 1
The header for file 'C:Program FilesMicrosoft SQL ServerMSSQLDataSWATraining.mdf' is not a valid database file header. The FILE SIZE property is incorrect.

View 4 Replies View Related

SQL Server 2008 :: Moving Backups / Restoring Databases

Feb 23, 2015

I am working on a task. Currently we are taking a database backup and keeping that backups in a folder. The backups doesn't have time stamp on it. My task is need to get the latest backup and copy that backups into some other server and then restore the database from there.I am planning to create SSIS package.Do we need script task for this task.How to get the .bak with latest create or moidified date. For now we doesn't have timestamp so need to go based on modified date?

View 9 Replies View Related

SQL Server 2008 :: Using BCV Split Mirror Copy And Restoring Databases?

May 1, 2015

I was contacted by the SAN team to test backup/restore of larger databases using a split-mirror backup (BCV) or clone that is taken from production db server and copied to another sql box. They want to use this process once a week. I see the mounted drives with the data/log files. All looks good. Initially I attempted to attach the databases and received (Unable to open the physical file db.mdf Operating System Error 5 Access is denied). I manually granting SQLServerMSSQLUser$<computer_name>$<instance_name> on all of the physical files 20 total. That worked.

Since this will be weekly, the SAN team performed the copy again and now none of the databases can communicate with the newly copied files. NTFS permissions need to be set again. I'm getting (Operating System error 21: the device is not ready). Is there something that I'm missing in this process how the vendor BCV clones the data and SQL communicates with the copied files as I was thinking it would be more automated process?

View 0 Replies View Related

Problems Reinstalling SQL Server Express

Aug 16, 2007

I installed SQL Server Express and uninstalled it through the control panel add/remove programs. When I try to reinstall is I get an error message that says it is already installed. I'm having the same problem with the toolkit. I saw a post describing a similar problem and tried reinstalling it through the Add Programs button but got the same result. The only SQL programs I see in Add/Remove Programs are MSFT SQL Server Native Client and MSFT SQL Server Setup Support Files (English). I tried to get to the change button on the former but it just removed the entry. How can I tidy things up so I can reinstall it? I'm running XP second edition.

View 4 Replies View Related

Reinstalling MSSQL Server 2000 Over-the-top?

Nov 12, 2007

Hello,

I've got a weird problem that started today on our SQL server at work. Apparently the transaction logs filled up for one DB, and SQL server decided to create 230 gb of errors on the subject, filling my D: drive. Well, I had no problem deleting the error logs and truncating the transaction logs, but my Enterprise Manager MMC will no longer function.

Search results turned up a fix that worked for most people, but not for me. So I'm pretty sure I've got no choice but to reinstall over-the-top. But, will this cause any loss of existing databases (obviously back them up first), users/security, and scheduled tasks (db backups, etc)?

I'd like to do minimal damage to this thing because there are several DB's set up from before my time, and I don't have time to manage this thing completely (as you might have guessed, no one really manages things here). Any help is appreciated.

View 4 Replies View Related

SQL 2012 :: Reset Admin Password Without Reinstalling Server

Jun 17, 2015

I have a local instance of SQL 2012 express,

Somehow my admin privileges have been lost, and the sa password is not Password123.

Is there anyway to reset this password without re-installing SQL server.

View 1 Replies View Related

Reinstalling Microsoft Server Management Studio Express

Feb 27, 2008



I was having some trouble with the DTS Wizard and so I thought I'd just reinstall the whole MSSM. I used remove programs, rebooted my Vista computer and am trying to reinstall the Server Express Toolkit. It tells me that MSSM already exists on my computer (which it doesn't).

The actual screen reads:

Existing components
The following components that you chose to install are already installed on the machine.
Grayed out -- Workstation components and development tools 9.2.3042.00

How do I reinstall MSSM now? It's gone from my computer.

Thanks!

View 3 Replies View Related

Uninstalling SQL Server Comapct Edition And Installing Sql Server 2005

May 16, 2008



Hi,

Recently I have installed Visual Studion Team System 2008 Development Edition in my sytem. Along with this, MS-SQL Server aand MSSQL Server Compact Edition is also installed. I need to install the SQL Server 2005 in my system.

In such a scenario, does the Compact Edition is required? Can I uninstall them and install Sql Server 2005 only? If I uninstall anything, would it cause any problems for the .Net programs to work?

Please respond asap.

Thanks for any help.
meeram.

View 1 Replies View Related

Uninstalling SQL Server

May 22, 2001

Hi!
I'm trying to uninstall SQL Server 7.0 going through Add/Remove Program and getting message "sqlserver.exe in use".
All my applications are closed, SQL Server service is stopped and Agent is stopped also.
What else should I check to be able to uninstall it?

Thanks

Lena

View 4 Replies View Related

Uninstalling SQL Server 2005

Apr 23, 2008

can someone show me how to uninstall Mirosoft SQL Server 2005 from my machine....

View 2 Replies View Related

Uninstalling SQl Server 2005, It Won't!

May 7, 2007

I have a server with a fresh install of SQL Server 2000. I accidentilly installed the Sql server 2005 SP1 disk (instead of the actual software). And what it did was a nightmare. It installed the client tools and link them to the 2000 instance. I went back and attempted to install the actual 2005 copy. Ever since I have items in my add/remove that will not uninstall. I removed everything except the 2005 Engine and Analysis services. I've followed the MS article (http://support.microsoft.com/kb/909967) with removal, trying everything. All got removed except the Engine and Analysis services!!!!

I've gone into the registry and reviewed the keys, etc! I've run removal attempts fof both command prompt and add/remove, does not work. I've tried reapplying SP's, etc no luck.



Unless I get these services off I can not install 2005 and 2000 again.

View 1 Replies View Related

UnInstalling SQL Server Beta

May 21, 2006

When I installed Visual Studi C# Express, SQL Server Express was not installed because SQL Server Beta was already there. I tried to uninstall SQL Server Beta several times and failed to do so through Add/Remove Programs. Accidentally, I uninstalled SQL Server Set-up programs from Add/Remove and consequently, I am unable to uninstall SQL Server Beta through Add/Remove anymore.

Is there a utility to download that enable me to uninstall SQL Server Beta? I have no way to install SQL Server Express without removing the previous version. It seems to be a real problem from the many questions I found on MSDN.

Please help.

View 1 Replies View Related

Uninstalling Sql Server Express

Dec 7, 2006

i installed sql server 2005 express by running SQLEXPR_ADV.EXE....now i can not uninstall it because the exe created a temp file to unpack the install files....of course those files are cleaned up after install or whenever i cleaned up the temp files on my pc.....so how do i uninstall?

View 5 Replies View Related

Error While Uninstalling SQL Server In A Cluster

Dec 10, 2007

I am following the 2005 BOL article "How to: Remove a SQL Server 2005 Failover Clustered Instance (Setup)". The process is very simple, but perhaps the documentation is missing some steps. I am receiving the following errors during the uninstall.

The setup has encountered an unexpected error while Completing Commit. The error is: The cluster resource cannot be moved to another group because other resources are dependent on it.

If I click OK I receive the error below.

Failed to set registry settings for server network libraries. The action is SetShilohRoot. The error is 2 (The system cannot find the file specified.)

Am I supposed to do something to the cluster prior to performing the uninstall?

Thanks, Dave

View 3 Replies View Related

Problem With Uninstalling SQL Server 2005

May 8, 2006

Hi all,

I had installed Sql Server 2005 Express Edition Beta 2 on my computer.

Now i would like to upgrade with SQL Server 2005 Express édition. It is noticed

(http://www.microsoft.com/france/msdn/vstudio/uninstall/default.mspx ) that i have

to uninstall all previous version following a specific order.



In my Add/Remove program i have :

1 -Microsoft .Net Framework 2.0 Beta

2 -SQL Server 2005 Express Edtion Beta 2

3 -SQL Server 2005 Tools Express Edtion Beta 2

4 -Microsoft SQL Server Setup support files



The problem is :

2 & 3 can't be uninstalled from my computer: the uninstalling program is blocked

Can somebody have a solution forme?

View 3 Replies View Related

Problem Uninstalling SQL Server Beta 2

Jun 3, 2006

I had SQL Express 2005



then I uninstalled it and installed SQL Server 2005 Beta 2



No i want to totally remove the Beta 2 but it's removing the items from Add/Remove Programs but the applications is not removed!!



I tried the installer Cleanup utility but I am getting this error:

Run-time error '-2147024882 (8007000e)'
System Error &H80004005 (-2147467259)



what should i do plz?



View 1 Replies View Related

Error While Uninstalling SQL Server In A Cluster

Dec 10, 2007

I am following the 2005 BOL article "How to: Remove a SQL Server 2005 Failover Clustered Instance (Setup)". The process is very simple, but perhaps the documentation is missing some steps. I am receiving the following errors during the uninstall.


The setup has encountered an unexpected error while Completing Commit. The error is: The cluster resource cannot be moved to another group because other resources are dependent on it.


If I click OK I receive the error below.


Failed to set registry settings for server network libraries. The action is SetShilohRoot. The error is 2 (The system cannot find the file specified.)


Am I supposed to do something to the cluster prior to performing the uninstall?


Thanks, Dave

View 3 Replies View Related

Uninstalling MS Sql Server Management Studio

Apr 24, 2008

Hi there, I've been having a problem of being unable to connect to my DBs when I open them up in Sql Management Studio Express. First I thought that the DBs were corrupted however, I picked up signs that this may not be the case. There is a chance that it is a problem with the Management Studio. Thus instead of uninstalling SqlExpress I want now to uninstall only the management studio.

My problem started after I attempted to connect my Sqlxpress DBs with my VS2008. In the Server Explorer window there is an option to display Sql Express DBs, so I made an attempt. After that when i tried open the same DBs in the management studio I began getting numerous errors.

I ran a thread to resolve it but nothing helpful transpired.
Now, I attempted to uninstall the Management Studio via Start==>Control Panel==>Programs==>Uninstall Programs. Iam running Vista Ultimate. The problem is that when I attempted to uninstall it the system said that I do not have the administrative rights. There is no way to right click on the menu item and confirm the administrative rights.

I have two options:

(1) To find out the uninstall exec for the Management Studio and run it thru cmd cmd prompt as administrator.

(2) To invoke the window GUI for Uninstall programs thru cmd prompt and do the same. For that I need to find the exec or msc file that generates the GUI. I am now going to try to find this out.
In the meantime, if anybody knows the name of the file that uninstalls Sql Management Studio Express, please let me know.

Thanks.

View 3 Replies View Related

Uninstalling Sql Server 2005 From My Computer?????

May 7, 2008

i am having some issues..hopefully someone can help me..i just finished my database class...we had to install sql server 2005...i am running windows xp home...when i went to install sql...there was one error that i was getting...it was about the iis function, which i know that it won't work with the home edition...i finished the install, without the iis, so i can try to work on some things for class...i also had to install northwinds and pubs...now that the class is over, i want to get rid of it all...i tried to follow somewhat of the uninstall process but now i am getting problems...i can't figure out how to uninstall the northwinds and pubs..it keeps saying that it is being used by another person or program and it won't let me uninstall....can someone what me through the uninstall process of both the northwinds, pubs, and all of sql server 2005...i don't know much about computers....thanks you so much for helping in advanced...
crystal

View 4 Replies View Related

Installing &&amp; Uninstalling SQL Server Express With Installshield

Dec 10, 2007

Hi

I am trying to install SQL Server Express from command line, without much success. For install, I am using:

Setup /qb INSTANCENAME=SQLEXPRESS ADDLOCAL=SQL_Engine,Connectivity,SAPWD=xxxxxxx

This installs, but SA does not seem to have SA privileges.

I try to uninstall,

Setup /qb REMOVE=ALL INSTANCENAME=SQLEXPRESS

This does not uninstall, even with a reboot.

I have 2005 client tools installed on my machine as well.

Any suggestions?
Thanks
Jim

View 2 Replies View Related

Uninstalling SQL Server 2005 64-bit In Clustered Environment

May 20, 2008

I am running into an issue trying to uninstall SQL Server 2005 64-bit. It hangs at the same point: Removing backup files. I then get a message that, "The setup has encountered an unexpected error while Completing Commit. The error is: The cluster resource cannot be moved to another group because other resources are dependent on it." The instance that I am trying to uninstall is in a cluster hosting two other SQL Server installations. I have tried a few combinations when attempting to uninstall: running the cluster group containing the server I am uninstalling on a different cluster node than all the other cluster groups; running them all on the same node. The only one I haven't tried is moving the Cluster Group containing the IP address of the cluster, cluster name, etc to another node while running the other groups on the other node. Has anyone run into this issue? Each of the nodes has been rebooted several times during these attempts and we are using Windows Server 2003 Clustering. Again, the hang happens at the same point every time. The exact error(s) from the even log are as follows:


Product: Microsoft SQL Server 2005 (64-bit) -- Error 29528. The setup has encountered an unexpected error while Completing Commit. The error is: The cluster resource cannot be moved to another group because other resources are dependent on it.




Product: Microsoft SQL Server 2005 (64-bit) -- Error 29530. Failed to set registry settings for server network libraries. The action is SetShilohRoot. The error is 2 (The system cannot find the file specified.

)

Thanks,

Todd

View 6 Replies View Related

SQL Server 2008 :: Restoring A Database / Server Using A Remote Server As The Service Call?

Jan 4, 2013

if you can restore a database to Server B using Server A as the service. Meaning we would issue the command on Server A but somehow point to Server B as where we want the restore to happen.

The backup file would be in a location independent of both servers.

View 4 Replies View Related

Restoring Databases

Nov 28, 2000

I am fairly new to SQL Server and have a question about restoring a database . If a server that contained SQL Server was totally destroyed, and we have backups stored on an external server, how do we restore these backups. I am assuming I would have to install a new instance on the server we buy to replace the destroyed one. Once installed how do I convince or tell SQL Server that there are backups out there. I could move the archived backups back to the new server, but how do I point the new instance of SQL Server to these backups? Thanks in advance for any help.

View 1 Replies View Related

Restoring Databases

Jan 10, 2007

Guys,I need to restore a database which is 400 GB plus. Usually a normalrestore from a backup file takes about 40 minutes. I have a databaseCompany on a server A. I need to use the backup of database company torestore as company1 on the same box. At the end, company and company1would reside on the same box. Is there any way to do it faster than anormal restore???Thanks in advance.RegardsJaideep

View 3 Replies View Related

Help With Restoring Databases

Nov 15, 2007

I try to restore a database but I receive the message "...the database is compressing. Uncompress the database and try again..."
In the original system (MSQL 2003) the backup is doing by the utility "backup"
In my personal system (MSQL 2005) I use the restore utility
Notice that I don't use winzip, winrar or other compressing software
Can anybody help me?
Thanks in advance

View 3 Replies View Related

Restoring SQL 7 Databases To SQL 2000

Jun 17, 2002

I would like to know if its OK to restore a SQL 7 user database to SQL 2000.

I have looked into Books On Line, with no success.

Anyone know where I might find some documentation on this topic?

Many thanks in advance.

Gary Andrews

View 1 Replies View Related

Restoring Multiple Databases From Single BAK?

Oct 24, 2013

I have a single .bak file containing full backups of 20+ databases.

Whats the best way of creating and restoring these database onto an instance on a separate server.

note that this is to migrate the whole instance of sql server onto a newly build server.

View 1 Replies View Related

Restoring Encrypted Databases Between Different Servers

Jun 20, 2007

Hello:

I'm working with two sql servers instances, ServerA and ServerB, which run under two different service accounts on different machines. They both have a database, DatabaseA, that has some encrypted fields.

If I take a backup of DatabaseA on ServerA and restore it on ServerB, I need to re-encrypt the Database Master Key (DMK) with the Service Master Key (SMK) as follows:

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'pwd used to encrypt DMK'
ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY

However, if I again take a backup on ServerB and then restore it on ServerA, I can use the DMK on ServerA without re-encrypting it with the SMK.

Shouldn't I have to re-encrypt the DMK with the SMK everytime I restore from a backup that was generated from a different server?

Thanks,
Cyndi







View 1 Replies View Related

Restoring Databases In Sql 2005 Express - Filename Changes?

Mar 22, 2008

Hello,
Does anyone else ever experience this problem, and if so do you know what causes it:
When ever I restore a database called say XXX.mdf, it restores OK and I can view via MSE as XXX.mdf. Then when I visit MSE again there is another database called C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLDataXXX.mdf - both are linked to the same .mdf file, however if you try to expand XXX.mdf nothing happens as though the database has been detached?
Cheers MArco

View 3 Replies View Related

Question On Restoring Encrypted Databases On Different Servers

Jul 3, 2006

I have run into problems trying to use backed-up encrypted databases. I have an ASP.Net/SqlServer 2005 website for which I have production, test, and development environments, each on its own box. I have set up encryption using Master Keys, Certificates, and Symmetric Keys using the following commands:

CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'password'

CREATE CERTIFICATE CERTIFICATE_NAME WITH SUBJECT = 'My Website'

CREATE SYMMETRIC KEY KEY_NAME WITH ALGORITHM = TRIPLE_DES ENCRYPTION BY CERTIFICATE CERTIFICATE_NAME.

All databases have the same certificate and symmetric key names. The Production database has a different password than the development and test databases.

I am running into problems when I back up the development database and try to move it to the test environment. When I do the move, and then try to access the encrypted data, I get an error "An error occurred during decryption", even though they are the "same" database (I originally detached and copied the development database to the test box when I set up the test environment) with the same password.

I then try the following commands, which I used when I brought the development database over to the test box the first time:

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'password'

ALTER MASTER KEY REGENERATE WITH ENCRYPTION BY PASSWORD = 'password'

This caused the following error:
"An error occurred while decrypting certificate 'CERTIFICATE_NAME' that was encrypted by the old master key. The FORCE option can be used to ignore this error and continue the operation, but data that cannot be decrypted by the old master key will become unavailable."

So, how do you set up encrypted databases so that you can backup from one database server and restore on another? This problem will be very important when I set up a backup production database server.

View 12 Replies View Related

Restoring Multiple Databases From A Single Backup

Jan 16, 2008

I have a backup that contains multiple databases. I am restoring it to a different server. How do I restore each database? Tried to restore under SQL Server Management Studio, but can only restore one of many from the backup (it appears it has only 1 logical file name in the backup) If you can refer me to a web page that would be great. I tried googling the topic but nothing seems to come up.

View 5 Replies View Related

Moving And Restoring Connections W/ SQL 2005 Databases

Dec 27, 2007



I have a question regarding moving databases within the same server but to a different drive. Using the 'Alter Database' query transaction procedures within the SQL Server Management Studio, I'm able to take a user database offline and move it. However, when using the Alter transaction to bring the database back online, I get errors. There was also an attempt that seemed to work, but the app that uses the database through ODBC can't see the database that was moved and errors out.
How can databases be moved and connections re-established within the same server?
Thanks...

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved