Data Restore On Elm Street!

Jul 20, 2005

Hi all, a bit of a nasty one here!

Ive inherited a server that has just collapsed. It contains SQL Server
and has a fair amount of data on it.

The server would only boot into a BSOD Stop Error. I suspected that
one of the hives in the registry was corrupt so I used the Win2K
Recovery Console to restore the registry to its original settings (So
Windows can not see the SQL stuff now). There is no restore points
from which to take recent registry settings.

My Question is this...

We have a spare server (just lying about you know!!!) which we plan to
install Win2K and MS SQL Server onto... How can I transfer the data,
in a nice easy manner, from the old server to the new server?

Is it possible to move just the data files into the new install?

Remember I inherited this server! (I dont have Backups!!!)
Please... No email's about how important backups are... I know how
important backups are.

Any help/ideas would be appreciated.

Thanks, John T.

View 3 Replies


ADVERTISEMENT

Dts Parsing Street Name

Aug 1, 2006

hi, im running into a bit of a problem. i will like to string parse the street name into what you see below using DTS. How can i get around this?

12 north plaza boulevard apt.16

12|N|plaza blvd| apt16

View 10 Replies View Related

Get Numbers In Front Of Street.

Dec 14, 2006

After reading performance tuning articles and stuffs. Im getting confussed about writing my queries. One point says don't use 'not in' instead use 'not exists'. But looks i cant implement that in my query.

I'm trying to get only the decimal numbers. not the fractions.
my question is if this is the best query? Inputs will be appreaciated.




declare @table table (tableid int identity, ad_str1 varchar(100))
insert @table
select '2 NORTHPORT AVENUE' union all
select '22 NORTHPORT AVENUE' union all
select '233 NORTHPORT AVENUE' union all
select '2433 NORTHPORT AVENUE' union all
select '2 1/2 NORTHPORT AVENUE' union all
select '22 1/3 NORTHPORT AVENUE' union all
select '233 1/4 NORTHPORT AVENUE' union all
select '2433 1/8 NORTHPORT AVENUE' union all
select '2a NORTHPORT AVENUE' union all
select '22a NORTHPORT AVENUE' union all
select '233a NORTHPORT AVENUE' union all
select '2433a NORTHPORT AVENUE' union all
select '2 a NORTHPORT AVENUE' union all
select '22 a NORTHPORT AVENUE' union all
select '233 a NORTHPORT AVENUE' union all
select '2433 a NORTHPORT AVENUE' union all
select 'a NORTHPORT AVENUE' union all
select '15 e NORTHPORT AVENUE' union all
select '15 n NORTHPORT AVENUE' union all
select '15 s NORTHPORT AVENUE' union all
select '15 w NORTHPORT AVENUE' union all
select '15 c & k north avenue' union all
select '1/3 NORTHPORT AVENUE' union all
select '93 H ROAD'


select tableid, ad_str1, left(ad_str1, charindex(' ', ad_str1))
from @table
where left(ad_str1, charindex(' ', ad_str1)) not in ('1/2','1/3','1/4','1/8','2/3','3/4')
and isnumeric (left(ad_str1, charindex(' ', ad_str1))) = 1

View 1 Replies View Related

Bit Off Topic: Street Name Database US

Sep 23, 2005

I'm thinking of doing some basic parsing of address. I want to seprateout the house number from the street name from the suffix. I have thesuffix's from the USPS, but I cant find a database of US street names.Anyone come across one or know where I can get one?TIARob/end off topic

View 2 Replies View Related

Remove The String In Front Of Street

Aug 7, 2006

street_name
---------------------
1A HAYES ST
11a yONU STREET


i need to parse off watever is in front of the street_name. anyone
has any approach>?

street_name
-------------
HAYES ST
yonu street

View 10 Replies View Related

How To Query A Number (street Number)...

Jul 30, 2007

I have a table that has a street number field.
if the user types in a street number of '2' i would like to return all street numbers the begin with 2 (2,20,21, 200, 201,205,2009,...)
how can this be done.

View 10 Replies View Related

Data BackUp And Restore

Jul 23, 2007

hi,        pls tell me any step by step tutorial (with graphic presentation) to restore and backup the database on sql server 2005. thank you. 

View 1 Replies View Related

Restore Data From .Mdf And .Ldf For SQLserver 7.0

Dec 23, 1999

Hi all,

Since my daily backup failed, I need to restore a database
from .mdf and .ldf files so that i can get all the transactions.


Thanks for your help

Sanjeev Kumar

View 1 Replies View Related

Help With Restore Data Warehouse

Feb 27, 2008

Hi all,

I am trying to restore my data warehouse from a January 2008 backup under a new name to recover a table that I accidentally deleted. It is taking a long time for the restore to get done. Here is the command I am running as sa in QA

---

RESTORE DATABASE Warehouse_new FROM DISK = 'H:MSSQLDataMSSQLBACKUPDBBackupsWarehouseWa rehouse_db_200801050600.BAK'
WITH
MOVE 'Warehouse_Data' TO 'G:MSSQLDataMSSQLDataWarehouse_New_Data.MDF',
MOVE 'Warehouse_Log' TO 'H:MSSQLDataMSSQLLogsWarehouse_New_Log.ldf'

----

There Warehouse_New_Data.MDF is 375 GB and the log is 12 GB.


There is still 169 GB of free space on the drive I am restoring to after the presence of Warehouse_Data.MDF and Warehouse_New_Data.MDF (each 375 GB).

Its been 4.5 hrs and the restore is still running. Backups take about 3.5 hrs to complete. Can I do any checks on the restore to see what point it is at? I stopped the restore using EM earlier after it took 8 hours and still no progress.

Please advise.

Thanks.

View 1 Replies View Related

No Backup To Use To Restore Data

Jul 11, 2007

I have a problem i set old backup for my database all the new data gone any one know how to reset database to specific date that before the day i restore the old data
i know it may be impassable

View 7 Replies View Related

How Can I Restore My Data After Nt Server Crash?

Jan 22, 2001

NT server 4.0 crahsed. And there was no emergency repair disk. So, I copied all MS SQL server7.0 data files. After that i created new partition, formatted and installed Nt Server and SQL server 7.0. But how can i restore my old data? Please tell me what to do now?

View 1 Replies View Related

RESTORE DATABASE FROM JUST DATA FILE

Jun 4, 1999

DOES ANYONE KNOW HOW I CAN RESTORE A SQL7 DATABASE WITH JUST THE DATA FILE?
THERE IS NO GOOD BACKUP OF THE DATABASE AND THE LOG FILE IS MISSING. THE CLIENT THOUGHT THEY WHERE BACKING UP THE DATABASE BACKUP FILE TO TAPE, BUT THEY WHERE NOT. THE BACKUP FILE WAS BEING OVERWRITTEN EVERY NIGHT. THE LAST NIGHTS BACKUP DID NOT GET TO FINISH TO COMPLETION.
PLEASE, ANY INPUT WOULD BE APPRECIATED.
THANKS,
TIM

View 1 Replies View Related

Restore Data In Windows Server

Feb 14, 2006

Dear database gurus out there,

Not sure if this thread has been discussed before but I dont seem to be able to locate any. :confused:

Can any gurus kindly tell me the followings:

1) I have just installed Oracle 9i ver 9.2.0 into a Window XP Server. Everything went smoothly.

2) I have to load in the DBF files, how am i going to restore the data to the database?

3) Actually these DBF files were copied from another XP server. So I was thinking how to create the control files?

I'm kinda stuck here so would really appreciate some form of help here. Many Thanks.

wee

View 2 Replies View Related

Restore Deleted Columns With Data

Jan 20, 2007

I need to restore a single table which one of my developers has deleted two columns from that table with all datas.

The copy of that database is on another server ,if some one can show me through EM, a step by step i will appreciate.

Thank you.

View 4 Replies View Related

Question On Data/structure Restore

Sep 20, 2006

new to SQL Server 2000. We have an obsolete database that we need to
save off for x number of years. DB2 has utilities (DB2Look/Export)
that allows for the export of the data along with a schema and script
that enables the future recreation of the structure of the databases
and tables to include RI etc. You can save off the architecture and
relationships of the tables as well as the data.

Does SQL Server have anything similar?

Failing that, our plan is to backup the data and logs then image the entire disk.

Thanks in advance.

Gerry

View 8 Replies View Related

How To Compress Data At Restore Time

Aug 17, 2015

Is it possible to compress the data at restore time?.

Backup is coming from a not compressed database.

The backup file is compressed.

View 4 Replies View Related

Can't Restore To Custom Data Folder

Jun 3, 2008

I am having a problem with a client's MS SQL Server 2005. When doing a restore, SQL will not allow me to restore to the database mdf and ldf files outside the SQL root folder (C:Program FilesMicrosoft SQL Server). I want the data and log files to be on a separate disk with plenty of disk space. When I created the database, SQL allowed me to create the mdf and ldf files in the E:Data SQL ServerData folder. But when I perform the restore SQL reverts to the C:Program FilesMicrosoft SQL ServerMSSQL.1MSSQLData folder. I am specifically redirecting the mdf and ldf files to the custom folder by clicking on the button (...) to change the folder.

I have tried creating a new SQL Server instance and uninstalling and reinstalling SQL Server to no avail.

How can I force the restore task to restore my database to the custom data folder location?

Thanks

View 10 Replies View Related

Question On System And Data Restore

Sep 20, 2006

new to SQL Server 2000. We have an obsolete database that we need tosave off for x number of years. DB2 has utilities (DB2Look/Export)that allows for the export of the data along with a schema and scriptthat enables the future recreation of the structure of the databasesand tables to include RI etc. You can save off the architecture andrelationships of the tables as well as the data.Does SQL Server have anything similar?Thanks in advance.Gerry

View 3 Replies View Related

Restore / Recover SQL Database From Data File

Feb 24, 2002

Our SQL database log file got physically deleted. Now the database is in suspect mode. Is it possible to recover / restore the database just with the data file.

View 3 Replies View Related

How To Restore Data From A Device File On The Harddisk

Aug 27, 1999

i had to fromat the harddisk for some reason , but took a backup of the data device file . is it possible to recover tha data from them .

View 1 Replies View Related

Restore Data From Live System To Test

Jun 16, 2015

I have two SQL Databases on separate servers, live and test. I have been asked to copy the data from the live system and put it into test. They are SQL Management Studio 2008 running on MS Server 2008R2.

Could a simple backup of the database, then copy that file to the test system and restore the database from that point work or it there more to it?

View 3 Replies View Related

Restore Data But Maintain Replication Settings?

Jun 17, 2008

We are setting up the clients' database with transactional replication that allows the subscriber to send updates by pull subscriptions.

The plan is to create a second database so the users can keep working on the original database while we get the replication set up and working. Once we feel confident that the replication is working on the second database, the plan was to backup the old one, then detach it, and then restore the new database with the latest data from the old one. My question is whether this would preserve all the replication configurations that we set up? Since the replication adds a column to each table what would happen to that column? Or what is an alternative, which would allow us to set up the replication without disturbing the user's work, and then implement the replication with the latest data?

I am also wondering how to set the synchronization to happen once daily? I do not see where I can set that. I only see options for continuous vs on demand. Does on demand mean I can somehow schedule with an external program to run once a day?

Thanks for your patience, and I hope my questions make sense.

View 11 Replies View Related

Restore New Database And Recover Data From Backup

Jun 13, 2014

I created a new database and want to recover data from a backup this script

use master
go
restore database new
from disk='D:
ew.bak'
go

but get an error

Message 3141, Level 16, State 0, Line 1

The database to be restored was named 'ats342'. Reissue the statement using the WITH REPLACE option to overwrite the 'new' database.
Message 3013, Level 16, State 1, Line 1
RESTORE DATABASE is terminating abnormally.

View 1 Replies View Related

DB Engine :: How To Restore Only Last 1 Or 2 Months Data In Server

May 12, 2015

I have 5 TB of data in production and my development team requested to restore only last month data(<=500 MB ) in staging server and last 2 months data in pre production.

View 3 Replies View Related

Secondary Data File Extension Changes To Mdf After Restore

Apr 18, 2007

i have sql server 2000 db with two data file... primary data file has extension mdf and secondary file has extension ndf (as per microsoft recommendation)..



when i try to backup the db and restore thru the enterprise manager .. in the restore -> options window ... i see both the files has the same extension mdf.. and when the restore completed, the new database still has extension mdf for both the file..



why this behaviour?



* i even try to create a new test db with two files, still its the same behaviour.

View 10 Replies View Related

Restore To New Db Restores Less Data Than What Is In The Source Backup File

Jan 25, 2006

I am trying to create sql code that restores a backup of a master database to a new database on the same server. It “seems” to run correctly as no errors are produced. However, the most recent updates to the master database are not present in the new databases. All databases are using the Full recovery model. What is really strange is that if I do (what I think is) the same function in Enterprise Administrator, the restore works fine! For both methods I used the same backup file!



Any and all help is sincerely appreciated.


The master databases from which the backups are made start with “MODTRNMaster”

The databases which are created from the restores start with “M1_” and “M2_”. (We call them training room databases.)



My script for backing up the master databases:



-- Backup the master training database

backup database MODTRNMaster
to disk = 'f:kupMODTRNMaster.bak'

backup database MODTRNMaster_IMG
to disk = 'f:kupMODTRNMaster_IMG.bak'

backup database MODTRNMaster_MNC
to disk = 'f:kupMODTRNMaster_MNC.bak'

backup database MODTRNMaster_VM
to disk = 'f:kupMODTRNMaster_VM.bak'

go


This is the restore script for restoring the first training room databases. I’m hoping that there is just something simple that I’m overlooking in these restore statements! J



-- Restore the backup of the master training database into the

-- training room #1 database.

use master
go

drop database M1_MSLH
go


restore database M1_MSLH
from disk = 'f:kupMODTRNMaster.bak'
with move 'DEV5_Data' to 'f:mssqldataM1_MLSH.mdf',
move 'MM' to 'f:mssqldataM1_MLSH_1.mdf',
move 'AMB' to 'f:mssqldataM1_MLSH_2.mdf',
move 'DM' to 'f:mssqldataM1_MLSH_3.mdf',
move 'IMM' to 'f:mssqldataM1_MLSH_4.mdf',
move 'ED' to 'f:mssqldataM1_MLSH_5.mdf',
move 'DEV5_Log' to 'f:mssqllogM1_MLSH_log.ldf',
recovery

go



Thanks in advance

:eek:

:eek:

View 5 Replies View Related

Data File Growth Afer Restore On 2005

Oct 15, 2007

Hi at all,
first post....first help :P .
I hope to help another one (basing on my knowledge) in the next future :)

I'm a beginner dbadmin and I'm looking for help regarding a strange fact relative SQL Server 2005 :)

I migrated a medium(3,5GB) database from sql server 2000 to sql server 2005.
I made a backup in sql server 2000 (it has generated a 3,5GB BAK FILE) and I restored it in sql server 2005 on another server. (I didn't checked data file size).

I configured (with wizard) a maintenance plan on new sql server 2005 with these steps (in this order):
(tellme if the order of the steps is wrong :))

1) check db
2) rebuild index
3) reorganize indexes
4) update statistics (all table and all views)

I planned the maintenance plan on 3a.m. and I went home.

Next day I found that data file (MDF) on sql server 2005 was 22GB large!!
I made a shrink DB but there wasn't free space to erase. It seems there are
22GB of data.
(the data inside is the same of the sql 2000 server..same records same
table...identical, non change of data in the meanwhile)

How is it possible? What am I doing wrong?
I don't understand what can caused the growth of the file, the maintenance plan or the restore? (unfortunately....I didn't checked size after restore...I checked it only the next day).
May be the statistics? (there wasn'int update statistics job on old maintenance plan on sql server 2000)

Thanks in advance :)
Bob

View 20 Replies View Related

How Do I Restore Sql Server Database Primary Data Back .mdf

Feb 12, 2007

 
Hello guys
My server crashed  but luckily  I was not able to get back my files with help of recovery software.
Now, all I have from the database are just sql server database primary data .mdf and sql server databaseTransaction Log Files .ldf. I need to restore  these data back to sql server.

Please could someone tell me how to restore these two file types back to my sql sever 2007 database?
Thanks
netboy
 
 

View 3 Replies View Related

Reporting Services :: Cannot Click Restore Button In RS Configuration Manager To Restore Encryption Key

Oct 29, 2015

While migrating Report services in SQL Server 2005 to 2014, I am trying to restore the Encryption Key in RS Configuration Manager in2014. But I cannot click the 'Restore' button in RS Configuration Manager. So if I should be grant more right to do so or any other action?

View 2 Replies View Related

SQL Server Admin 2014 :: How To Do System Restore To Previous Restore Point

Dec 31, 2014

In Windows Server 2012. How do I do a System Restore to a previous restore point?I need to install the 64 bit and 32 bit Oracle Client Install for connections in SSIS and to create Oracle Linked Servers.

If you make a mistake it is not fun removing it. Sometimes it corrupts the machine and it is difficult to uninstall since there is not an Oracle Universal installer for Oracle 11g.If you install the 32 bit before the 64 you mess up the machine.how to create a restore point.

View 6 Replies View Related

SQL 2012 :: LocalDB Cannot Restore A Backup Whose Original Data And Log Files Are In Different Folders

Dec 29, 2014

LocalDb cannot restore a backup whose original data and log files are in different folders

[URL]

View 1 Replies View Related

Data Access :: Error On Restore Database From Prod To Reporting Server

Aug 31, 2015

I'm having an issue to restoring database from prod to report server. I'm getting following error.

When I did Manually I got first error as below.

Msg 233, Level 20, State 0, Line 0 A transport-level error has occurred when sending the request to the server. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

This is the second error

Msg 3044, Level 16, State 1, Line 37
Invalid zero-length device name. Reissue thestatement with a valid device name.
Msg 3013, Level 16, State 1, Line 37
RESTORE DATABASE is terminating abnormally.
Msg 5011, Level 14, State 5, Line 45
User does not have permission to alter database 'XeP', the database does not exist, or the database is not in a state that allows access checks.
Msg 5069, Level 16, State 1, Line 45
ALTER DATABASE statement failed.

Script Which I used.

USE Master;
GO 
SET NOCOUNT ON

-- 1 - Variable declaration
DECLARE @dbName sysname
DECLARE @backupPath NVARCHAR(500)

[Code] .....

View 26 Replies View Related

Transact SQL :: Backup / Restore Tools Which Can Restore Multiple Environments

Jun 25, 2015

I am looking for a SQL Backup/Restore tools which can restore multiple environments.  Here is high level requirements.

1.  We have 4 DBs, range from 1 TB - 1.5 TB Each Database.  When we restore to QA, DEV, or Staging, we usually restore 4 of them.
2.  I am looking for the speed to complete restoring between 1 - 2 hours for 4 DBs.

I am evaluating the Dephix Software but the setup is very complex and its given us a lot of issues with Windows Authentions, and failure in the middle of the backup.  I used Guess Software many years ago but can't find it on the web site any more. Speed is very important for us mean complete restoring as fast as possible.  We are on SQL 2012 and SQL 2008 R2.We are currently using NETAPP Technology and I have Redgate Backup Tool but I am mainly looking for fast Restore Process.

View 4 Replies View Related







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