Showing posts with label files. Show all posts
Showing posts with label files. Show all posts

Friday, March 23, 2012

Media Family ... Is Incorrectly Formed

I am using SQL Server 2000 SP 3a enterprise. We do a nightly backup to
a
network location and then in the middle of the night the files are
written to
tape from the network. We have verified our backup plan will work by
choosing a backup and restoring it to the database. We have done this
many
times without problems. However, there is a backup that when I try to
restore it I get the Error:
Server: Msg 3241, Level 16, State 37, Line 1 The media family on device
'UNC
Path.bak' is incorrectly formed. SQL Server cannot process this media
family.
I have run the command: RESTORE HEADERONLY FROM DISK='UNC Path.BAK'.
The
backupName from this says *** INCOMPLETE ***; Position = 1; the rest of
the
fields are NULL.
What would happen to make the backup INCOMPLETE? Maybe this would
happen if
an error was encountered part way throught backing up the file? The
file has
almost 800 MB of data in it. I would like to restore this file and get
out a
specific set of records if possible. Even if I can't get everything,
if I
could get at least some of it then that would be better than a complete
loss.
Is there anyway to get the data that is contained in the file back?
Thank you
KalvinHi
A bad backup is a bad backup, not much you can do with it. Maybe opening a
call with Microsoft PSS might help as they may have tools to read partial
backups.
Regards
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Kalvin" wrote:

> I am using SQL Server 2000 SP 3a enterprise. We do a nightly backup to
> a
> network location and then in the middle of the night the files are
> written to
> tape from the network. We have verified our backup plan will work by
> choosing a backup and restoring it to the database. We have done this
> many
> times without problems. However, there is a backup that when I try to
> restore it I get the Error:
> Server: Msg 3241, Level 16, State 37, Line 1 The media family on device
> 'UNC
> Path.bak' is incorrectly formed. SQL Server cannot process this media
> family.
> I have run the command: RESTORE HEADERONLY FROM DISK='UNC Path.BAK'.
> The
> backupName from this says *** INCOMPLETE ***; Position = 1; the rest of
> the
> fields are NULL.
> What would happen to make the backup INCOMPLETE? Maybe this would
> happen if
> an error was encountered part way throught backing up the file? The
> file has
> almost 800 MB of data in it. I would like to restore this file and get
> out a
> specific set of records if possible. Even if I can't get everything,
> if I
> could get at least some of it then that would be better than a complete
> loss.
>
> Is there anyway to get the data that is contained in the file back?
>
> --
> Thank you
> Kalvin
>

Monday, March 19, 2012

Meaning of TextQualified attribute in flat file connections

Can anybody explain what the meaning of the TextQualified attribute on a flat file connection is? I am importing delimited flat files where text columns are not qualified by quotes. If I use the Suggest Types button in the Flat File Connection Manager Editor, it sets TextQualified to True for all columns. Importing works fine than, but it also does with TextQualified = False. So what's the difference?

Hans Geurtsen.

If TextQualified=TRUE then a string surrounded by quotes will get interpreted as just the string. In other words the following 2 entries in the file will be loaded as the same:

ThisIsAString
"ThisIsAString"

So it depends on the nature of your data as to whether the TextQualified property has any effect or not.

-Jamie

Monday, February 20, 2012

MDX Offline Cube creation after SP2

Hello-

We are using MDX queries to create offline cubes. After installing SP2 for SQL 2005 the cube files generate but through an error when opened. The error I receive is :

'Unable to obtain list of tables from the data source'

Has anyone else run into this issue?

Thanks-

Tristan

Just some additional information :

Here is an example of the MDX we are using to generate the offline cubes

CREATE GLOBAL CUBE [EE EVENTS CUBE]

STORAGE 'c:\Event.cub' FROM [EE EVENTS CUBE]

(

MEASURE [EE EVENTS CUBE].[Event Count],

DIMENSION [EE EVENTS CUBE].[EE Event Template Type Dim].[Event Type]

(

LEVEL [(All)],

LEVEL [Event Category Text],

LEVEL [Event Template Type Text]

),

DIMENSION [EE EVENTS CUBE].[EE Location Dim].[Location]

(

Level [(All)],

Level [Corporate Abbrev] AS Coporation,

Level [Region Abbrev] AS Region,

Level [District Abbrev] AS District,

Level [Facility Abbrev] AS Facility,

Level [Unit Name] AS Unit,

Member [EE Location Dim].[Location].[Corporate Abbrev].&[Corp1]

) ,

DIMENSION [EE EVENTS CUBE].[EE DATE DIM TWO YEAR VIEW].[Dates]

(

LEVEL [(All)],

LEVEL [Year_number] AS Year,

LEVEL [Month Of Year Display] AS Month,

LEVEL [Day Of Month Number Padded] AS Day

)

)

Any help would be appreciated.