Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DTS Through ASP Page permissions

 
   Database Help (Home) -> DTS RSS
Next:  File in Use error after Database Split  
Author Message
Tim

External


Since: Dec 03, 2008
Posts: 1



(Msg. 1) Posted: Wed Dec 03, 2008 5:56 pm
Post subject: DTS Through ASP Page permissions
Archived from groups: microsoft>public>sqlserver>dts (more info?)

I'm running a DTS through a stored procedure called from an ASP page
on Server B.

Server B is also the SQL Server.

The DTS package is supposed to access a file on Server A.

I'm having permission issues in running this through the web. I've
tried giving IUSER_ServerB and IWAM_ServerB full permission on the
file but that didn't work.

What account needs permissions on the file? Do I need to add it
differently that I would the IUser/IWAM accounts?

Tim

 >> Stay informed about: DTS Through ASP Page permissions 
Back to top
Login to vote
Russell Fields

External


Since: Jan 10, 2008
Posts: 608



(Msg. 2) Posted: Tue Dec 09, 2008 9:41 am
Post subject: Re: DTS Through ASP Page permissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tim,

What version of SQL Server are you running? When you say "running a DTS
through a stored procedure", do you mean that you are starting a SQL Agent
job, using xp_cmdshell to run DTSRUN.exe, or something else?

If it is a SQL Agent job running as a sysadmin account, then the DTS would
be running as the SQL Server service account. If a SQL Agent job is running
as a non-sysadmin, then the job will run as a proxy account. (SQL Server
2000 only has one, but 2005 allows you to define many SQL Agent proxy
accounts.)

If you are running it via xp_cmdshell, the SQL Agent Proxy Account (2000) or
(2005) the ##xp_cmdshell_proxy_account## credential's domain login identity.

RLF

"Tim" wrote in message

> I'm running a DTS through a stored procedure called from an ASP page
> on Server B.
>
> Server B is also the SQL Server.
>
> The DTS package is supposed to access a file on Server A.
>
> I'm having permission issues in running this through the web. I've
> tried giving IUSER_ServerB and IWAM_ServerB full permission on the
> file but that didn't work.
>
> What account needs permissions on the file? Do I need to add it
> differently that I would the IUser/IWAM accounts?
>
> Tim

 >> Stay informed about: DTS Through ASP Page permissions 
Back to top
Login to vote
JM

External


Since: Jan 25, 2009
Posts: 2



(Msg. 3) Posted: Sun Jan 25, 2009 10:54 am
Post subject: Re: DTS Through ASP Page permissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Russell,

Thanks for the response and sorry for the late response. My priorities
got shifted for awhile and now I'm back on this.

I am using SQL Server 2000. I currently have a stored procedure that
is using xp_cmdshell to run DTSRUN.

I was trying to get the procedure to start a SQL Agent job but was
unsuccessful that way.

Also, do you know of a way to return an error if the DTS fails? I have
no way of knowing except to compare the number of rows in the table
before and after the job runs.

Thanks,

Tim



On Dec 9 2008, 9:41 am, "Russell Fields"
wrote:
> Tim,
>
> What version of SQL Server are you running?  When you say "running a DTS
> through a stored procedure", do you mean that you are starting a SQL Agent
> job, using xp_cmdshell to run DTSRUN.exe, or something else?
>
> If it is a SQL Agent job running as a sysadmin account, then the DTS would
> be running as the SQL Server service account.  If a SQL Agent job is running
> as a non-sysadmin, then the job will run as a proxy account.  (SQL Server
> 2000 only has one, but 2005 allows you to define many SQL Agent proxy
> accounts.)
>
> If you are running it via xp_cmdshell, the SQL Agent Proxy Account (2000) or
> (2005) the ##xp_cmdshell_proxy_account## credential's domain login identity.
>
> RLF
>
> "Tim" wrote in message
>
>
>
>
>
> > I'm running a DTS through a stored procedure called from an ASP page
> > on Server B.
>
> > Server B is also the SQL Server.
>
> > The DTS package is supposed to access a file on Server A.
>
> > I'm having permission issues in running this through the web. I've
> > tried giving IUSER_ServerB and IWAM_ServerB full permission on the
> > file but that didn't work.
>
> > What account needs permissions on the file? Do I need to add it
> > differently that I would the IUser/IWAM accounts?
>
> > Tim- Hide quoted text -
>
> - Show quoted text -
 >> Stay informed about: DTS Through ASP Page permissions 
Back to top
Login to vote
JM

External


Since: Jan 25, 2009
Posts: 2



(Msg. 4) Posted: Tue Jan 27, 2009 9:36 am
Post subject: Re: DTS Through ASP Page permissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the ideas.

I will give them a try this week and let you know how it turns out.

I am running an asp page calling the stored proc. I was hoping there
was a way to have the asp page receive the error if it happened. I may
have to capture the log file and display it or a portion somehow on
the page.

Thanks,

Tim

On Jan 27, 12:00 pm, "tbradshaw via SQLMonster.com"
wrote:
> Hello Tim,
>
> Russell has good advice.  You also asked about returning an error.  To where?
>
> I have never tried to execute a package from within a stored procedure, but
> when I execute a package from a SQL Agent job using DTSRUN, the job will
> report failure when there is a failure within DTS.  So, perhaps on the next
> line following your DTSRUN, you could check @@ERROR for success/failure.
> Likewise you could throw an exception up the call chain back to your ASP page.
>
> In addition, you can capture your DTS execution in a log file.  In the
> designer window, right-click on an empty space & choose "package properties".
> In the logging tab, you can log to either SQL server or to an error file.
> For simplicity, I log to Error File by providing a path to a text file.
>
> Fair Warning:  Logging appends data to the file for each run, so you'll need
> some outside process to empty it from time to time.
>
> Let us know how you make out.
>
> Regards, Tom
>
> Thomas Bradshaw
> Data Integration Services
> MyWebGrocer
>
> --
> Message posted via SQLMonster.comhttp://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-dts/200901/1
 >> Stay informed about: DTS Through ASP Page permissions 
Back to top
Login to vote
tbradshaw via SQLMonster.

External


Since: Jan 27, 2009
Posts: 2



(Msg. 5) Posted: Tue Jan 27, 2009 12:25 pm
Post subject: Re: DTS Through ASP Page permissions [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello Tim,

Russell has good advice. You also asked about returning an error. To where?

I have never tried to execute a package from within a stored procedure, but
when I execute a package from a SQL Agent job using DTSRUN, the job will
report failure when there is a failure within DTS. So, perhaps on the next
line following your DTSRUN, you could check @@ERROR for success/failure.
Likewise you could throw an exception up the call chain back to your ASP page.


In addition, you can capture your DTS execution in a log file. In the
designer window, right-click on an empty space & choose "package properties".
In the logging tab, you can log to either SQL server or to an error file.
For simplicity, I log to Error File by providing a path to a text file.

Fair Warning: Logging appends data to the file for each run, so you'll need
some outside process to empty it from time to time.

Let us know how you make out.

Regards, Tom

Thomas Bradshaw
Data Integration Services
MyWebGrocer

--
Message posted via SQLMonster.com
http://www.sqlmonster.com/Uwe/Forums.aspx/sql-server-dts/200901/1
 >> Stay informed about: DTS Through ASP Page permissions 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Problems with code page in Vista - Hi I have a local development machine running on Windows Vista SP 1. My package ( in SSIS 2005 ) conncets to a local DB ( in dBase ) and derives a new column with codepage 865 ( OEM Nordic ). This doesn't work and I get wrong charachters into my..

DTS to import data from web page - One of our business partners provides us with product price and inventory via a web page. To manually access this data we go to: http://website.com.com/ecom/inventory.asp?custid=1234567&pwd=999777 The information then appears as ..

DTS workflow failure - I create a package to call other packages in one workflow ,it's very similar as below: Steps----on success--->step2----on success---->step3 - -----on failure--->step4...

csv to multiple tables - I have a CSV file like this: "fieldValue1","fieldValue2","fieldValue3","fieldValue4" I'd like to create a DTS package which dose the following operation on the CSV file: 1) Inserts "fieldValue1" into ...

Linked SQL Server to Access - Hi, I now this question has been posted a few times, but I did not find an answer. I have a linked server on my SQL server to an access database via a mapped drive on a domain. (2 computers, one with SQL server and the other has the access database) ...
   Database Help (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]