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

MS SQL server 7.0 restore/create

1
Problem :

I am maintaining a legacy application which is distributed with
a default database, loaded from a file called Master.dat.

I wish to update the values of 10 fields in 1 table.

I can restore a database from Master.dat within the (C++ and SQLDMO) app.

If I try to restore from command line osql, the restore fails :

C:\>osql -E -S xxxx
1> restore database tnmt002 from disk='C:\workspace\T1772\Q1772NMT\SourceCode\Co
mmon\TNMT_Release\UNICODE_Debug\Data\Master.dat'
2> go
Msg 3242, Level 16, State 1, Server xxxx, Procedure , Line 1
[Microsoft][ODBC SQL Server Driver][SQL Server]The file on device
'C:\workspace\T1772\Q1772NMT\SourceCode\Common\TNM T_Release\UNICODE_Debug\Data\
Master.dat' is not a valid Microsoft Tape Format backup set.
Msg 3013, Level 16, State 1, Server xxxx, Procedure , Line 1
[Microsoft][ODBC SQL Server Driver][SQL Server]Backup or restore operation
terminating abnormally.

If I save the database from within the application (to Master2.dat, say) , and then do a restore in osql, that works OK.

However, the original Master.dat, and the new Master2.dat show
considerable binary differences.
In particular, the first four bytes of the new file contain the ASCII characters 'TAPE'.
[Presumably the header for a valid Microsoft Tape Format backup set]
The databases appear to verify against each other when doing SQL object comparisons.

All I want to do is change the values of 10 entries in 1 table, and reissue
the software.
In my simplistic view of the universe, this would mean 10 bytes difference
between the original Master.dat, and the new Master.dat.

I am suspicious that if I distribute the new version of the file, I
will lose/break some existing behaviour due to either
a) Having run the database through a running application or
b) Made magical changes due to the new format of the backup file.

Does anyone have an explanation for the format difference, or
maybe a way of saving the modified database in the original Master.dat format ?
Or, a way of restoring from the "old" format - whatever that is ?
Mar 20 '06 #1
0 3861

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

Similar topics

2
by: Sue Swanson | last post by:
Yesterday I received a response to my CI/CS Collation problem and the recommendation was to try and restore a CI Collation database to a CS Collation database. After creating a blank CS database a...
1
by: Hai-Chu Hsu | last post by:
Hi, I want to restore my databases from the old SQL Server installation into a new installation of SQL Server. My new installation of SQL Server has different data path from the old...
2
by: SD | last post by:
Hi, Quick question, I have about 20 users in my local server and database. We are looking to restore that database to a new server in a new network and still be able to retain the database...
1
by: David McGeorge | last post by:
Coming more from Oracle background, I want to do a point in time recovery test on SQl Server. Let's say database PUBS backed up every night and Trans log backup 3 time every 6 hours between 6 a.m....
1
by: dschneiderman | last post by:
Hello All, I am not a SQL Server expert, but I have been put in a pretty precarious situtation and I am close to panicking :( I have need to restore a SQL database from backup (through...
3
by: anguo | last post by:
Hello, I need to set up a development platform at home with a copy of a DB from a SQL server at a friend's company. So far, all my attempts at backup/restore or export/import have failed...
5
by: shenanwei | last post by:
I have DB2 backed up to TSM from the production system. How can I use db2adutl to view the backup info from other server instead of production.
1
by: Kent.Brooke | last post by:
When a backup is taken from server a and then redirected restore is done on server b, the tables and data is fine however db2advis says "explain & advise tables not created for user x properly"....
4
by: TC | last post by:
Hello All, I apology for posting to many groups but I wasn't sure which group would be best targeted with my question. I have inherited an ASP.Net application that requires some maintenance &...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.