Ask a Question related to ASP Database, Design and Development.
-
JT #1
asp code jumps ahead of dts package results
ok here is my predicament -
i have an asp page that calls a dts package to decrypt a file, then the asp
processes the decrypted version of the file.
my problem the asp is looking for the decrypted version of the the file but
can't find it because the dts package hasn't finished doing its work.
is there a good way to somehow "pause" the asp code to wait for the package
to finish?
tia
jt
JT Guest
-
Setting up the date ahead of time
Hi all, I have a web site that surveys employees to see if they want to work the weekend. One of the problems I'm having is that I don't want to go... -
CFSEARCH results show CFML code
We have Coldfusion 5 Server. In the administrator, I have created a collection and indexed the collection. I am now testing the CFSEARCH... -
Swapping a member with another that is exactly 27 cast members ahead
Try this property oldmem on mouseEnter me oldmem = sprite(me.spriteNum).memNum sprite(me.spriteNum).memNum = oldmem + 27 end -
Tanks Ahead!
http://www.phageinteractive.com thanks Pete. -
md5sum of umounted cd-rom (warning: 'orrible perl code ahead)
How do you compute the md5sum of a cdrom you have burned? Googling seems to reveal this to be a "difficult" problem. The complaint is something... -
Bob Barrows [MVP] #2
Re: asp code jumps ahead of dts package results
JT wrote:
Eric covers this topic here:> ok here is my predicament -
>
> i have an asp page that calls a dts package to decrypt a file, then
> the asp processes the decrypted version of the file.
>
> my problem the asp is looking for the decrypted version of the the
> file but can't find it because the dts package hasn't finished doing
> its work.
>
> is there a good way to somehow "pause" the asp code to wait for the
> package to finish?
>
> tia
> jt
[url]http://weblogs.asp.net/ericlippert/archive/2003/10/07/53155.aspx[/url]
Are you sure there's no "async" property you can set for the call to the
package? What technique are you using to call the package? SQLDMO? Or
sp_start_job?
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
JT #3
Re: asp code jumps ahead of dts package results
i am using sp_start_job
i just wrote another procedure to wrap the sp_start_job procedure and select
the return value of sp_start_job into a recordset - but it seems like an
error is only returned if the job fails to start not when the job itself
fails
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:eSyfBIweEHA.2812@tk2msftngp13.phx.gbl...> JT wrote:> Eric covers this topic here:> > ok here is my predicament -
> >
> > i have an asp page that calls a dts package to decrypt a file, then
> > the asp processes the decrypted version of the file.
> >
> > my problem the asp is looking for the decrypted version of the the
> > file but can't find it because the dts package hasn't finished doing
> > its work.
> >
> > is there a good way to somehow "pause" the asp code to wait for the
> > package to finish?
> >
> > tia
> > jt
> [url]http://weblogs.asp.net/ericlippert/archive/2003/10/07/53155.aspx[/url]
>
> Are you sure there's no "async" property you can set for the call to the
> package? What technique are you using to call the package? SQLDMO? Or
> sp_start_job?
>
> Bob Barrows
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>
JT Guest
-
Bob Barrows [MVP] #4
Re: asp code jumps ahead of dts package results
There's an easier way to run a package from ASP described here:
[url]http://www.sqldts.com/default.aspx?207[/url]
This method will execute it synchronously.
Bob Barrows
JT wrote:--> i am using sp_start_job
>
> i just wrote another procedure to wrap the sp_start_job procedure and
> select the return value of sp_start_job into a recordset - but it
> seems like an error is only returned if the job fails to start not
> when the job itself fails
>
>
>
> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:eSyfBIweEHA.2812@tk2msftngp13.phx.gbl...>> JT wrote:>> Eric covers this topic here:>>> ok here is my predicament -
>>>
>>> i have an asp page that calls a dts package to decrypt a file, then
>>> the asp processes the decrypted version of the file.
>>>
>>> my problem the asp is looking for the decrypted version of the the
>>> file but can't find it because the dts package hasn't finished doing
>>> its work.
>>>
>>> is there a good way to somehow "pause" the asp code to wait for the
>>> package to finish?
>>>
>>> tia
>>> jt
>> [url]http://weblogs.asp.net/ericlippert/archive/2003/10/07/53155.aspx[/url]
>>
>> Are you sure there's no "async" property you can set for the call to
>> the package? What technique are you using to call the package?
>> SQLDMO? Or sp_start_job?
>>
>> Bob Barrows
>> --
>> Microsoft MVP -- ASP/ASP.NET
>> Please reply to the newsgroup. The email account listed in my From
>> header is my spam trap, so I don't check it very often. You will get
>> a quicker response by posting to the newsgroup.
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows [MVP] Guest
-
JT #5
Re: asp code jumps ahead of dts package results
your solution is exactly what i was looking for - however, now when i try to
create the DTS.Package Object i get the following error:
"The call to Server.CreateObject failed while checking permissions. Access
is denied to this object. "
any ideas?
"Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
news:ukfwEJxeEHA.3792@TK2MSFTNGP09.phx.gbl...> There's an easier way to run a package from ASP described here:
> [url]http://www.sqldts.com/default.aspx?207[/url]
>
> This method will execute it synchronously.
>
> Bob Barrows
>
> JT wrote:>> > i am using sp_start_job
> >
> > i just wrote another procedure to wrap the sp_start_job procedure and
> > select the return value of sp_start_job into a recordset - but it
> > seems like an error is only returned if the job fails to start not
> > when the job itself fails
> >
> >
> >
> > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> > news:eSyfBIweEHA.2812@tk2msftngp13.phx.gbl...> >> JT wrote:
> >>> ok here is my predicament -
> >>>
> >>> i have an asp page that calls a dts package to decrypt a file, then
> >>> the asp processes the decrypted version of the file.
> >>>
> >>> my problem the asp is looking for the decrypted version of the the
> >>> file but can't find it because the dts package hasn't finished doing
> >>> its work.
> >>>
> >>> is there a good way to somehow "pause" the asp code to wait for the
> >>> package to finish?
> >>>
> >>> tia
> >>> jt
> >> Eric covers this topic here:
> >> [url]http://weblogs.asp.net/ericlippert/archive/2003/10/07/53155.aspx[/url]
> >>
> >> Are you sure there's no "async" property you can set for the call to
> >> the package? What technique are you using to call the package?
> >> SQLDMO? Or sp_start_job?
> >>
> >> Bob Barrows
> >> --
> >> Microsoft MVP -- ASP/ASP.NET
> >> Please reply to the newsgroup. The email account listed in my From
> >> header is my spam trap, so I don't check it very often. You will get
> >> a quicker response by posting to the newsgroup.
> --
> Microsoft MVP -- ASP/ASP.NET
> Please reply to the newsgroup. The email account listed in my From
> header is my spam trap, so I don't check it very often. You will get a
> quicker response by posting to the newsgroup.
>
>
JT Guest
-
Aaron [SQL Server MVP] #6
Re: asp code jumps ahead of dts package results
Any way you can disable anonymous access to this page, and authenticate via
Windows Auth as a privileged user (e.g. Administrator or Power User)?
Basically, the user that ASP is running as must have the ability to log onto
the machine and execute the package manually.
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"JT" <jt@nospam.com> wrote in message
news:O8B8UqxeEHA.3632@TK2MSFTNGP11.phx.gbl...to> your solution is exactly what i was looking for - however, now when i try> create the DTS.Package Object i get the following error:
>
> "The call to Server.CreateObject failed while checking permissions. Access
> is denied to this object. "
>
> any ideas?
>
>
>
> "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> news:ukfwEJxeEHA.3792@TK2MSFTNGP09.phx.gbl...>> > There's an easier way to run a package from ASP described here:
> > [url]http://www.sqldts.com/default.aspx?207[/url]
> >
> > This method will execute it synchronously.
> >
> > Bob Barrows
> >
> > JT wrote:> >> > > i am using sp_start_job
> > >
> > > i just wrote another procedure to wrap the sp_start_job procedure and
> > > select the return value of sp_start_job into a recordset - but it
> > > seems like an error is only returned if the job fails to start not
> > > when the job itself fails
> > >
> > >
> > >
> > > "Bob Barrows [MVP]" <reb01501@NOyahoo.SPAMcom> wrote in message
> > > news:eSyfBIweEHA.2812@tk2msftngp13.phx.gbl...
> > >> JT wrote:
> > >>> ok here is my predicament -
> > >>>
> > >>> i have an asp page that calls a dts package to decrypt a file, then
> > >>> the asp processes the decrypted version of the file.
> > >>>
> > >>> my problem the asp is looking for the decrypted version of the the
> > >>> file but can't find it because the dts package hasn't finished doing
> > >>> its work.
> > >>>
> > >>> is there a good way to somehow "pause" the asp code to wait for the
> > >>> package to finish?
> > >>>
> > >>> tia
> > >>> jt
> > >> Eric covers this topic here:
> > >> [url]http://weblogs.asp.net/ericlippert/archive/2003/10/07/53155.aspx[/url]
> > >>
> > >> Are you sure there's no "async" property you can set for the call to
> > >> the package? What technique are you using to call the package?
> > >> SQLDMO? Or sp_start_job?
> > >>
> > >> Bob Barrows
> > >> --
> > >> Microsoft MVP -- ASP/ASP.NET
> > >> Please reply to the newsgroup. The email account listed in my From
> > >> header is my spam trap, so I don't check it very often. You will get
> > >> a quicker response by posting to the newsgroup.
> > --
> > Microsoft MVP -- ASP/ASP.NET
> > Please reply to the newsgroup. The email account listed in my From
> > header is my spam trap, so I don't check it very often. You will get a
> > quicker response by posting to the newsgroup.
> >
> >
>
Aaron [SQL Server MVP] Guest
-
Aaron [SQL Server MVP] #7
Re: asp code jumps ahead of dts package results
This might sound crazy, but have you considered having a stored procedure
(not a DTS package) that decrypts the file? Then you could just spit the
output back to ASP. You could also move the "processing" portion to the DTS
package. You can create an ActiveX script task that has the ability to do
anything ASP can do (and then some, due to permissions) as the second step
of the DTS package.
--
[url]http://www.aspfaq.com/[/url]
(Reverse address to reply.)
"JT" <jt@nospam.com> wrote in message
news:epA9x5veEHA.4068@TK2MSFTNGP11.phx.gbl...asp> ok here is my predicament -
>
> i have an asp page that calls a dts package to decrypt a file, then thebut> processes the decrypted version of the file.
>
> my problem the asp is looking for the decrypted version of the the filepackage> can't find it because the dts package hasn't finished doing its work.
>
> is there a good way to somehow "pause" the asp code to wait for the> to finish?
>
> tia
> jt
>
>
Aaron [SQL Server MVP] Guest



Reply With Quote

