Showing posts with label clicking. Show all posts
Showing posts with label clicking. Show all posts

Tuesday, March 27, 2012

Dimension Wizard hangs

When I try to create a new dimension (from visual studio 2005) using the Dimension Wizard, after selecting the related tables and clicking next, visual studio hangs. CPU hits 100%. It seems to only happen when I add one particular table to the dimension. The only thing "special" about this table is that it has a many-to-many relationship with one of the other related tables. When I removed one of the relationships the dimension created successfully. Is this the correct behaviour? Should multiple relationship cause this kind of problem?

If you were trying to include a many to many relationship within the one dimension I would guess that the wizard is scanning your tables trying to figure out which attribute is the "parent" of the other (which does not make sense for a many to many relationship).

If you take the classic many to many example of bank accounts and account owners, in SSAS 2005 these are each separate dimensions and they are related by an intermediate measure group. Maybe you need to split your dimension up.

Friday, March 9, 2012

Differential Backup

Hello,
I am trying to do a differential backup but I have run
into a couple of problems.
I am doing this through the EM by right clicking the db
then selecting backup.
Firstly it doesn't actually seem to work. For a 7mb
database, the first backup is 7mb (which I agree with),
the second backup is also 7mb, rather than a smaller amout
with the difference.
Secondly I would like it to have different files for each
differential backup, currently it writes to one file, so
it keeps increasing from 7, 14, 21 mb.
Can anyone give me some pointers ?
Thanks
PeterPeter
1) Were there some activites in the database since last full backup
2) You will have to build the backup file by yourself .
SELECT @.FileName = 'D:\DatabaseName' + @.Date+'.bak'
BACKUP DATABASE DatabaseName
TO DISK = @.FileName
WITH DIFFERENTIAL
"Peter" <anonymous@.discussions.microsoft.com> wrote in message
news:151e01c3fbbc$37c5d000$a401280a@.phx.gbl...
> Hello,
> I am trying to do a differential backup but I have run
> into a couple of problems.
> I am doing this through the EM by right clicking the db
> then selecting backup.
> Firstly it doesn't actually seem to work. For a 7mb
> database, the first backup is 7mb (which I agree with),
> the second backup is also 7mb, rather than a smaller amout
> with the difference.
> Secondly I would like it to have different files for each
> differential backup, currently it writes to one file, so
> it keeps increasing from 7, 14, 21 mb.
> Can anyone give me some pointers ?
> Thanks
> Peter|||Peter,
I don't think that you will find that diff backup will save storage for such
small databases. At least, that is my experience. Also, a diff backup
contains all modifications since the *latest database backup*! this means
that it will only be bigger and bigger until you do the next database
backup.
IMO, diff backup is not there to replace transaction log backup. It is there
for more advanced configurations to *complement* transaction log backups. Is
there a reason why you don't want to use log backups? There are a number of
nice things that log backups will give you that diff backup wont.
--
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Peter" <anonymous@.discussions.microsoft.com> wrote in message
news:151e01c3fbbc$37c5d000$a401280a@.phx.gbl...
> Hello,
> I am trying to do a differential backup but I have run
> into a couple of problems.
> I am doing this through the EM by right clicking the db
> then selecting backup.
> Firstly it doesn't actually seem to work. For a 7mb
> database, the first backup is 7mb (which I agree with),
> the second backup is also 7mb, rather than a smaller amout
> with the difference.
> Secondly I would like it to have different files for each
> differential backup, currently it writes to one file, so
> it keeps increasing from 7, 14, 21 mb.
> Can anyone give me some pointers ?
> Thanks
> Peter|||Thank you both for your help on this. My apologies for not
writing back earlier but I have been off work with the flu.
Anyway I will give these sugestions a try.
Thanks
Peter
>--Original Message--
>Hello,
>I am trying to do a differential backup but I have run
>into a couple of problems.
>I am doing this through the EM by right clicking the db
>then selecting backup.
>Firstly it doesn't actually seem to work. For a 7mb
>database, the first backup is 7mb (which I agree with),
>the second backup is also 7mb, rather than a smaller
amout
>with the difference.
>Secondly I would like it to have different files for each
>differential backup, currently it writes to one file, so
>it keeps increasing from 7, 14, 21 mb.
>Can anyone give me some pointers ?
>Thanks
>Peter
>.
>

Differential Backup

Hello,
I am trying to do a differential backup but I have run
into a couple of problems.
I am doing this through the EM by right clicking the db
then selecting backup.
Firstly it doesn't actually seem to work. For a 7mb
database, the first backup is 7mb (which I agree with),
the second backup is also 7mb, rather than a smaller amout
with the difference.
Secondly I would like it to have different files for each
differential backup, currently it writes to one file, so
it keeps increasing from 7, 14, 21 mb.
Can anyone give me some pointers ?
Thanks
PeterPeter
1) Were there some activites in the database since last full backup
2) You will have to build the backup file by yourself .
SELECT @.FileName = 'D:\DatabaseName' + @.Date+'.bak'
BACKUP DATABASE DatabaseName
TO DISK = @.FileName
WITH DIFFERENTIAL
"Peter" <anonymous@.discussions.microsoft.com> wrote in message
news:151e01c3fbbc$37c5d000$a401280a@.phx.gbl...
> Hello,
> I am trying to do a differential backup but I have run
> into a couple of problems.
> I am doing this through the EM by right clicking the db
> then selecting backup.
> Firstly it doesn't actually seem to work. For a 7mb
> database, the first backup is 7mb (which I agree with),
> the second backup is also 7mb, rather than a smaller amout
> with the difference.
> Secondly I would like it to have different files for each
> differential backup, currently it writes to one file, so
> it keeps increasing from 7, 14, 21 mb.
> Can anyone give me some pointers ?
> Thanks
> Peter|||Peter,
I don't think that you will find that diff backup will save storage for such
small databases. At least, that is my experience. Also, a diff backup
contains all modifications since the *latest database backup*! this means
that it will only be bigger and bigger until you do the next database
backup.
IMO, diff backup is not there to replace transaction log backup. It is there
for more advanced configurations to *complement* transaction log backups. Is
there a reason why you don't want to use log backups? There are a number of
nice things that log backups will give you that diff backup wont.
Tibor Karaszi, SQL Server MVP
Archive at:
http://groups.google.com/groups?oi=...ublic.sqlserver
"Peter" <anonymous@.discussions.microsoft.com> wrote in message
news:151e01c3fbbc$37c5d000$a401280a@.phx.gbl...
> Hello,
> I am trying to do a differential backup but I have run
> into a couple of problems.
> I am doing this through the EM by right clicking the db
> then selecting backup.
> Firstly it doesn't actually seem to work. For a 7mb
> database, the first backup is 7mb (which I agree with),
> the second backup is also 7mb, rather than a smaller amout
> with the difference.
> Secondly I would like it to have different files for each
> differential backup, currently it writes to one file, so
> it keeps increasing from 7, 14, 21 mb.
> Can anyone give me some pointers ?
> Thanks
> Peter