Showing posts with label running. Show all posts
Showing posts with label running. Show all posts

Thursday, March 29, 2012

export fails using https

Hi
Running the unpatched Reporting Services (ie no service pack) I find
everything is working great other than exporting.
After playing around with things I find that if I use http then the
exports work fine, but if I reconfigure for https, they don't.
So,
http://myRSserver/Reports/Pages/Report.aspx?ItemPath=%2fGeneral%2fTestList
is generated perfectly, and exporting as PDF works too.
Once I change things to work with https,
https://myRSserver/Reports/Pages/Report.aspx?ItemPath=%2fGeneral%2fTestList
is still fine, but I can no longer export. Instead I get the
depressingly familiar
"Internet explorer cannot download format = PDF from myRSserver"
message.
Has anyone else encountered and overcomt this?
Thanks
StewartIs your report server (web service, etc.) configured for HTTPS too in the RS
config files? I'm wondering if that makes a difference...
--
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"sdm" <macneisd-www@.dcs.gla.ac.uk> wrote in message
news:1108396598.676768.161140@.l41g2000cwc.googlegroups.com...
> Hi
> Running the unpatched Reporting Services (ie no service pack) I find
> everything is working great other than exporting.
> After playing around with things I find that if I use http then the
> exports work fine, but if I reconfigure for https, they don't.
> So,
> http://myRSserver/Reports/Pages/Report.aspx?ItemPath=%2fGeneral%2fTestList
> is generated perfectly, and exporting as PDF works too.
> Once I change things to work with https,
> https://myRSserver/Reports/Pages/Report.aspx?ItemPath=%2fGeneral%2fTestList
> is still fine, but I can no longer export. Instead I get the
> depressingly familiar
> "Internet explorer cannot download format = PDF from myRSserver"
> message.
> Has anyone else encountered and overcomt this?
> Thanks
> Stewart
>|||I encounter that message when using HTTPS as well. The dreaded
"Internet explorer cannot download format = PDF from myRSserver"
message."
I have tried changing the config files, changing the URL, re-issuing
the certificate, re-issueing to a new URL, etc, etc to no avail. It
works great when not using SSL, but I would like to eventually make
this server publicly available, so SSL is a requirement.
Erik|||Have you tried a fresh install of RS? There is a step where it prompts you
to select SSL or not. That is probably overkill, but if others haven't seen
your error, then it might be your shortest route to success.
--
Cheers,
'(' Jeff A. Stucker
\
Business Intelligence
www.criadvantage.com
---
"cybermud" <cybermud@.gmail.com> wrote in message
news:1108499154.037629.202680@.o13g2000cwo.googlegroups.com...
>I encounter that message when using HTTPS as well. The dreaded
> "Internet explorer cannot download format = PDF from myRSserver"
> message."
> I have tried changing the config files, changing the URL, re-issuing
> the certificate, re-issueing to a new URL, etc, etc to no avail. It
> works great when not using SSL, but I would like to eventually make
> this server publicly available, so SSL is a requirement.
> Erik
>|||Jeff:
Thanks for the reply. According to "Hitchhikers Guide To Reporting
Services" you can change this setting after the install by editing the
RSReportServer.config file, which I have done and it does affect the
usage of SSL. But perhaps there is some setting that is set in the
install and canot be changed by modifying that file. I am pretty sure
that I did have the SSL box checked at install, though, because I
remember creating the SSL certificate for the machine prior to
installing, but I could be mistaken. If I can't figure it out, I will
probably re-install next week. Thanks for the advice.
Erik|||Thanks for the replies, apologies for being offline the past 2 days.
I think Erik's replies mirror my own experiences. I tried with https
selected at setup, then again with no https selected at setup.
Everything worked on the second go until I manually changed things to
use https, as Erik described. I've tried reinstalling.
The only thought I have as I write this is that my certificate is
simply for 'myRSserver' rather than the fully qualified domain name.
I'll perhaps get a different certificate and try on a fresh install.
I'll post again if I have any success.
Stewart|||Stewart:
At one point I was using a certificate named only for the computer
name, and tought that may be the issue. So I joined the computer to my
domain, and issued a certificate for the fully qualified domain name,
but that did not solve anything. I am still having the same problems
with export.
Erik|||Ah, okay, thanks for that.
I've been looking (unsuccessfully) for some place that defines the URL
used by the export call - I don't know if the error is caused by an
incorrect URL or authentication failure, or something completely
different.
Thanks anyway.
Stewart|||Stewart:
I was looking at the URL, and broke it down, and compared when its set
up to use SSL and when its set up not to use SSL. The only difference
is HTTPS vs HTTP...I have not been able to find anything in the
configuration relating to export location, though.
Erik|||Hi,
I had a similar problem.Basically it is a browser problem.I came to know
about it when I tried it over Netscape and it worked. It also worked with
win-xp.This made me think about a security setting in the browser.
It was solved when I unchecked the checkbox for "Do not save encrypted
pages to disk" which resides in tools -> internet options-> Advanced ->
Security section of the browser.
Regards.|||Thanks for that, I'll give it a go on a test server!
Stewart|||SQLReporter, you are my hero!! This solved my problem!

Friday, March 23, 2012

export a view with double quote delimiter

i am running sql server 2000 on windows 2000. i have a need to export a view and delimit the columns with double quotes as it has imbedded commas in the columns, how do i do this??Quoted strings is the default behavior for the DTS Export Wizard (http://msdn.microsoft.com/library/en-us/dtssql/dts_tools_wiz_8vsj.asp).

-PatP

Wednesday, March 21, 2012

Exponential Growth in SQL log files (.LDF)

We have a customer running our software that is experiencing a strange
occurence. We have thousands of customers and this is the only one that
has this issue. Recently, we upgraded him from using MSDE to Full SQL.
Since, any time he performs certain tasks in our software, the log file
will grow by the GB before our eyes until it fill the drive and shuts
down. We have exhausted our ideas as to what could be causing this. We
have configured all of the options for maximum efficiency. We are
band-aiding the problem by regularly deleting the log file and
generating a new one upon reconnecting. Has anyone else had a similar
experience with SQL that might provide some leads?
Doug wrote:
> We have a customer running our software that is experiencing a strange
> occurence. We have thousands of customers and this is the only one that
> has this issue. Recently, we upgraded him from using MSDE to Full SQL.
> Since, any time he performs certain tasks in our software, the log file
> will grow by the GB before our eyes until it fill the drive and shuts
> down. We have exhausted our ideas as to what could be causing this. We
> have configured all of the options for maximum efficiency.
What recovery model are you / they using?

> We are
> band-aiding the problem by regularly deleting the log file and
> generating a new one upon reconnecting. Has anyone else had a similar
> experience with SQL that might provide some leads?
Um, that's a strange way to limit growth of TX log. The usual approach
is to have regular backups. If you don't do that, you can at least use
BACKUP <db> LOG WITH NO_LOG and DBCC SHRINKFILE (see BOL).
Kind regards
robert
|||Does the log growth happen when he "performs certain tasks" or does it occur
off hours (perhaps when you have jobs such as database maintenance plans
scheduled)?
What recovery model is the database using?
What is your database backup strategy?
Keith Kratochvil
"Doug" <dclark@.cyrious.com> wrote in message
news:1143216876.301135.47350@.u72g2000cwu.googlegro ups.com...
> We have a customer running our software that is experiencing a strange
> occurence. We have thousands of customers and this is the only one that
> has this issue. Recently, we upgraded him from using MSDE to Full SQL.
> Since, any time he performs certain tasks in our software, the log file
> will grow by the GB before our eyes until it fill the drive and shuts
> down. We have exhausted our ideas as to what could be causing this. We
> have configured all of the options for maximum efficiency. We are
> band-aiding the problem by regularly deleting the log file and
> generating a new one upon reconnecting. Has anyone else had a similar
> experience with SQL that might provide some leads?
>

Exponential Growth in SQL log files (.LDF)

We have a customer running our software that is experiencing a strange
occurence. We have thousands of customers and this is the only one that
has this issue. Recently, we upgraded him from using MSDE to Full SQL.
Since, any time he performs certain tasks in our software, the log file
will grow by the GB before our eyes until it fill the drive and shuts
down. We have exhausted our ideas as to what could be causing this. We
have configured all of the options for maximum efficiency. We are
band-aiding the problem by regularly deleting the log file and
generating a new one upon reconnecting. Has anyone else had a similar
experience with SQL that might provide some leads?Doug wrote:
> We have a customer running our software that is experiencing a strange
> occurence. We have thousands of customers and this is the only one that
> has this issue. Recently, we upgraded him from using MSDE to Full SQL.
> Since, any time he performs certain tasks in our software, the log file
> will grow by the GB before our eyes until it fill the drive and shuts
> down. We have exhausted our ideas as to what could be causing this. We
> have configured all of the options for maximum efficiency.
What recovery model are you / they using?
> We are
> band-aiding the problem by regularly deleting the log file and
> generating a new one upon reconnecting. Has anyone else had a similar
> experience with SQL that might provide some leads?
Um, that's a strange way to limit growth of TX log. The usual approach
is to have regular backups. If you don't do that, you can at least use
BACKUP <db> LOG WITH NO_LOG and DBCC SHRINKFILE (see BOL).
Kind regards
robert|||Does the log growth happen when he "performs certain tasks" or does it occur
off hours (perhaps when you have jobs such as database maintenance plans
scheduled)?
What recovery model is the database using?
What is your database backup strategy?
--
Keith Kratochvil
"Doug" <dclark@.cyrious.com> wrote in message
news:1143216876.301135.47350@.u72g2000cwu.googlegroups.com...
> We have a customer running our software that is experiencing a strange
> occurence. We have thousands of customers and this is the only one that
> has this issue. Recently, we upgraded him from using MSDE to Full SQL.
> Since, any time he performs certain tasks in our software, the log file
> will grow by the GB before our eyes until it fill the drive and shuts
> down. We have exhausted our ideas as to what could be causing this. We
> have configured all of the options for maximum efficiency. We are
> band-aiding the problem by regularly deleting the log file and
> generating a new one upon reconnecting. Has anyone else had a similar
> experience with SQL that might provide some leads?
>

Exponential Growth in SQL log files (.LDF)

We have a customer running our software that is experiencing a strange
occurence. We have thousands of customers and this is the only one that
has this issue. Recently, we upgraded him from using MSDE to Full SQL.
Since, any time he performs certain tasks in our software, the log file
will grow by the GB before our eyes until it fill the drive and shuts
down. We have exhausted our ideas as to what could be causing this. We
have configured all of the options for maximum efficiency. We are
band-aiding the problem by regularly deleting the log file and
generating a new one upon reconnecting. Has anyone else had a similar
experience with SQL that might provide some leads?Doug wrote:
> We have a customer running our software that is experiencing a strange
> occurence. We have thousands of customers and this is the only one that
> has this issue. Recently, we upgraded him from using MSDE to Full SQL.
> Since, any time he performs certain tasks in our software, the log file
> will grow by the GB before our eyes until it fill the drive and shuts
> down. We have exhausted our ideas as to what could be causing this. We
> have configured all of the options for maximum efficiency.
What recovery model are you / they using?

> We are
> band-aiding the problem by regularly deleting the log file and
> generating a new one upon reconnecting. Has anyone else had a similar
> experience with SQL that might provide some leads?
Um, that's a strange way to limit growth of TX log. The usual approach
is to have regular backups. If you don't do that, you can at least use
BACKUP <db> LOG WITH NO_LOG and DBCC SHRINKFILE (see BOL).
Kind regards
robert|||Does the log growth happen when he "performs certain tasks" or does it occur
off hours (perhaps when you have jobs such as database maintenance plans
scheduled)?
What recovery model is the database using?
What is your database backup strategy?
Keith Kratochvil
"Doug" <dclark@.cyrious.com> wrote in message
news:1143216876.301135.47350@.u72g2000cwu.googlegroups.com...
> We have a customer running our software that is experiencing a strange
> occurence. We have thousands of customers and this is the only one that
> has this issue. Recently, we upgraded him from using MSDE to Full SQL.
> Since, any time he performs certain tasks in our software, the log file
> will grow by the GB before our eyes until it fill the drive and shuts
> down. We have exhausted our ideas as to what could be causing this. We
> have configured all of the options for maximum efficiency. We are
> band-aiding the problem by regularly deleting the log file and
> generating a new one upon reconnecting. Has anyone else had a similar
> experience with SQL that might provide some leads?
>sql

Monday, March 19, 2012

Explorer won't open SQL Profiler's trace data file (.trc) on WinXP

The problem that I'm having is that I cannot launch SQL Profiler by
double-clicking the .TRC file type on any maching running Windows XP with
SP2. When I try, I get the "Open With" dialog, but Profiler isn't in the
list and can't be added.
We have SQL 2000 SP3a Client Tools installed on machines with Win2k SP3,
WinXP SP1a and WinXP SP2. Launching Profiler this way works on any machine
that is not WinXP SP2.
I have this problem on machines that were upgraded to SP2, and on machines
that came with SP2 preinstalled. So it doesn't matter whether the SQL Client
Tools were installed before or after.
All of my WinXP SP2 machines already have the SQL Server 2000 hotfix #
810185 installed so I do not know if this problem occurred without it.
Jack Wilson wrote:
> The problem that I'm having is that I cannot launch SQL Profiler by
> double-clicking the .TRC file type on any maching running Windows XP
> with SP2. When I try, I get the "Open With" dialog, but Profiler
> isn't in the list and can't be added.
> We have SQL 2000 SP3a Client Tools installed on machines with Win2k
> SP3, WinXP SP1a and WinXP SP2. Launching Profiler this way works on
> any machine that is not WinXP SP2.
> I have this problem on machines that were upgraded to SP2, and on
> machines that came with SP2 preinstalled. So it doesn't matter
> whether the SQL Client Tools were installed before or after.
> All of my WinXP SP2 machines already have the SQL Server 2000 hotfix #
> 810185 installed so I do not know if this problem occurred without it.
This is an interesting problem. One that I cannot figure out. For some
reason, even though the TRC file extension is correctly associated with
Profiler.exe, and Profiler.exe is in the Path, it will not open and
seems to think it's a Visual Studio 6 file type. Alas, all is not
lost...
While I cannot identify the problem, you can easily address it by
opening Explorer, selecting the Tools - Folder Options menu option.
Click on File Types and find TRC. Click the Advanced button and then
open up the "Open" action. It should read something like "profiler.exe
/f%1". Click on Browse and locate the Profiler.exe application in the
SQL Server BINN folder. You should now see the full path and an action
that reads as follows:
"C:\Program Files\Microsoft SQL Server\80\Tools\Binn\profiler.exe" /F%1
Then it should work.
David Gugick
Quest Software
www.imceda.com
www.quest.com

Explain TSQL running

All,
I found this script in one FIDONET conference and decided to test my servers
available around. The result is more than strange.
-- TSQL
DECLARE @.i INT,@.j INT
SET @.j=0
SET @.i=0
WHILE @.i <= 3000000
BEGIN
IF @.i > 100
SET @.j = @.j+100
IF @.i < 300
SET @.j = @.j-200
IF (@.i%6) = 3
SET @.j = 356
IF @.i%37 = 7
SET @.j = @.j + 343
SET @.i=@.i+1
END
SELECT @.j
I installed MSSQL Server 2000 on another machine on my home LAN, then logged
in from the Enterprise Manager, started the Query Analyzer for the LAN
machine from my local machine and finally started this script - 36 seconds,
the local CPU load was about 100% for one of two processors, totally 50%.
Then I closed the Query Analyzer and reopened it on my local machine - same
script - 5 minutes and 39 seconds, the CPU load was about 5-7%. That's very
strange how MSSQL Server works. If I start the script on my local machine it
looks like it works on the LAN machine, but when I start the same script on
the LAN machine it runs on my own local machine. It can't be a mistake.
Maybe I'm missing something, but I got an illusion if we run some script
it's not necessarily will be running on the machine where it should be.
Finally I started the same script against our production server through the
Internet - I suspect the the CPU load was about 1-2% for this task because
it was finished in 24:31, almost 25 minutes!
I'm not using a SQL Server cluster at home for sure, but I can't understand
that. I tested three times with the same result up to one second. The
machines on my LAN are having almost the same configuraion with only couple
differences - my local machine is a Sager (500P) laptop with 1 gig memory,
(LAN) remote (ASUSTeK P4C800 Deluxe motherboard) machine is a desktop with 2
gigs, the processors in both cases are IP 3.2HT, FBS 800, etc. The laptop
CPU has 512 kbytes internal cache, the LAN machine has 1 meg internal cache.
The other parameters are not significant for this case.
The MSSQL Server settings are same for both cases.
Maybe it's just a bug and I shouldn't pay an attention? But why the Query
Analyzer uses the wrong machine when I start the SQL Script? Configuration
problems? All servers are configured in the Enterprise Manager by their
IPs,SqlPort and it shouldn't be a mistake, my home IPs are static.
The funny thing that I saw the same reports in this FIDONET group, when the
script was started locally the CPU load was in some cases from 1-2 to 5-7%
and the duration of this script was very different, like in my case.
So, bug or feature?!
Just D.
Just D. wrote:

> All,
> I found this script in one FIDONET conference and decided to test my servers
> available around. The result is more than strange.
> -- TSQL
> DECLARE @.i INT,@.j INT
> SET @.j=0
> SET @.i=0
> WHILE @.i <= 3000000
> BEGIN
> IF @.i > 100
> SET @.j = @.j+100
> IF @.i < 300
> SET @.j = @.j-200
> IF (@.i%6) = 3
> SET @.j = 356
> IF @.i%37 = 7
> SET @.j = @.j + 343
> SET @.i=@.i+1
> END
> SELECT @.j
> I installed MSSQL Server 2000 on another machine on my home LAN, then logged
> in from the Enterprise Manager, started the Query Analyzer for the LAN
> machine from my local machine and finally started this script - 36 seconds,
> the local CPU load was about 100% for one of two processors, totally 50%.
> Then I closed the Query Analyzer and reopened it on my local machine - same
> script - 5 minutes and 39 seconds, the CPU load was about 5-7%. That's very
> strange how MSSQL Server works. If I start the script on my local machine it
> looks like it works on the LAN machine, but when I start the same script on
> the LAN machine it runs on my own local machine. It can't be a mistake.
> Maybe I'm missing something, but I got an illusion if we run some script
> it's not necessarily will be running on the machine where it should be.
> Finally I started the same script against our production server through the
> Internet - I suspect the the CPU load was about 1-2% for this task because
> it was finished in 24:31, almost 25 minutes!
> I'm not using a SQL Server cluster at home for sure, but I can't understand
> that. I tested three times with the same result up to one second. The
> machines on my LAN are having almost the same configuraion with only couple
> differences - my local machine is a Sager (500P) laptop with 1 gig memory,
> (LAN) remote (ASUSTeK P4C800 Deluxe motherboard) machine is a desktop with 2
> gigs, the processors in both cases are IP 3.2HT, FBS 800, etc. The laptop
> CPU has 512 kbytes internal cache, the LAN machine has 1 meg internal cache.
> The other parameters are not significant for this case.
> The MSSQL Server settings are same for both cases.
> Maybe it's just a bug and I shouldn't pay an attention? But why the Query
> Analyzer uses the wrong machine when I start the SQL Script? Configuration
> problems? All servers are configured in the Enterprise Manager by their
> IPs,SqlPort and it shouldn't be a mistake, my home IPs are static.
> The funny thing that I saw the same reports in this FIDONET group, when the
> script was started locally the CPU load was in some cases from 1-2 to 5-7%
> and the duration of this script was very different, like in my case.
> So, bug or feature?!
> Just D.
>
Well, can you explain what do you mean 'script runs on a wrong machine'?
It runs on a server to which QA or whatever client you are using, is connected...
I will check tomorrow how it works
|||I've had a try running local on a SQL Server and from a client PC connecting
to the SQL Server.
When running locally, the CPU usage hits 100%, with the SQL Server process
taking about 70% and the ISQLW taking up the rest.
When running from a client PC, the ISQLW process is working between 10% to
40% and the SQL Server process on the server is running between 40% to 60%.
The question is why is ISQLW so busy. What is it doing ? I thought it just
submitted the batch and sat back waiting got the result. And it doesn't
really improve when you put this into a Stored Procedure.
Al
"Andrey" wrote:

> Just D. wrote:
>
> Well, can you explain what do you mean 'script runs on a wrong machine'?
> It runs on a server to which QA or whatever client you are using, is connected...
> I will check tomorrow how it works
>
|||"Al" <Al@.discussions.microsoft.com> wrote in message
news:A47458DC-7634-4875-962F-2B4F72380D3B@.microsoft.com...
> I've had a try running local on a SQL Server and from a client PC
> connecting
> to the SQL Server.
> When running locally, the CPU usage hits 100%, with the SQL Server process
> taking about 70% and the ISQLW taking up the rest.
> When running from a client PC, the ISQLW process is working between 10% to
> 40% and the SQL Server process on the server is running between 40% to
> 60%.
> The question is why is ISQLW so busy. What is it doing ? I thought it just
> submitted the batch and sat back waiting got the result. And it doesn't
> really improve when you put this into a Stored Procedure.
It's really interesting. It must be something with DBNETLIB dlls.
RADl0PASlV
|||Tried with osql, using Named Pipes and TCP/IP and the same results for both
When running the SQL as a stored procedure or as a batch, osql is quite busy.
"RADl0PASlV" wrote:

> "Al" <Al@.discussions.microsoft.com> wrote in message
> news:A47458DC-7634-4875-962F-2B4F72380D3B@.microsoft.com...
> It's really interesting. It must be something with DBNETLIB dlls.
> RADl0PASlV
>
>
|||Hi Al,
Are you having only one server registered in EM? Do you have a local and
remote one? It would be interesting to repeat the same that I did - one
local server, one serer on LAN and one server on the Internet.
When you were getting 70% did you try to evaluate the IP traffic? Maybe your
machine was pooling the remote server?
Just D.
" <Al@.discussions.microsoft.com> wrote in message
news:A47458DC-7634-4875-962F-2B4F72380D3B@.microsoft.com...
> I've had a try running local on a SQL Server and from a client PC
> connecting
> to the SQL Server.
> When running locally, the CPU usage hits 100%, with the SQL Server process
> taking about 70% and the ISQLW taking up the rest.
> When running from a client PC, the ISQLW process is working between 10% to
> 40% and the SQL Server process on the server is running between 40% to
> 60%.
> The question is why is ISQLW so busy. What is it doing ? I thought it just
> submitted the batch and sat back waiting got the result. And it doesn't
> really improve when you put this into a Stored Procedure.
|||The cause is the NoCount option.
If this is turned off e.g. you're getting the number of rows effect back,
then the client program (ISQLW or OSQL) is quite busy. When it is turned on,
then the client program isn't eating up any CPU cycles.
In the test across the LAN, the two execution times are 1 minute 40 seconds
for SET NOCOUNT OFF, and 30 seconds for SET NOCOUNT ON.
On face value, this is not suprising, except that the query in question only
returns the row count on the final select statement.
Al

> "Al" <Al@.discussions.microsoft.com> wrote in message
> news:A47458DC-7634-4875-962F-2B4F72380D3B@.microsoft.com...
> It's really interesting. It must be something with DBNETLIB dlls.
> RADl0PASlV
>
|||Hi RADl0PASlV,

> It's really interesting. It must be something with DBNETLIB dlls.
Not only that is interesting. I stopped all computers and connections around
and started this test on my machine - the CPU load is 1-2% and that's all!
Why? If I want to do something, then why this MSSQLServer decides itself how
it should use my resources? I have 3.2 HT processor and I allow MSSQL Server
to use both sub-processors, but it doesn't.
Anyway, that's very strange. Placing the same code to the SP doesn't help,
same result, same duration, same CPU Load.
Just D.

Monday, March 12, 2012

Expired Subscription Clean Up - REPOST

Running SQL 2k / Win 2k
I am getting an error on Replication Monitor->Agents->Misc
Agents->Expired Subscription Clean up that reads 'Executed as user:
ROUSES.COM\Administrator. Invalid object name 'sysarticles'. [SQLSTATE
42S02] (Error 208) Invalid object name 'sysarticleupdates'. [SQLSTATE
42S02] (Error 208) Associated statement is not prepared [SQLSTATE
HY007] (Error 0). The step failed.'
What dB is this table or tables missing from? How do I recreate
them?
AHIA,
Larry...
Sounds like a publication database. For some reason there seems to be an
bogus entry in distribution.dbo.mspublisher_databases or
distribution.dbo.mspublications.
Its looking at the view in sysextendedarticlesview in a publication
database. I can't tell which one it it. Run profiler and look for the db id.
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
"LPR-3rd" <lreames@.gmail.com> wrote in message
news:1140014373.809026.60790@.g47g2000cwa.googlegro ups.com...
> Running SQL 2k / Win 2k
> I am getting an error on Replication Monitor->Agents->Misc
> Agents->Expired Subscription Clean up that reads 'Executed as user:
> ROUSES.COM\Administrator. Invalid object name 'sysarticles'. [SQLSTATE
> 42S02] (Error 208) Invalid object name 'sysarticleupdates'. [SQLSTATE
> 42S02] (Error 208) Associated statement is not prepared [SQLSTATE
> HY007] (Error 0). The step failed.'
>
> What dB is this table or tables missing from? How do I recreate
> them?
>
> AHIA,
> Larry...
>

Sunday, February 26, 2012

Expand Database -- How long ??

I am running SQL 6.5 SP5a and am trying to expand my SMS
database from 195mb to 11GB.
When I run it the disks seem to be doing the work but
Enterprise manager looks like it has stopped responding.
Does this process take very long ' It is running now for
over 1hr.
ericWith 6.5, even on fairly modern disk systems, I'm thinking at least a couple
hours for that size expansion. You can get a rough estimate by looking at
perfmon disk bytes/sec and dividing ~11 Billion by that number to determine
the approximate elapsed time +/- 1000% :-)
And yes, EM will appear unresponsive.
----
The views expressed here are my own
and not of my employer.
----
"Dirc" <dirc.khan-evans@.eqos.com> wrote in message
news:OqEMt2SUDHA.1712@.tk2msftngp13.phx.gbl...
> Yes, usually takes a lot of time... esp with 6.5
>
> "Eric" <derick@.bge.ie> wrote in message
> news:0d9c01c35119$45664b70$a101280a@.phx.gbl...
> > I am running SQL 6.5 SP5a and am trying to expand my SMS
> > database from 195mb to 11GB.
> >
> > When I run it the disks seem to be doing the work but
> > Enterprise manager looks like it has stopped responding.
> > Does this process take very long ' It is running now for
> > over 1hr.
> >
> > eric
>

Friday, February 24, 2012

ExecutionLog - times

I am using the ExecutionLog to find longest running report occurences, and
some issues arise.
Firstly can anyone tell me what the 'TimeProcessing' column covers, as
sometimes this is large ie for my reports 25 seconds. I can understand the
others ie TimeDataRetrieval and TimeRendering. I'm more a db than dev
person, so may be missing something obvious here.
Also, adding up these 3 times in milliseconds I assume should give you the
difference between TimeStart and TimeEnd, but this often varies, by as much
as 50 seconds. Any comments on this one?
Thanks
CR.TimeDataRetrieval, TimeProcessing, and TimeRendering show the time in
milliseconds. The TimeProcessing portion describes how much time the
processing engine spends to "process" the data. This includes grouping,
sorting, filtering of data, generating the output-format independent report
layout, etc.
If a report has multiple data sources, the RS processing engine performs
data retrieval and data processing in parallel (multiple threads) for these
data sources. However, there is only one row per report execution in the
execution log. In this case we will merge the retrieval and processing times
from multiple threads and use it for the execution log. In this situation
the sum of TimeDataRetrieval + TimeProcessing + TimeRendering is very likely
different than EndTime - StartTime.
Does this explain what you see in the execution log?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"CR" <CR@.discussions.microsoft.com> wrote in message
news:3FAC5B1D-00E8-44ED-BFF3-6DCAE8DBBCC9@.microsoft.com...
>I am using the ExecutionLog to find longest running report occurences, and
> some issues arise.
> Firstly can anyone tell me what the 'TimeProcessing' column covers, as
> sometimes this is large ie for my reports 25 seconds. I can understand
> the
> others ie TimeDataRetrieval and TimeRendering. I'm more a db than dev
> person, so may be missing something obvious here.
> Also, adding up these 3 times in milliseconds I assume should give you the
> difference between TimeStart and TimeEnd, but this often varies, by as
> much
> as 50 seconds. Any comments on this one?
> Thanks
> CR.|||Thank you, this is very helpful.
Summing of the 3 times and comparing to the Start and End times: I think
you are saying that the 3 times added will be greater than the Start and End?
What I'm seeing is the opposite. It's occuring only on my most complicated
reports, never on the simple ones. There are times when the 3 times are all
0 (in seconds), but the Start-End is 72 seconds, and for other runs of the
same report with similar parameters one or more of the times are 0 and the
other times are 20sec +, with the Start-End difference still 40+ seconds, ie
20 seconds has been 'lost'.
I'm seeing this on most runs of the more complex reports, of which there are
4 that I track in detail. Any comments on this one?
Secondly, I was wondering which set of data ie 3 times or Start-End was more
reliable when determining how long reports run; from what you've said
Start-End is the one to use, so thanks.
"Robert Bruckner [MSFT]" wrote:
> TimeDataRetrieval, TimeProcessing, and TimeRendering show the time in
> milliseconds. The TimeProcessing portion describes how much time the
> processing engine spends to "process" the data. This includes grouping,
> sorting, filtering of data, generating the output-format independent report
> layout, etc.
> If a report has multiple data sources, the RS processing engine performs
> data retrieval and data processing in parallel (multiple threads) for these
> data sources. However, there is only one row per report execution in the
> execution log. In this case we will merge the retrieval and processing times
> from multiple threads and use it for the execution log. In this situation
> the sum of TimeDataRetrieval + TimeProcessing + TimeRendering is very likely
> different than EndTime - StartTime.
> Does this explain what you see in the execution log?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "CR" <CR@.discussions.microsoft.com> wrote in message
> news:3FAC5B1D-00E8-44ED-BFF3-6DCAE8DBBCC9@.microsoft.com...
> >I am using the ExecutionLog to find longest running report occurences, and
> > some issues arise.
> >
> > Firstly can anyone tell me what the 'TimeProcessing' column covers, as
> > sometimes this is large ie for my reports 25 seconds. I can understand
> > the
> > others ie TimeDataRetrieval and TimeRendering. I'm more a db than dev
> > person, so may be missing something obvious here.
> >
> > Also, adding up these 3 times in milliseconds I assume should give you the
> > difference between TimeStart and TimeEnd, but this often varies, by as
> > much
> > as 50 seconds. Any comments on this one?
> >
> > Thanks
> > CR.
>
>|||I meant that for a report with just 1 data source the following is always
true:
(TimeDataRetrieval + TimeProcessing + TimeRendering) <= (EndTime -
StartTime)
For reports with multiple data sources, this condition is not always true
because of multi-threaded execution. If certain columns (TimeDataRetrieval
and/or TimeProcessing) are 0, this means that the report was processed and
rendered from the report server's cache. If both, TimeDataRetrieval and
TimeProcessing are 0, the report was rendered from a history snapshot or
execution snapshot without re-processing.
For reports with single data sources, TimeDataRetrieval, TimeProcessing, and
TimeRendering are very reliable. For multi-threaded executions of one report
you may want to look at StartTime and EndTime.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"CR" <CR@.discussions.microsoft.com> wrote in message
news:7C2A33E2-E17B-4072-95ED-BC38B34288ED@.microsoft.com...
> Thank you, this is very helpful.
> Summing of the 3 times and comparing to the Start and End times: I think
> you are saying that the 3 times added will be greater than the Start and
> End?
> What I'm seeing is the opposite. It's occuring only on my most
> complicated
> reports, never on the simple ones. There are times when the 3 times are
> all
> 0 (in seconds), but the Start-End is 72 seconds, and for other runs of the
> same report with similar parameters one or more of the times are 0 and the
> other times are 20sec +, with the Start-End difference still 40+ seconds,
> ie
> 20 seconds has been 'lost'.
> I'm seeing this on most runs of the more complex reports, of which there
> are
> 4 that I track in detail. Any comments on this one?
> Secondly, I was wondering which set of data ie 3 times or Start-End was
> more
> reliable when determining how long reports run; from what you've said
> Start-End is the one to use, so thanks.
> "Robert Bruckner [MSFT]" wrote:
>> TimeDataRetrieval, TimeProcessing, and TimeRendering show the time in
>> milliseconds. The TimeProcessing portion describes how much time the
>> processing engine spends to "process" the data. This includes grouping,
>> sorting, filtering of data, generating the output-format independent
>> report
>> layout, etc.
>> If a report has multiple data sources, the RS processing engine performs
>> data retrieval and data processing in parallel (multiple threads) for
>> these
>> data sources. However, there is only one row per report execution in the
>> execution log. In this case we will merge the retrieval and processing
>> times
>> from multiple threads and use it for the execution log. In this situation
>> the sum of TimeDataRetrieval + TimeProcessing + TimeRendering is very
>> likely
>> different than EndTime - StartTime.
>> Does this explain what you see in the execution log?
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "CR" <CR@.discussions.microsoft.com> wrote in message
>> news:3FAC5B1D-00E8-44ED-BFF3-6DCAE8DBBCC9@.microsoft.com...
>> >I am using the ExecutionLog to find longest running report occurences,
>> >and
>> > some issues arise.
>> >
>> > Firstly can anyone tell me what the 'TimeProcessing' column covers, as
>> > sometimes this is large ie for my reports 25 seconds. I can understand
>> > the
>> > others ie TimeDataRetrieval and TimeRendering. I'm more a db than dev
>> > person, so may be missing something obvious here.
>> >
>> > Also, adding up these 3 times in milliseconds I assume should give you
>> > the
>> > difference between TimeStart and TimeEnd, but this often varies, by as
>> > much
>> > as 50 seconds. Any comments on this one?
>> >
>> > Thanks
>> > CR.
>>|||Clarification to my previous posting: I meant reports with just 1 dataset.
If reports have 1 data source, but multiple data sets and "use single
transaction" is not selected, the processing engine will still use
multi-threaded data retrieval and processing.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Robert Bruckner [MSFT]" <robruc@.online.microsoft.com> wrote in message
news:uV22MX%23FFHA.1528@.TK2MSFTNGP09.phx.gbl...
>I meant that for a report with just 1 data source the following is always
>true:
> (TimeDataRetrieval + TimeProcessing + TimeRendering) <= (EndTime -
> StartTime)
> For reports with multiple data sources, this condition is not always true
> because of multi-threaded execution. If certain columns (TimeDataRetrieval
> and/or TimeProcessing) are 0, this means that the report was processed and
> rendered from the report server's cache. If both, TimeDataRetrieval and
> TimeProcessing are 0, the report was rendered from a history snapshot or
> execution snapshot without re-processing.
> For reports with single data sources, TimeDataRetrieval, TimeProcessing,
> and TimeRendering are very reliable. For multi-threaded executions of one
> report you may want to look at StartTime and EndTime.
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> "CR" <CR@.discussions.microsoft.com> wrote in message
> news:7C2A33E2-E17B-4072-95ED-BC38B34288ED@.microsoft.com...
>> Thank you, this is very helpful.
>> Summing of the 3 times and comparing to the Start and End times: I think
>> you are saying that the 3 times added will be greater than the Start and
>> End?
>> What I'm seeing is the opposite. It's occuring only on my most
>> complicated
>> reports, never on the simple ones. There are times when the 3 times are
>> all
>> 0 (in seconds), but the Start-End is 72 seconds, and for other runs of
>> the
>> same report with similar parameters one or more of the times are 0 and
>> the
>> other times are 20sec +, with the Start-End difference still 40+ seconds,
>> ie
>> 20 seconds has been 'lost'.
>> I'm seeing this on most runs of the more complex reports, of which there
>> are
>> 4 that I track in detail. Any comments on this one?
>> Secondly, I was wondering which set of data ie 3 times or Start-End was
>> more
>> reliable when determining how long reports run; from what you've said
>> Start-End is the one to use, so thanks.
>> "Robert Bruckner [MSFT]" wrote:
>> TimeDataRetrieval, TimeProcessing, and TimeRendering show the time in
>> milliseconds. The TimeProcessing portion describes how much time the
>> processing engine spends to "process" the data. This includes grouping,
>> sorting, filtering of data, generating the output-format independent
>> report
>> layout, etc.
>> If a report has multiple data sources, the RS processing engine performs
>> data retrieval and data processing in parallel (multiple threads) for
>> these
>> data sources. However, there is only one row per report execution in the
>> execution log. In this case we will merge the retrieval and processing
>> times
>> from multiple threads and use it for the execution log. In this
>> situation
>> the sum of TimeDataRetrieval + TimeProcessing + TimeRendering is very
>> likely
>> different than EndTime - StartTime.
>> Does this explain what you see in the execution log?
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "CR" <CR@.discussions.microsoft.com> wrote in message
>> news:3FAC5B1D-00E8-44ED-BFF3-6DCAE8DBBCC9@.microsoft.com...
>> >I am using the ExecutionLog to find longest running report occurences,
>> >and
>> > some issues arise.
>> >
>> > Firstly can anyone tell me what the 'TimeProcessing' column covers, as
>> > sometimes this is large ie for my reports 25 seconds. I can
>> > understand
>> > the
>> > others ie TimeDataRetrieval and TimeRendering. I'm more a db than dev
>> > person, so may be missing something obvious here.
>> >
>> > Also, adding up these 3 times in milliseconds I assume should give you
>> > the
>> > difference between TimeStart and TimeEnd, but this often varies, by as
>> > much
>> > as 50 seconds. Any comments on this one?
>> >
>> > Thanks
>> > CR.
>>
>|||Robert,
The reports with the Time summing issues have multiple datasets, up to 7 in
fact, and the ones with single datasets I am getting no summing issues at
all, as you have explained.
On the multi-dataset reports with Time summing issues, there is no cacheing
or snapshots on any of the reports (in fact I should set some up), and still
the 3 Time values can be all 0s, with a 72 second Start-End difference. I'm
thinking therefore that the merging algorithm for the 3 times is the
significant issue. BTW, from observation in my reports only, the 3 times are
always understated not overstated ie they always sum to less than Start-End.
Does this sound right to you?
Thanks for your help this is very useful. My interest in this is to reduce
report execution times, and I'm using the 3 times to pinpoint the bottlenecks
where possible.
"Robert Bruckner [MSFT]" wrote:
> Clarification to my previous posting: I meant reports with just 1 dataset.
> If reports have 1 data source, but multiple data sets and "use single
> transaction" is not selected, the processing engine will still use
> multi-threaded data retrieval and processing.
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Robert Bruckner [MSFT]" <robruc@.online.microsoft.com> wrote in message
> news:uV22MX%23FFHA.1528@.TK2MSFTNGP09.phx.gbl...
> >I meant that for a report with just 1 data source the following is always
> >true:
> > (TimeDataRetrieval + TimeProcessing + TimeRendering) <= (EndTime -
> > StartTime)
> >
> > For reports with multiple data sources, this condition is not always true
> > because of multi-threaded execution. If certain columns (TimeDataRetrieval
> > and/or TimeProcessing) are 0, this means that the report was processed and
> > rendered from the report server's cache. If both, TimeDataRetrieval and
> > TimeProcessing are 0, the report was rendered from a history snapshot or
> > execution snapshot without re-processing.
> >
> > For reports with single data sources, TimeDataRetrieval, TimeProcessing,
> > and TimeRendering are very reliable. For multi-threaded executions of one
> > report you may want to look at StartTime and EndTime.
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> >
> >
> > "CR" <CR@.discussions.microsoft.com> wrote in message
> > news:7C2A33E2-E17B-4072-95ED-BC38B34288ED@.microsoft.com...
> >> Thank you, this is very helpful.
> >>
> >> Summing of the 3 times and comparing to the Start and End times: I think
> >> you are saying that the 3 times added will be greater than the Start and
> >> End?
> >> What I'm seeing is the opposite. It's occuring only on my most
> >> complicated
> >> reports, never on the simple ones. There are times when the 3 times are
> >> all
> >> 0 (in seconds), but the Start-End is 72 seconds, and for other runs of
> >> the
> >> same report with similar parameters one or more of the times are 0 and
> >> the
> >> other times are 20sec +, with the Start-End difference still 40+ seconds,
> >> ie
> >> 20 seconds has been 'lost'.
> >>
> >> I'm seeing this on most runs of the more complex reports, of which there
> >> are
> >> 4 that I track in detail. Any comments on this one?
> >>
> >> Secondly, I was wondering which set of data ie 3 times or Start-End was
> >> more
> >> reliable when determining how long reports run; from what you've said
> >> Start-End is the one to use, so thanks.
> >>
> >> "Robert Bruckner [MSFT]" wrote:
> >>
> >> TimeDataRetrieval, TimeProcessing, and TimeRendering show the time in
> >> milliseconds. The TimeProcessing portion describes how much time the
> >> processing engine spends to "process" the data. This includes grouping,
> >> sorting, filtering of data, generating the output-format independent
> >> report
> >> layout, etc.
> >>
> >> If a report has multiple data sources, the RS processing engine performs
> >> data retrieval and data processing in parallel (multiple threads) for
> >> these
> >> data sources. However, there is only one row per report execution in the
> >> execution log. In this case we will merge the retrieval and processing
> >> times
> >> from multiple threads and use it for the execution log. In this
> >> situation
> >> the sum of TimeDataRetrieval + TimeProcessing + TimeRendering is very
> >> likely
> >> different than EndTime - StartTime.
> >>
> >> Does this explain what you see in the execution log?
> >>
> >> --
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >>
> >> "CR" <CR@.discussions.microsoft.com> wrote in message
> >> news:3FAC5B1D-00E8-44ED-BFF3-6DCAE8DBBCC9@.microsoft.com...
> >> >I am using the ExecutionLog to find longest running report occurences,
> >> >and
> >> > some issues arise.
> >> >
> >> > Firstly can anyone tell me what the 'TimeProcessing' column covers, as
> >> > sometimes this is large ie for my reports 25 seconds. I can
> >> > understand
> >> > the
> >> > others ie TimeDataRetrieval and TimeRendering. I'm more a db than dev
> >> > person, so may be missing something obvious here.
> >> >
> >> > Also, adding up these 3 times in milliseconds I assume should give you
> >> > the
> >> > difference between TimeStart and TimeEnd, but this often varies, by as
> >> > much
> >> > as 50 seconds. Any comments on this one?
> >> >
> >> > Thanks
> >> > CR.
> >>
> >>
> >>
> >
> >
>
>

Sunday, February 19, 2012

Execution 'rgaerh55bisinzr1nlmr13jk' cannot be found (rsExecutionN

I have a SSRS 2005 SP1 running on Windows 2003 SRS. On reports with
parameters we are getting the following error.
Execution 'rgaerh55bisinzr1nlmr13jk' cannot be found (rsExecutionNotFound).
Anyone else seen this? Any suggestions on how to resolve this?
Thanks.Yes, we are seeing the same thing.
In our case, the report runs the first time, with the default parameters --
which says that there's an aweful lot of setup that is functioning just fine.
Then, upon changing a parameter and pressing "View Report", the following
obscure error shows up:
Execution 'qr1hx055hlpkx445xluqd4yv' cannot be found (rsExecutionNotFound)
It also occurs when simply pressing "View Report", with no changes to
parameters.
"rdwill1" wrote:
> I have a SSRS 2005 SP1 running on Windows 2003 SRS. On reports with
> parameters we are getting the following error.
> Execution 'rgaerh55bisinzr1nlmr13jk' cannot be found (rsExecutionNotFound).
> Anyone else seen this? Any suggestions on how to resolve this?
> Thanks.

Execution plan, I/O, CPU cost?

Hey there ...
I'm trying to figure out what these numbers can tell me.
Running this one -
select proptrans.proptranstext as groupname
from propval
inner join proptrans
on propval.propvalguid = proptrans.propvalguid
where propval.propownerrefguid = '12121'
and propval.propguid = 'name'
Gives me 6 in I/O, 7 in CPU cost, in a clustered index seek, on both
propval, and proptrans.
What does these numbers tell me? Is it slow, fast etc?
I doubt, therefore I might be.
What is propval and proptrans?
Simon Worth
Kim Noer wrote:
> Hey there ...
> I'm trying to figure out what these numbers can tell me.
> Running this one -
> select proptrans.proptranstext as groupname
> from propval
> inner join proptrans
> on propval.propvalguid = proptrans.propvalguid
> where propval.propownerrefguid = '12121'
> and propval.propguid = 'name'
> Gives me 6 in I/O, 7 in CPU cost, in a clustered index seek, on both
> propval, and proptrans.
> What does these numbers tell me? Is it slow, fast etc?
>
|||Kim Noer wrote:
> Hey there ...
> I'm trying to figure out what these numbers can tell me.
> Running this one -
> select proptrans.proptranstext as groupname
> from propval
> inner join proptrans
> on propval.propvalguid = proptrans.propvalguid
> where propval.propownerrefguid = '12121'
> and propval.propguid = 'name'
> Gives me 6 in I/O, 7 in CPU cost, in a clustered index seek, on both
> propval, and proptrans.
> What does these numbers tell me? Is it slow, fast etc?
The important thing is that you are seeing a clustered index seek, which
is good. I wouldn't worry about the numbers themselves. The cost only
helps, in my opinion, when you run more than one version of a query in
the same batch. Query Analyzer shows you are cost differential between
the queries.
David Gugick
Imceda Software
www.imceda.com
|||"David Gugick" <davidg-nospam@.imceda.com> wrote in message
news:%233P9mGELFHA.1284@.TK2MSFTNGP14.phx.gbl

> The important thing is that you are seeing a clustered index seek,
> which is good. I wouldn't worry about the numbers themselves. The
> cost only helps, in my opinion, when you run more than one version of
> a query in the same batch. Query Analyzer shows you are cost
> differential between the queries.
I don't worry about the cost numbers, but it's slightly annoying to me, that
they are there, and there isn't really any explaination on them at all.
More and one version, with that you mean the operation being done, but in
different ways (like joins vs. select in etc etc)?
I doubt, therefore I might be.