LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-15-2005, 11:19 AM   #1
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 330

Rep: Reputation: 30
File says it's data, so what do I do with it?


Hi!

I have this file called:
CVendu_db_200405251319.BAK

According to: file CVendu_db_200405251319.BAK it is "data".

the first couple bytes as seen from VI are
TAPE^@^@^C^@~L^@^N^A^@^@^@^@^@^@^@^@^@^@^@^@^@

I have a second file, that was probably created using the same method as the first.

According to file:
Forum_db_200405291319.BAK: data

The first file is 100mb the second is 2 mb.

According to vi the second file starts with:
^@^@^B^A^A^@^@^@^@^@^@^@Z^@^

I am so totally stumped. I need these files opened. I am pretty sure that they are backups of databases. Because the CD the guy gave me has a website coded in ASP and these two files. (Also they say db in the name).

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.ConnectionString = "DSN=CVendu"
That is how it is referenced.

The data, however it is stored, was originally a SQL database.

I found many SQL statements in the ASP code such as objRS.Open "SELECT @@IDENTITY AS Test",
objConn, 1, 3, 1

So how is it saved? Unfortunatly I do not know which SQL server was used. Wether it was mySQL or Micro$oft SQL Server. I would appreciate any thoughts on the situation.

(It is neither a Gzip, Tar, Bz2 or ZIP file. I tried these. Windows XP does not recognize it as a backed up file).


Thanks,

David
 
Old 03-15-2005, 11:43 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
ADODB
Been a while since I've mucked about with winDOHs
programming, but I think ADO is an abstraction layer
that will pretty much allow you to treat near everything
as if it were an SQL database ... for all I know the file
you're accessing may be Access, Excel or any other
product. From the interpretation of vi one can't tell too
much, either, maybe if you use a binary editor and
copy and paste?

I'd suggest you just ask "the guy who gave you the
CD" what the stuff was made with, though ;)


Cheers,
Tink
 
Old 03-15-2005, 05:56 PM   #3
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
SELECT @@IDENTITY

is microsoft sql server for returning the last autoinc key used from the last INSERT statement. if that's code that uses the database, its sqlserver alright.

And you'll have to figure out sql server administrator to restore the backup... and its not easy. the menu option to restore a file is burried like 18 levels deep. (*I found it once, and it wasnt obvious*)

-Andy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
c++ append data to file blizunt7 Programming 3 07-04-2005 12:47 AM
using DD to pull records out of a data file fhinkle Linux - Newbie 6 02-24-2005 04:20 PM
echo data in to a file xlord Linux - Newbie 3 05-29-2004 12:19 PM
reading data from a file afrm Programming 2 12-16-2003 07:43 PM
Capturing tty data to a file svaujin Linux - Newbie 2 04-03-2001 09:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration