dbTalk Databases Forums  

permission problems during the execution of a vbscript step.

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss permission problems during the execution of a vbscript step. in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
no.mercy
 
Posts: n/a

Default permission problems during the execution of a vbscript step. - 11-26-2008 , 08:16 AM






Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM






Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #3  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #4  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #5  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #6  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #7  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #8  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
  #9  
Old   
Todd C
 
Posts: n/a

Default RE: permission problems during the execution of a vbscript step. - 12-02-2008 , 08:11 AM



Luciano:

You need to grant FSO permissions to the account that is running SQL Server.
If it is "Local System" and the FSO's will be on a network share somewhere,
you are out of luck as a "Local System" account will not be recognized
outside the machine. You may need to create a special Domain login for the
purpose of a SQL Service Startup Account.

Read Books On Line for more info on SQL Starup accounts.
--
Todd C

[If this response was helpful, please indicate by clicking the appropriate
answer at the bottom]


"no.mercy" wrote:

Quote:
Hi all,
time ago i've created some dts packages to load excel files into my
db. Last week my boss asked me to adapt this packages to the new
sqlserver installed in our site. For time reasons i've choosen to do
it importing the packages into 2005 instead of develope all the
packages using SSIS.
The import work was really quick and all the packages are wotking in
the new server.
I also developed a procedure to launch this packages from an sql query
windows. The problem is that launching the packages using this stored
procedure tha package fail. The failure always happen in the same step
(a vbscript task just executing the creation of file system object.).
what i found was that launching the dts from the designer this step is
executed using my login name, while if the package is launched by the
stored procedure the step is executed using the "system" user. so this
mean that the system user cannot create an fso. now... i really don't
know how to solve this situation: is the last step to finish a work
and i really don't know what direction i have to follow. any
suggestion??
thanks in advance and sorry for my english, hope i was clair in
explaining the problem.
Luciano


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.