Showing posts with label written. Show all posts
Showing posts with label written. Show all posts

Tuesday, March 27, 2012

Backing up remote SQL Server

I have written a SQL DB, and ASP.NET website for a client. The clients
database and webpage are not inhouse but on a hosting provider.
This provider says they only backup for disastor purposes--which didn't make
me feel to good.
So my question...
How can I help this non-techie client to backup her remote SQL Server
Database regularly?
What is the best means of doing this?
Some software for her--again figure very low tech small business--no IT
department'
Some other service to do it?
Thanks,
ShaneWrite one or a few ASPI.NET pages from which the user does backups. From
here you can use .ExecuteNonQuery and execute the appropriate BACKUP
DATABASE command. Note that the backup file will be created from the SQL
Server machine's perspective.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%233WRgI5BEHA.3748@.tk2msftngp13.phx.gbl...
> I have written a SQL DB, and ASP.NET website for a client. The clients
> database and webpage are not inhouse but on a hosting provider.
> This provider says they only backup for disastor purposes--which didn't
make
> me feel to good.
> So my question...
> How can I help this non-techie client to backup her remote SQL Server
> Database regularly?
> What is the best means of doing this?
> Some software for her--again figure very low tech small business--no IT
> department'
> Some other service to do it?
> Thanks,
> Shane
>|||ok...
But where does that file reside?
If still no hosting site that isn't much of a backup.
Are you saying try to backup to a local protected directory, download the
backup file and in case of disaster client sends that backup file to people
on host site to restore?
Thanks,
Shane
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:%23Jy4hi5BEHA.3928@.TK2MSFTNGP11.phx.gbl...
> Write one or a few ASPI.NET pages from which the user does backups. From
> here you can use .ExecuteNonQuery and execute the appropriate BACKUP
> DATABASE command. Note that the backup file will be created from the SQL
> Server machine's perspective.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:%233WRgI5BEHA.3748@.tk2msftngp13.phx.gbl...
> make
>|||SQL Server does the backup, regardless of who submits the backup command.
Backup on C:\ and it is on C:\ on the SQL Server machine. You can then FTP
down the backup file or do whatever you want with it.
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%235k0gt5BEHA.3928@.TK2MSFTNGP11.phx.gbl...
> ok...
> But where does that file reside?
> If still no hosting site that isn't much of a backup.
> Are you saying try to backup to a local protected directory, download the
> backup file and in case of disaster client sends that backup file to
people
> on host site to restore?
> Thanks,
> Shane
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote
in
> message news:%23Jy4hi5BEHA.3928@.TK2MSFTNGP11.phx.gbl...
clients
didn't
IT
>|||Ok. Thanks.
My client isn't too good at even FTP, so I would have to some how provide a
secure link I suppose. Thanks for the reply.
Shane
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:OtLfke6BEHA.916@.tk2msftngp13.phx.gbl...
> SQL Server does the backup, regardless of who submits the backup command.
> Backup on C:\ and it is on C:\ on the SQL Server machine. You can then FTP
> down the backup file or do whatever you want with it.
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "SStory" <TheStorys@.TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
> news:%235k0gt5BEHA.3928@.TK2MSFTNGP11.phx.gbl...
the
> people
> in
From
SQL
message
> clients
> didn't
Server
> IT
>

Thursday, February 16, 2012

AverageOfChildren Aggregation function gives error.

Hi

This is a very peculiar problem, and I did not find any entry on the net regarding this.

Background: I have written .Net 2.0 programs that use AMO and create the complete gamut of SSAS 2005 objects at one go. They create Dimensions, Cubes, MeasureGroups, Measures, Partitions....etc. This is working and after processin the objects, they are browsable also.

Now the problem is: When i create a measure, I am not specifying any AggregationFunction (Not even 'None'), but the default aggregation 'SUM' is added automatically.

question 1: Why is this? How to avoid this?

Since I dont want the 'SUM' aggregation for some of the measures, I open BI studio and change one of the measure's aggregation function to 'AverageOfChildren', I get an error as soon as i do this. The measure is now underlined with the curly red (indicating an error). The error msg displayed is: Cube xyz cannot be saved because:

Cube 'xyz' > Measure Group 'abc' > Measure 'def' : Aggregate function AverageOfChildren is not allowed in Standard server edition.

question 2: What is this? Why is this? how to go about further from this?

Is this really because we use the standard server edition? (I dont know which edition we use)

Thanks and Regards

Vijay R

Yes, some functionality is only available in the Enterprise SKU. The BI Studio environment uses a property to allow you to develop targeting a particular SKU (which will change the client-side validation -- the red squigglies). This allows for a visual way to design an Analysis Services database that limits its features to the standard SKU. When the project is deployed, validation is done again by the server.

In general, semi-additive measures are only available in enterprise edition (like AverageOfChildren, LastNonEmpty, FirstNonEmpty and None).

Hope that helps.