Showing posts with label strange. Show all posts
Showing posts with label strange. Show all posts

Thursday, February 16, 2012

Accessing SQL Server 2005 via Scheduled Task

I have a strange problem that I think deals with security on SQL 2005.
I have a scheduled task that runs on a Windows 2000 machine. It calls
a vb script which creates a connection to SQL Server.

We migrated a database from SQL 2000 to 2005 which is on a different
box. I changed the connection in the vb script to use the new sql
server. The original connection to SQL 2000 used the 'sa' account
coded into the connection string , which we don't want to use on the
new server, so I changed the connection string in the script to use
the below login information.

Const strConnection = "Provider=SQLOLEDB;Data
Source=SQLServer;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=database;

I created a domain user and gave it dbo rights on the new database on
SQL 2005 as well as administrative rights on the local machine and the
network. The task runs fine for a while and then it will fail to
start. I have looked in the event log as well as the SQL log and have
not found anything else that ran when my task failed. Once it has
failed, if I manually run the vb script on the 2000 machine, it runs
just fine, but the schedule won't work. If I change the name of the
user that is running the scheduled task, it will begin working again.
I have run the profiler on SQL 2005 and watched the scheduled task
login as the correct user and update the database. There is no
pattern to when the scheduled task will stop running. This has been
happening for a few days now.

This script and scheduled task worked fine for over a year on the
machine when it logged into SQL 2000 and nothing else has changed,
which makes me think it is related to the SQL 2005 server. Any ideas?Hi

"Myster Edd" <mysteredd@.gmail.comwrote in message
news:1179861414.783713.3260@.z24g2000prd.googlegrou ps.com...

Quote:

Originally Posted by

>I have a strange problem that I think deals with security on SQL 2005.
I have a scheduled task that runs on a Windows 2000 machine. It calls
a vb script which creates a connection to SQL Server.
>
We migrated a database from SQL 2000 to 2005 which is on a different
box. I changed the connection in the vb script to use the new sql
server. The original connection to SQL 2000 used the 'sa' account
coded into the connection string , which we don't want to use on the
new server, so I changed the connection string in the script to use
the below login information.
>
Const strConnection = "Provider=SQLOLEDB;Data
Source=SQLServer;Integrated Security=SSPI;Persist Security
Info=False;Initial Catalog=database;
>
I created a domain user and gave it dbo rights on the new database on
SQL 2005 as well as administrative rights on the local machine and the
network. The task runs fine for a while and then it will fail to
start. I have looked in the event log as well as the SQL log and have
not found anything else that ran when my task failed. Once it has
failed, if I manually run the vb script on the 2000 machine, it runs
just fine, but the schedule won't work. If I change the name of the
user that is running the scheduled task, it will begin working again.
I have run the profiler on SQL 2005 and watched the scheduled task
login as the correct user and update the database. There is no
pattern to when the scheduled task will stop running. This has been
happening for a few days now.
>
This script and scheduled task worked fine for over a year on the
machine when it logged into SQL 2000 and nothing else has changed,
which makes me think it is related to the SQL 2005 server. Any ideas?
>


I assume that the task worked fine when you profiled it on the SQL 2005
server? Have you run a server side trace to trap this being run when it
fails?
How often does this task run?
As this sounds like a windows scheduled task are you using SQL Express?
Have you installed any service packs on the SQL Server (SELECT @.@.VERSION)?
Does the schedule run on a different machine to the server?
Do you run AV or IDS software on the database server?

John

Sunday, February 12, 2012

Accessing Reporting Services Reports from Mac

Hi all.
Using a MacMini to access a Reporting Services 2000 installation and getting
some very strange results.
When using Safari I can browse the folders of the server, and can see the
reports, but they will not render at all.
In IE, I can render the reports but encounter missing entries in my
parameterised drop downs, and cannot seem to export to any format, PDF/Excel
etc.
Anyone come across this behaviour before, and know if it's 'by design' or
avoidable at all?
Many thanks,
Paul.I have not heard of very much success at all with using MACs with RS2000. It
might be better with RS 2005 but I don't know.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Paul Paintin" <paul.paintin@.virgin.net> wrote in message
news:eRGt$ZqxGHA.4112@.TK2MSFTNGP05.phx.gbl...
> Hi all.
> Using a MacMini to access a Reporting Services 2000 installation and
> getting some very strange results.
> When using Safari I can browse the folders of the server, and can see the
> reports, but they will not render at all.
> In IE, I can render the reports but encounter missing entries in my
> parameterised drop downs, and cannot seem to export to any format,
> PDF/Excel etc.
> Anyone come across this behaviour before, and know if it's 'by design' or
> avoidable at all?
> Many thanks,
> Paul.
>|||Update: tried accessing RS2005, exactly the same results - no exporting,
blank drop down parameter values.
Paul.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:ud7kyPsxGHA.3492@.TK2MSFTNGP02.phx.gbl...
>I have not heard of very much success at all with using MACs with RS2000.
>It might be better with RS 2005 but I don't know.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
> "Paul Paintin" <paul.paintin@.virgin.net> wrote in message
> news:eRGt$ZqxGHA.4112@.TK2MSFTNGP05.phx.gbl...
>> Hi all.
>> Using a MacMini to access a Reporting Services 2000 installation and
>> getting some very strange results.
>> When using Safari I can browse the folders of the server, and can see the
>> reports, but they will not render at all.
>> In IE, I can render the reports but encounter missing entries in my
>> parameterised drop downs, and cannot seem to export to any format,
>> PDF/Excel etc.
>> Anyone come across this behaviour before, and know if it's 'by design' or
>> avoidable at all?
>> Many thanks,
>> Paul.
>|||In article <#HPztdsxGHA.5068@.TK2MSFTNGP02.phx.gbl>,
"Paul Paintin" <paul.paintin@.virgin.net> wrote:
> Update: tried accessing RS2005, exactly the same results - no exporting,
> blank drop down parameter values.
> Paul.
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:ud7kyPsxGHA.3492@.TK2MSFTNGP02.phx.gbl...
> >I have not heard of very much success at all with using MACs with RS2000.
> >It might be better with RS 2005 but I don't know.
Hi Paul!
I'm not familiar with Reporting Services. Does it require ActiveX? If
so, this is Windows only and won't work with any browser on a Mac.
If it doesn't require ActiveX, try a different web browser such as
Firefox. Firefox uses a different rendering engine than Safari and we
have found we're able to access more Windows-centric sites with it. As
for IE for Mac, that was discontinued a few years ago and was finally
pulled off Microsoft's website earlier this year.
Hope this helps! bill
--
William M. Smith
(Microsoft Interop MVP - Mac/Windows)