Showing posts with label push. Show all posts
Showing posts with label push. Show all posts

Tuesday, March 20, 2012

re-run snapshot agent for each new subscription?

If one day SubscriberA gets a push subscription, run snapshot agent, and
SubscriberA goes from pending to active one the snapshot agent is done. The
next day SubscriberB gets a push subscription from the same publication. It
doesn't seem to go from pending to active until I re-run the snapshot agent
(it has status of waiting for snapshot). Is this by design or am I doing
something wrong? Do I need to run the snapshot agent immediately everytime
I add a subscriber if I want the subscriber to be active immediately?
Thanks
Mike Jansen
Why is it that when I add a new transactional subscription I must re-run the
snapshot agent before the subscription becomes active, even if the snapshot
agent has been run recently? Do changes to the database "invalidate" the
snapshot or am I doing something wrong?
Thanks,
Mike
"Mike Jansen" <mjansen_nntp@.mail.com> wrote in message
news:uk8qPdNVFHA.3184@.TK2MSFTNGP15.phx.gbl...
> If one day SubscriberA gets a push subscription, run snapshot agent, and
> SubscriberA goes from pending to active one the snapshot agent is done.
The
> next day SubscriberB gets a push subscription from the same publication.
It
> doesn't seem to go from pending to active until I re-run the snapshot
agent
> (it has status of waiting for snapshot). Is this by design or am I doing
> something wrong? Do I need to run the snapshot agent immediately
everytime
> I add a subscriber if I want the subscriber to be active immediately?
> Thanks
> Mike Jansen
>
|||Mike,
the snapshot files will be deleted by the distribution cleanup agent once
all the subscribers have read them. If you want this not to occur so
frequently, you can schedule the distribution cleanup agent to run less
frequently eg at 12pm and have the snapshot agent run once the cleanup has
finished.
Rgds,
Paul Ibison
|||OK, that explains it. Thanks you very much.
Since you had such a good answer, I have another question
Is there a way to detect via T-SQL whether a valid snapshot exists?
Obviously I can't base it on job statuses because even if jobs complete, the
distribution cleanup will cleanup the snapshot. Is there another status
table I can check?
I'd rather check before running the snapshot agent _every_ time a new
subscription is created (the whole process is done in T-SQL scripts).
Thanks again,
Mike
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:e0To7bXVFHA.3272@.TK2MSFTNGP10.phx.gbl...
> Mike,
> the snapshot files will be deleted by the distribution cleanup agent once
> all the subscribers have read them. If you want this not to occur so
> frequently, you can schedule the distribution cleanup agent to run less
> frequently eg at 12pm and have the snapshot agent run once the cleanup has
> finished.
> Rgds,
> Paul Ibison
>
|||Mike,
take a look at sp_browsesnapshotfolder (sp_browsesnapshotfolder
'testrepxxx'). It'll return a row if there is a publication snapshot
available. If it's been cleaned up there will be an empty recordset.
Rgds,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)
|||Excellent! I'll hopefully be testing/incorporating this at some point this
week. That was the last piece (for now!) in the replication part of my
database script framework. Thanks again.
Mike
"Paul Ibison" <Paul.Ibison@.Pygmalion.Com> wrote in message
news:ORAfK0hVFHA.3540@.TK2MSFTNGP15.phx.gbl...
> Mike,
> take a look at sp_browsesnapshotfolder (sp_browsesnapshotfolder
> 'testrepxxx'). It'll return a row if there is a publication snapshot
> available. If it's been cleaned up there will be an empty recordset.
> Rgds,
> Paul Ibison SQL Server MVP, www.replicationanswers.com
> (recommended sql server 2000 replication book:
> http://www.nwsu.com/0974973602p.html)
>

Requirements for Sql Server Mobile and Sql Server 2003 interaction

Folks,

I am trying to use .NET 2005 Beta 2 to write an application targeted to a PPC2003 device. I want to use RDA to Push and Pull data from a Sql Server 2003 database.

This communication fails because I do not have sscesa30.dll in the IIS virtual directory from which the data are pulled.

I would like to know exactly what I need to install on the server so that everything is wired up correctly.

I do not really want to install Sql Server 2005 (CPT) on my server. Is there an SDK that I can install there that makes the sscesa30.dll available? Can it be run without any Sql Server 2005 (CPT) requirements?

Thanks in advance.
-Joel Finkel
finkel@.sd-il.comHi,

I am really not aware of SQL Server 2003. SQL Mobile 3.0 works with both SQL Server 2000 and SQL Server 2005.

I believe that you are working with SQL Server 2000? If so read below!

Given that SQL Mobile 3.0 works with SQL Server 2000. That is you can have SQL Server old version but have the SQL Mobile/CE clients with latest version.

This is what is expected infrastructure:

1) Server Box - SQL Server 2000 SP3a or above
2) IIS Box - Install I1, I2 in order.
3) Device - SQL Mobile 3.0 (Can get from Visual Studio 2005)

I1 - http://www.microsoft.com/downloads/details.aspx?FamilyId=09545A2A-3D2A-4811-AFD5-41AF0F6DF2B3&displaylang=en
I2 - http://www.microsoft.com/downloads/details.aspx?familyid=0A6174A4-C009-4768-8284-698C32EC84E3&displaylang=en

Also, please note that IIS & SQL Server can be on one box. In which case only install I2 on SQL Server Box. You do not need to install I1.

Let me know if you need any more information.

Thanks,
Laxmi NRO, MSFT, SQL Mobile

|||

Thanks for your help, but I have run into issues.

Here is my setup:

IIS 6
Sql Server 2000 (SP4)
Windows 2003 Server

Referring to your note, you write:

"Also, please note that IIS & SQL Server can be on one box.
In which case only install I2 on SQL Server Box. You do not
need to install I1."

Howevever:

When I attempt to install I2, it fails because I have not yet installed I1.

When I attempt to install I1, it fails because I am not running
Sql Server 2000 SP3 or SP3a. I am runnning SP4.

This has now become a critical issue. Any help is greatly appreciated.

|||I2 in the above thread is a beta one by which time SP4 was not shipped.
I2 latest version that works with SP4 is shipped with VS 2005.

The web downloads will be updated with the latest version soon.

Thanks,
Laxmi NRO, MSFT, SQL Mobile, Microsoft Corporation

Requirements for Sql Server Mobile and Sql Server 2003 interaction

Folks,

I am trying to use .NET 2005 Beta 2 to write an application targeted to a PPC2003 device. I want to use RDA to Push and Pull data from a Sql Server 2003 database.

This communication fails because I do not have sscesa30.dll in the IIS virtual directory from which the data are pulled.

I would like to know exactly what I need to install on the server so that everything is wired up correctly.

I do not really want to install Sql Server 2005 (CPT) on my server. Is there an SDK that I can install there that makes the sscesa30.dll available? Can it be run without any Sql Server 2005 (CPT) requirements?

Thanks in advance.
-Joel Finkel
finkel@.sd-il.comHi,

I am really not aware of SQL Server 2003. SQL Mobile 3.0 works with both SQL Server 2000 and SQL Server 2005.

I believe that you are working with SQL Server 2000? If so read below!

Given that SQL Mobile 3.0 works with SQL Server 2000. That is you can have SQL Server old version but have the SQL Mobile/CE clients with latest version.

This is what is expected infrastructure:

1) Server Box - SQL Server 2000 SP3a or above
2) IIS Box - Install I1, I2 in order.
3) Device - SQL Mobile 3.0 (Can get from Visual Studio 2005)

I1 - http://www.microsoft.com/downloads/details.aspx?FamilyId=09545A2A-3D2A-4811-AFD5-41AF0F6DF2B3&displaylang=en
I2 - http://www.microsoft.com/downloads/details.aspx?familyid=0A6174A4-C009-4768-8284-698C32EC84E3&displaylang=en

Also, please note that IIS & SQL Server can be on one box. In which case only install I2 on SQL Server Box. You do not need to install I1.

Let me know if you need any more information.

Thanks,
Laxmi NRO, MSFT, SQL Mobile|||

Thanks for your help, but I have run into issues.

Here is my setup:

IIS 6
Sql Server 2000 (SP4)
Windows 2003 Server

Referring to your note, you write:

"Also, please note that IIS & SQL Server can be on one box.
In which case only install I2 on SQL Server Box. You do not
need to install I1."

Howevever:

When I attempt to install I2, it fails because I have not yet installed I1.

When I attempt to install I1, it fails because I am not running
Sql Server 2000 SP3 or SP3a. I am runnning SP4.

This has now become a critical issue. Any help is greatly appreciated.

|||I2 in the above thread is a beta one by which time SP4 was not shipped.
I2 latest version that works with SP4 is shipped with VS 2005.

The web downloads will be updated with the latest version soon.

Thanks,
Laxmi NRO, MSFT, SQL Mobile, Microsoft Corporation

Requirements for Sql Server Mobile and Sql Server 2003 interaction

Folks,

I am trying to use .NET 2005 Beta 2 to write an application targeted to a PPC2003 device. I want to use RDA to Push and Pull data from a Sql Server 2003 database.

This communication fails because I do not have sscesa30.dll in the IIS virtual directory from which the data are pulled.

I would like to know exactly what I need to install on the server so that everything is wired up correctly.

I do not really want to install Sql Server 2005 (CPT) on my server. Is there an SDK that I can install there that makes the sscesa30.dll available? Can it be run without any Sql Server 2005 (CPT) requirements?

Thanks in advance.
-Joel Finkel
finkel@.sd-il.comHi,

I am really not aware of SQL Server 2003. SQL Mobile 3.0 works with both SQL Server 2000 and SQL Server 2005.

I believe that you are working with SQL Server 2000? If so read below!

Given that SQL Mobile 3.0 works with SQL Server 2000. That is you can have SQL Server old version but have the SQL Mobile/CE clients with latest version.

This is what is expected infrastructure:

1) Server Box - SQL Server 2000 SP3a or above
2) IIS Box - Install I1, I2 in order.
3) Device - SQL Mobile 3.0 (Can get from Visual Studio 2005)

I1 - http://www.microsoft.com/downloads/details.aspx?FamilyId=09545A2A-3D2A-4811-AFD5-41AF0F6DF2B3&displaylang=en
I2 - http://www.microsoft.com/downloads/details.aspx?familyid=0A6174A4-C009-4768-8284-698C32EC84E3&displaylang=en

Also, please note that IIS & SQL Server can be on one box. In which case only install I2 on SQL Server Box. You do not need to install I1.

Let me know if you need any more information.

Thanks,
Laxmi NRO, MSFT, SQL Mobile|||

Thanks for your help, but I have run into issues.

Here is my setup:

IIS 6
Sql Server 2000 (SP4)
Windows 2003 Server

Referring to your note, you write:

"Also, please note that IIS & SQL Server can be on one box.
In which case only install I2 on SQL Server Box. You do not
need to install I1."

Howevever:

When I attempt to install I2, it fails because I have not yet installed I1.

When I attempt to install I1, it fails because I am not running
Sql Server 2000 SP3 or SP3a. I am runnning SP4.

This has now become a critical issue. Any help is greatly appreciated.

|||I2 in the above thread is a beta one by which time SP4 was not shipped.
I2 latest version that works with SP4 is shipped with VS 2005.

The web downloads will be updated with the latest version soon.

Thanks,
Laxmi NRO, MSFT, SQL Mobile, Microsoft Corporation