Showing posts with label programatically. Show all posts
Showing posts with label programatically. Show all posts

Thursday, March 22, 2012

Can I create subscriptions programatically?

Is that possible? if so please point me in the right direction.There is sample code in a MS KB here that does it. I also think it is a good basis for more research along the same avenue.
|||This article doesnt talk anything about reporting services|||Yes, you can create and manage subscriptions through the SOAP API.
Check MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_ak_20ft.asp

-- Robert|||I was looking at the example on the MSDN, and on the link provided above, I was trying to reference system.web.services.protols, but it was not found.

I am trying to set up a dynamic subscription application so that users can run a certain report with certain parameters on a monthly basis, or off peak hours, and have the report emailed/placed on a network drive. It seems however, I am missing a key point to getting this application created, since I am unable to reference services.protocols...

Any help plz?

Can I create Packages programatically

For example assume that there is a DTS That takes some SELLS data from an oracle database and sum the sells for each month.

I can create the package visually, but what about if I want to create it programatically. I want to make a software for Balance Scorecard in which the users dont need to know Integration Services. they should have a consoloe for asking where to get an Indicator value. and the program should create it programatically.Yes, look in books online under Integration Services programming. There's a good reference there.sql

Tuesday, February 14, 2012

Can 2005 mirroring be temporarily 'turned of' programatically?

In 2005 there is a new'ish' kind of replication called Mirroring which
is only available in SQL 2005 sp1. When you create a mirrored database
on another server, the 'Principal Database' stays online, while the
'mirrored database' goes into a constant state of restoring. My
question is can 2005 mirroring be temporarily 'turned of'
programmatically? I have a situation where the developers do a BCP of
a large amount of data to a 'staging server' from their 'online
processor' box. For various reasons, they tell me it is to difficult
to do the bcp to both the staging and reporting server. The reporting
server is for Business Objects reporting which affords very little
control over the size and scope of the queries submitted. As a result,
Disk I/O on the reporting server during the day can be extreme. I was
considering creating a mirror between the Staging and Reporting server
database and just allow the BCP to continue on the Staging Server.
Then, after the mirror is completely synchronized, I would turn off the
'mirroring' and use the mirror for reporting. Then, near the end of
the day, I would re-create the link between the Principal and the
Mirror and let the BCP process start again.
How feasible is this?I don't think that you want to create a mirror between staging and
reporting.
As you mentioned, when you are using Mirroring the mirror is unavailable.
How are you going to report from your reporting server if Business Objects
cannot connect to the Mirror server.
You might want to look at log shipping, replication, DTS (SSIS), or a simple
backup and restore. These might be more suitable for your purposes.
--
Keith Kratochvil
"togbabe" <togbabe@.yahoo.co.uk> wrote in message
news:1154931847.145022.63740@.p79g2000cwp.googlegroups.com...
> In 2005 there is a new'ish' kind of replication called Mirroring which
> is only available in SQL 2005 sp1. When you create a mirrored database
> on another server, the 'Principal Database' stays online, while the
> 'mirrored database' goes into a constant state of restoring. My
> question is can 2005 mirroring be temporarily 'turned of'
> programmatically? I have a situation where the developers do a BCP of
> a large amount of data to a 'staging server' from their 'online
> processor' box. For various reasons, they tell me it is to difficult
> to do the bcp to both the staging and reporting server. The reporting
> server is for Business Objects reporting which affords very little
> control over the size and scope of the queries submitted. As a result,
> Disk I/O on the reporting server during the day can be extreme. I was
> considering creating a mirror between the Staging and Reporting server
> database and just allow the BCP to continue on the Staging Server.
> Then, after the mirror is completely synchronized, I would turn off the
> 'mirroring' and use the mirror for reporting. Then, near the end of
> the day, I would re-create the link between the Principal and the
> Mirror and let the BCP process start again.
> How feasible is this?
>|||Hi
There is a section on pausing and resuming database mirroring in Books
Online also see http://msdn2.microsoft.com/en-us/library/ms175539.aspx You
should also
John
"togbabe" wrote:
> In 2005 there is a new'ish' kind of replication called Mirroring which
> is only available in SQL 2005 sp1. When you create a mirrored database
> on another server, the 'Principal Database' stays online, while the
> 'mirrored database' goes into a constant state of restoring. My
> question is can 2005 mirroring be temporarily 'turned of'
> programmatically? I have a situation where the developers do a BCP of
> a large amount of data to a 'staging server' from their 'online
> processor' box. For various reasons, they tell me it is to difficult
> to do the bcp to both the staging and reporting server. The reporting
> server is for Business Objects reporting which affords very little
> control over the size and scope of the queries submitted. As a result,
> Disk I/O on the reporting server during the day can be extreme. I was
> considering creating a mirror between the Staging and Reporting server
> database and just allow the BCP to continue on the Staging Server.
> Then, after the mirror is completely synchronized, I would turn off the
> 'mirroring' and use the mirror for reporting. Then, near the end of
> the day, I would re-create the link between the Principal and the
> Mirror and let the BCP process start again.
> How feasible is this?
>|||"Keith Kratochvil" <sqlguy.back2u@.comcast.net> wrote in message
news:uR%237WbiuGHA.4336@.TK2MSFTNGP06.phx.gbl...
> I don't think that you want to create a mirror between staging and
> reporting.
> As you mentioned, when you are using Mirroring the mirror is unavailable.
> How are you going to report from your reporting server if Business Objects
> cannot connect to the Mirror server.
> You might want to look at log shipping, replication, DTS (SSIS), or a
simple
> backup and restore. These might be more suitable for your purposes.
I second Keith's recommendation of a simple backup & restore. It works well
and it is too basic to break often.
Jonathan|||I might have found a solution to this guys. What I did was set up
'2005 mirroring' between the two servers. Then I can programmatically
take a 'snapshot' of the 'perpetually restoring mirror' and report from
the snapshot. At the end of the 'reporting day,' I can delete the
snapshot. This appears to work really well.
Jonathan Roberts wrote:
> "Keith Kratochvil" <sqlguy.back2u@.comcast.net> wrote in message
> news:uR%237WbiuGHA.4336@.TK2MSFTNGP06.phx.gbl...
> > I don't think that you want to create a mirror between staging and
> > reporting.
> > As you mentioned, when you are using Mirroring the mirror is unavailable.
> > How are you going to report from your reporting server if Business Objects
> > cannot connect to the Mirror server.
> >
> > You might want to look at log shipping, replication, DTS (SSIS), or a
> simple
> > backup and restore. These might be more suitable for your purposes.
> I second Keith's recommendation of a simple backup & restore. It works well
> and it is too basic to break often.
> Jonathan

Can 2005 mirroring be temporarily 'turned of' programatically?

In 2005 there is a new'ish' kind of replication called Mirroring which
is only available in SQL 2005 sp1. When you create a mirrored database
on another server, the 'Principal Database' stays online, while the
'mirrored database' goes into a constant state of restoring. My
question is can 2005 mirroring be temporarily 'turned of'
programmatically? I have a situation where the developers do a BCP of
a large amount of data to a 'staging server' from their 'online
processor' box. For various reasons, they tell me it is to difficult
to do the bcp to both the staging and reporting server. The reporting
server is for Business Objects reporting which affords very little
control over the size and scope of the queries submitted. As a result,
Disk I/O on the reporting server during the day can be extreme. I was
considering creating a mirror between the Staging and Reporting server
database and just allow the BCP to continue on the Staging Server.
Then, after the mirror is completely synchronized, I would turn off the
'mirroring' and use the mirror for reporting. Then, near the end of
the day, I would re-create the link between the Principal and the
Mirror and let the BCP process start again.
How feasible is this?I don't think that you want to create a mirror between staging and
reporting.
As you mentioned, when you are using Mirroring the mirror is unavailable.
How are you going to report from your reporting server if Business Objects
cannot connect to the Mirror server.
You might want to look at log shipping, replication, DTS (SSIS), or a simple
backup and restore. These might be more suitable for your purposes.
Keith Kratochvil
"togbabe" <togbabe@.yahoo.co.uk> wrote in message
news:1154931847.145022.63740@.p79g2000cwp.googlegroups.com...
> In 2005 there is a new'ish' kind of replication called Mirroring which
> is only available in SQL 2005 sp1. When you create a mirrored database
> on another server, the 'Principal Database' stays online, while the
> 'mirrored database' goes into a constant state of restoring. My
> question is can 2005 mirroring be temporarily 'turned of'
> programmatically? I have a situation where the developers do a BCP of
> a large amount of data to a 'staging server' from their 'online
> processor' box. For various reasons, they tell me it is to difficult
> to do the bcp to both the staging and reporting server. The reporting
> server is for Business Objects reporting which affords very little
> control over the size and scope of the queries submitted. As a result,
> Disk I/O on the reporting server during the day can be extreme. I was
> considering creating a mirror between the Staging and Reporting server
> database and just allow the BCP to continue on the Staging Server.
> Then, after the mirror is completely synchronized, I would turn off the
> 'mirroring' and use the mirror for reporting. Then, near the end of
> the day, I would re-create the link between the Principal and the
> Mirror and let the BCP process start again.
> How feasible is this?
>|||Hi
There is a section on pausing and resuming database mirroring in Books
Online also see http://msdn2.microsoft.com/en-us/library/ms175539.aspx You
should also
John
"togbabe" wrote:

> In 2005 there is a new'ish' kind of replication called Mirroring which
> is only available in SQL 2005 sp1. When you create a mirrored database
> on another server, the 'Principal Database' stays online, while the
> 'mirrored database' goes into a constant state of restoring. My
> question is can 2005 mirroring be temporarily 'turned of'
> programmatically? I have a situation where the developers do a BCP of
> a large amount of data to a 'staging server' from their 'online
> processor' box. For various reasons, they tell me it is to difficult
> to do the bcp to both the staging and reporting server. The reporting
> server is for Business Objects reporting which affords very little
> control over the size and scope of the queries submitted. As a result,
> Disk I/O on the reporting server during the day can be extreme. I was
> considering creating a mirror between the Staging and Reporting server
> database and just allow the BCP to continue on the Staging Server.
> Then, after the mirror is completely synchronized, I would turn off the
> 'mirroring' and use the mirror for reporting. Then, near the end of
> the day, I would re-create the link between the Principal and the
> Mirror and let the BCP process start again.
> How feasible is this?
>|||"Keith Kratochvil" <sqlguy.back2u@.comcast.net> wrote in message
news:uR%237WbiuGHA.4336@.TK2MSFTNGP06.phx.gbl...
> I don't think that you want to create a mirror between staging and
> reporting.
> As you mentioned, when you are using Mirroring the mirror is unavailable.
> How are you going to report from your reporting server if Business Objects
> cannot connect to the Mirror server.
> You might want to look at log shipping, replication, DTS (SSIS), or a
simple
> backup and restore. These might be more suitable for your purposes.
I second Keith's recommendation of a simple backup & restore. It works well
and it is too basic to break often.
Jonathan|||I might have found a solution to this guys. What I did was set up
'2005 mirroring' between the two servers. Then I can programmatically
take a 'snapshot' of the 'perpetually restoring mirror' and report from
the snapshot. At the end of the 'reporting day,' I can delete the
snapshot. This appears to work really well.
Jonathan Roberts wrote:
> "Keith Kratochvil" <sqlguy.back2u@.comcast.net> wrote in message
> news:uR%237WbiuGHA.4336@.TK2MSFTNGP06.phx.gbl...
> simple
> I second Keith's recommendation of a simple backup & restore. It works we
ll
> and it is too basic to break often.
> Jonathan