Showing posts with label snapshot. Show all posts
Showing posts with label snapshot. Show all posts

Monday, March 19, 2012

Explore Snapshot Err After SP3a

Server 2000 on WIn XP Prof.
Since installing SP3a this morning I am getting a nasty dialog saying "The Specified File Was Not Found" when I use the Explore Snapshot button or the Explore the Latest Snapshot Folder menu item.
This happens both with merge and snapshot publications when the snapshot files are in fact present and sp_browsesnapshotfolder and sp_browsemergesnapshotfolder each return the correct path.
If the snapshot is not there then then the usual message that the snapshot has either not been created or has been cleared appears.
Despite the error message, the snapshots can still be applied so its really just an irritant and a worry that if something is wrong it may cause other undetected problems.
Has anyone got any idea how I can correct this please?
are you using dynamic filtering?
Hilary Cotter
Looking for a book on SQL Server replication?
http://www.nwsu.com/0974973602.html
"Bruce Thomas" <Bruce Thomas@.discussions.microsoft.com> wrote in message
news:28CCE323-2AFF-4D7F-86FE-9EE3E8AAE9DC@.microsoft.com...
> Server 2000 on WIn XP Prof.
> Since installing SP3a this morning I am getting a nasty dialog saying "The
Specified File Was Not Found" when I use the Explore Snapshot button or the
Explore the Latest Snapshot Folder menu item.
> This happens both with merge and snapshot publications when the snapshot
files are in fact present and sp_browsesnapshotfolder and
sp_browsemergesnapshotfolder each return the correct path.
> If the snapshot is not there then then the usual message that the snapshot
has either not been created or has been cleared appears.
> Despite the error message, the snapshots can still be applied so its
really just an irritant and a worry that if something is wrong it may cause
other undetected problems.
> Has anyone got any idea how I can correct this please?
|||The problem is that EM is looking for explorer.exe in all the wrong
places. I had the same problem and ran filemon while trying to
Explore the snapshot folder from enterprise Manager. Below is what I
found:
mmc.exe:3964 OPEN C:\Program Files\Microsoft SQL
Server\80\Tools\BINN\explorer.exe FILE NOT FOUND
mmc.exe:3964 OPEN C:\WINNT\system32explorer.exe
FILE NOT FOUND
I copied Explorer.exe from c:\winnt to both c:\winnt\system32 and
C:\Program Files\Microsoft SQL Server\80\Tools\BINN\
Works like a charm now.
Hope this helps.
Randy
"Hilary Cotter" <hilaryk@.att.net> wrote in message news:<#AxyiCJeEHA.2376@.tk2msftngp13.phx.gbl>...[vbcol=seagreen]
> are you using dynamic filtering?
> --
> Hilary Cotter
> Looking for a book on SQL Server replication?
> http://www.nwsu.com/0974973602.html
>
> "Bruce Thomas" <Bruce Thomas@.discussions.microsoft.com> wrote in message
> news:28CCE323-2AFF-4D7F-86FE-9EE3E8AAE9DC@.microsoft.com...
> Specified File Was Not Found" when I use the Explore Snapshot button or the
> Explore the Latest Snapshot Folder menu item.
> files are in fact present and sp_browsesnapshotfolder and
> sp_browsemergesnapshotfolder each return the correct path.
> has either not been created or has been cleared appears.
> really just an irritant and a worry that if something is wrong it may cause
> other undetected problems.

Monday, March 12, 2012

Explain daily snapshot in transactional replication

We are doing a proof of concept of heterogeneous transactional replication
from Sql 2005 to Oracle. I have some questions about the snapshot.
Q1) If the schema at the subscriber has been intitialized why do you need
to have the automatically created daily job that runs the snapshot?
I am concerned what happens if our DB grows to be very large, and sometime
after replication has already been initialized, gets out of sync.
Q2) After the subscriber has been initialized do any further snapshots
transfer over all the data or just what has changed since the previous
snapshot?
Thank you for any replies.
1) The daily snapshot is only run if the subscriber needs it. So the job
will wake up, figure out if any subscribers need the snapshot and go to
sleep if none of them do. If one of them does, it will generate the
snapshot. I am not sure why it is set up to run daily though as opposed to
once a week or something like that.
2) When the snapshot starts a water mark is placed in the distribution
database. All transactions occurring after this watermark are replicated to
the subscriber as transactions. This way after the snapshot is applied and
the distribution agent is run both databases will be identical or
consistent.
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.
This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"DBAdan" <DBAdan@.discussions.microsoft.com> wrote in message
news:4B776D9B-259D-42FE-853A-FCD51156B353@.microsoft.com...
> We are doing a proof of concept of heterogeneous transactional replication
> from Sql 2005 to Oracle. I have some questions about the snapshot.
> Q1) If the schema at the subscriber has been intitialized why do you need
> to have the automatically created daily job that runs the snapshot?
> I am concerned what happens if our DB grows to be very large, and
> sometime
> after replication has already been initialized, gets out of sync.
> Q2) After the subscriber has been initialized do any further snapshots
> transfer over all the data or just what has changed since the previous
> snapshot?
> Thank you for any replies.
|||I always disable the snapshot job after initialization and run it manually
if needed. It's useful for heterogenous subscribers but generally I have
names ones so this is not relevant, and in your case it seems you have only
1 subscriber so the same applies.
Once the snapshot has applied, only inserts/updates/deletes will replicate,
rather than BCP flat-file data.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com .

Sunday, February 19, 2012

Execution Snaption parameters

I am setting up an execution snapshot to run a query every day at 2:00 am to run a long query and store the report as a snapshot.

My question is my two parameters are Starting Date and Ending Date. I want the parameters to have the value of the previous date (being that the report is run at 2:00 am). Is is possible to set up an expression such as =today-1 for these parameters?

Thanks for the information.

that's true, = Today - 1 will be easy

I suppose set the "default" value for BeginDate to a DataSet query
where you select the previous date in the query?
SELECT getdate() - 1|||Thanks...that worked and I did not even think about applying the query actually as the default report parameter.

Execution snapshots not being added to report history

Hello,
I'm trying to generate a snapshot everytime a report is viewed. I've setup
the properties of the report to "Store all report execution snapshots in
history" but no report is being created under the History tab.
The datasource uses hardcoded credentials.
The only thing I have found in the log file that may relate to this is the
following (but it does not consistently occur every time):
INFO: LoadSnapshot: Item with session: [session id], reportPath: [report
path], userName: [my username] not found in the database
Can anyone help?
ThanksDo you have the report set up to run on an Execution snapshot? That setting
is on the Execution subtab (Under the properties tab). If not then no
execution snapshots are being created, so none are being stored.
There is no setting to create a report execution snapshot on each viewing.
Execution snapshots can only be created manually (via the SOAP Api or
checking the check box in Report Manager) or on a schedule.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"Ian F" <IanF@.discussions.microsoft.com> wrote in message
news:CF1B4CBA-B0B1-4A6B-9433-DE65CB817749@.microsoft.com...
> Hello,
> I'm trying to generate a snapshot everytime a report is viewed. I've
setup
> the properties of the report to "Store all report execution snapshots in
> history" but no report is being created under the History tab.
> The datasource uses hardcoded credentials.
> The only thing I have found in the log file that may relate to this is the
> following (but it does not consistently occur every time):
> INFO: LoadSnapshot: Item with session: [session id], reportPath: [report
> path], userName: [my username] not found in the database
> Can anyone help?
> Thanks

Execution snapshots

Does the scheduler for executing a snapshot just simply not work?
Is there a known issue with this? I've tried everything, daily, weekly, on
and on...the only way i've ever gotten a snapshot to execute ever, is by
checking the "execute a snapshot when the apply button is clicked".
Anyone?
Thanks,
BrianSorry for the obvious question, but is SQL Server Agent started?
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://www.solidqualitylearning.com/
"G" <brian.grant@.si-intl-kc.com> wrote in message news:O5way6JrEHA.3172@.TK2MSFTNGP10.phx.gbl...
> Does the scheduler for executing a snapshot just simply not work?
> Is there a known issue with this? I've tried everything, daily, weekly, on
> and on...the only way i've ever gotten a snapshot to execute ever, is by
> checking the "execute a snapshot when the apply button is clicked".
> Anyone?
> Thanks,
> Brian
>|||I've having the same symptoms.
- SQL Server Agent is running
- The tasks that are created in SQL are running successfully
- The reports don't show up in the history and the updates are not
reflected in the snapshot data in the report
Everything looks like it SHOULD be working. No errors in the event log.
Nothing of value I could find in the Execution log. Just no new data.
ARGH.
"Tibor Karaszi" wrote:
> Sorry for the obvious question, but is SQL Server Agent started?
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://www.solidqualitylearning.com/
>
> "G" <brian.grant@.si-intl-kc.com> wrote in message news:O5way6JrEHA.3172@.TK2MSFTNGP10.phx.gbl...
> >
> > Does the scheduler for executing a snapshot just simply not work?
> >
> > Is there a known issue with this? I've tried everything, daily, weekly, on
> > and on...the only way i've ever gotten a snapshot to execute ever, is by
> > checking the "execute a snapshot when the apply button is clicked".
> >
> > Anyone?
> >
> > Thanks,
> >
> > Brian
> >
> >
>
>

execution snapshot: Invalid_Viewstate

I am having problems when I choose "Render this report from an
execution snapshot" and select "Create a snapshot of the report
when the apply button is selected".
I get an Invalid_Viewstate message unless I clear all connections.
I use the following to clear connections.
Alter Database ReportServer set SINGLE_USER with Rollback Immediate
Alter Database ReportServer set MULTI_USER
We are running the report server on a web farm consisting of three
machines and the database server is on a different machine.
I recently moved the database to a new machine. Also, we have a custom
C Sharp (C#) application using the web service API to run some of our
reports.
Do you guys have any ideas on how to track this bug down?
Actual Error:
Invalid_Viewstate Client IP: 12.345.67.89 Port: 3856 User-Agent:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
ViewState: dDw1MzgxO3Q8O2w8aTwxPjs+O........Actually I got it to work by trying several times in a row, so I am not
sure if clearing all connections is a relevant fact or not. I still
get the invalid_viewstate error most of the time.|||Actually I got it to work by trying several times in a row, so I am not
sure if clearing all connections is a relevant fact or not. I still
get the invalid_viewstate error most of the time.|||Any ideas guys'
I am really stuck!
daveg.01@.gmail.com wrote:
> Actually I got it to work by trying several times in a row, so I am not
> sure if clearing all connections is a relevant fact or not. I still
> get the invalid_viewstate error most of the time.|||We are still getting the error. I also got a couple different errors
today while trying to manually generate a snapshot. One of them said
something about an XML file (I didn=E2=80=99t write it down =EF=81=8C
I did notice one thing though. Yesterday, after I restarted the
windows service (ReportServer) I was able to generate a snapshot.
Also, a snapshot was generated this morning according to the schedule.
However I did receive the errors above after beating on the report for
a bit.
I restarted the windows service again (this time on all 3 machines in
the farm) and I was able to manually generate snapshots with no error
again.
Any ideas on what is going on?
daveg.01@.gmail.com wrote:
> Any ideas guys'
> I am really stuck!
>
> daveg.01@.gmail.com wrote:
> > Actually I got it to work by trying several times in a row, so I am not
> > sure if clearing all connections is a relevant fact or not. I still
> > get the invalid_viewstate error most of the time.

Execution Snapshot - Parameter "gray out"

Hi Experts,
I got a report that takes in a parameter and run normally 20 min to produce
the result. So I decide to take advantage of Execution Snapshot feature. I
create a shared schedule and set my Execution Snapshot to execute every
morning around 1 am with default parameter. The next day I go into the report
and run it and wow it just takes second to produce the result, I'm impressed.
But I noticed something strange: the report runs using my default parameter
and the parameter box is "gray out". So I cannot run the report again using
different parameter value other than the default one.
I'm using Reporting Services Standard edition. Is this behavior normal for
this edition? Does the Enterprise edition allow me to change the parameter
once it's already scheduled for Execution Snapshot.
Any idea?
ThanhThanh,
It is normal behavior. Snapshots run for the default parameter values and
stores the intermediate report format /data in cache. When you go back to
the report, it grabs the intermediate format from cache and presents it,
preventing another trip to the database. If it allowed you to change the
parameters, it would need to re-execute the report with the new query
parameters.
If you want the parameters to be available, you need to move from using
query parameters to using report filters. There are plusses and minuses to
using report filters.
Books on line has some good info on how to use report filters.
--
Andy Potter
blog: http://sqlreportingservices.spaces.live.com/
"Thanh Nguyen" wrote:
> Hi Experts,
> I got a report that takes in a parameter and run normally 20 min to produce
> the result. So I decide to take advantage of Execution Snapshot feature. I
> create a shared schedule and set my Execution Snapshot to execute every
> morning around 1 am with default parameter. The next day I go into the report
> and run it and wow it just takes second to produce the result, I'm impressed.
> But I noticed something strange: the report runs using my default parameter
> and the parameter box is "gray out". So I cannot run the report again using
> different parameter value other than the default one.
> I'm using Reporting Services Standard edition. Is this behavior normal for
> this edition? Does the Enterprise edition allow me to change the parameter
> once it's already scheduled for Execution Snapshot.
> Any idea?
> Thanh

Execution Schedule

I have a Reporting Services report which is scheduled to execute on using snapshot on a 3-month cycle, on the 15th of Feb, May, Aug and Nov. This report was originally programmed to execute monthly on the 15th so we just changed the same schedule to execute choosing only Feb, May, Aug. and Nov but it executed on March 15. Shouldn't this have change it, would i need to create a new schedule and delete the old one?

If I were you, I would double check your schedule through Report Manager, then go check the SQL Agent Job. You have to make sure you hit Apply to the frequency and Ok on the Execution. Anyway, if both of those still show the correct schedule, try to delete it and re-create a new one.

Jarret