Unix Technical Forum

.bak file format?

This is a discussion on .bak file format? within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi. I was wondering if anybody could piont me to a reference for the .bak file format. I need ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:42 PM
jims
 
Posts: n/a
Default .bak file format?

Hi.

I was wondering if anybody could piont me to a reference for the .bak
file format.

I need to upload a huge amount of data from a unix machine into an MS
SQLServer database and have tried lots of different things with mixed
results.

I occurs to me that if I can generate a .bak file on the unix side,
move it over to the MS side and 'restore' the database, that would
probably be the fastest possible method.

Thanks,

-jim

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:42 PM
aj
 
Posts: n/a
Default Re: .bak file format?

Assuming that you are referring to the MS-specific binary .bak DB backup
file format, I would be very surprised if MS releases those types of
details. It could/would prevent them from changing the format..

Even aside from this, generating a .bak file on the Unix side is
unlikely. There are potential big-endian, little-endian issues. You do
know that SQL Server runs only on Windows, yes?

Is there another DB on the unix side? Could you hook up to it as a
linked server w/ an OLE DB driver or something?

I would export in ascii delimited CSV format or something, and then
import into SQL server w/ the integration services import/export wizard.

hth

Allen Jantzen

jims wrote:
> Hi.
>
> I was wondering if anybody could piont me to a reference for the .bak
> file format.
>
> I need to upload a huge amount of data from a unix machine into an MS
> SQLServer database and have tried lots of different things with mixed
> results.
>
> I occurs to me that if I can generate a .bak file on the unix side,
> move it over to the MS side and 'restore' the database, that would
> probably be the fastest possible method.
>
> Thanks,
>
> -jim
>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 03:42 PM
jims
 
Posts: n/a
Default Re: .bak file format?

Allen,

Thanks for the response. I had forgotten about byte ordering/native
formats.

But your two suggestions are much appreciated.

-jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-01-2008, 03:42 PM
Erland Sommarskog
 
Posts: n/a
Default Re: .bak file format?

jims (jim@asrc.cestm.albany.edu) writes:
> I was wondering if anybody could piont me to a reference for the .bak
> file format.
>
> I need to upload a huge amount of data from a unix machine into an MS
> SQLServer database and have tried lots of different things with mixed
> results.
>
> I occurs to me that if I can generate a .bak file on the unix side,
> move it over to the MS side and 'restore' the database, that would
> probably be the fastest possible method.


It would take you ages until you have produced that .bak file. Your data
will be stale by then.

The fastest way to load lots of data into SQL Server is bulk copy. You have
a lot more options if you first put the file in a place where you can access
it from Windows. The simplest is probably to use the command-line tool
BCP. You need to format the data in a way so that BCP can read it. (But
BCP is flexible.)




--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:53 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com