dbTalk Databases Forums  

transfering stored procedures from a DTS package

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


Discuss transfering stored procedures from a DTS package in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gloria
 
Posts: n/a

Default transfering stored procedures from a DTS package - 03-02-2005 , 02:53 PM






Hi All,

I have an application that uses several stored procedures. I want to create
an installation program for this application and within the installation
script add the stored procedures to the database.

I have created executables from DTS packages and called them from an
installation script before and it worked fine. I want to create a DTS
package that takes the stored procedures and puts them in the database.

Is there any way to do this?

Thanks in advance,
Gloria

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: transfering stored procedures from a DTS package - 03-03-2005 , 12:50 AM






Sure, although I am not really sure this is the way to do it.

Create a script of the procs to run in
In your package call osql in the Execute process task
Pass in the necessary parameters pointing to what files to execute etc
like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)


"Gloria" <Gloria (AT) discussions (DOT) microsoft.com> wrote


Quote:
Hi All,

I have an application that uses several stored procedures. I want to create
an installation program for this application and within the installation
script add the stored procedures to the database.

I have created executables from DTS packages and called them from an
installation script before and it worked fine. I want to create a DTS
package that takes the stored procedures and puts them in the database.

Is there any way to do this?

Thanks in advance,
Gloria


Reply With Quote
  #3  
Old   
Gloria
 
Posts: n/a

Default Re: transfering stored procedures from a DTS package - 03-03-2005 , 07:25 AM



Thanks for your quick response.
Is there a better way to load stored procedures into a database from an
installation script?
Could you point me in the direction of the documentation of this process?

Thanks again,
Gloria

"Allan Mitchell" wrote:

Quote:
Sure, although I am not really sure this is the way to do it.

Create a script of the procs to run in
In your package call osql in the Execute process task
Pass in the necessary parameters pointing to what files to execute etc
like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)


"Gloria" <Gloria (AT) discussions (DOT) microsoft.com> wrote in message
news:Gloria (AT) discussions (DOT) microsoft.com:

Hi All,

I have an application that uses several stored procedures. I want to create
an installation program for this application and within the installation
script add the stored procedures to the database.

I have created executables from DTS packages and called them from an
installation script before and it worked fine. I want to create a DTS
package that takes the stored procedures and puts them in the database.

Is there any way to do this?

Thanks in advance,
Gloria



Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: transfering stored procedures from a DTS package - 03-03-2005 , 01:00 PM



The documentation of my process would be to

Right Click on the database
All Tasks
Generate SQL Script

Save the file off and call if from OSQL.

Allan

"Gloria" <Gloria (AT) discussions (DOT) microsoft.com> wrote


Quote:
Thanks for your quick response.
Is there a better way to load stored procedures into a database from an
installation script?
Could you point me in the direction of the documentation of this process?

Thanks again,
Gloria

"Allan Mitchell" wrote:

Sure, although I am not really sure this is the way to do it.

Create a script of the procs to run in
In your package call osql in the Execute process task
Pass in the necessary parameters pointing to what files to execute etc
like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)


"Gloria" <Gloria (AT) discussions (DOT) microsoft.com> wrote in message
news:Gloria (AT) discussions (DOT) microsoft.com:

Hi All,

I have an application that uses several stored procedures. I want to create
an installation program for this application and within the installation
script add the stored procedures to the database.

I have created executables from DTS packages and called them from an
installation script before and it worked fine. I want to create a DTS
package that takes the stored procedures and puts them in the database.

Is there any way to do this?

Thanks in advance,
Gloria




Reply With Quote
  #5  
Old   
Gloria
 
Posts: n/a

Default Re: transfering stored procedures from a DTS package - 03-03-2005 , 01:05 PM



Thank you very much.
I will give that a try!

Gloria

"Allan Mitchell" wrote:

Quote:
The documentation of my process would be to

Right Click on the database
All Tasks
Generate SQL Script

Save the file off and call if from OSQL.

Allan

"Gloria" <Gloria (AT) discussions (DOT) microsoft.com> wrote in message
news:Gloria (AT) discussions (DOT) microsoft.com:

Thanks for your quick response.
Is there a better way to load stored procedures into a database from an
installation script?
Could you point me in the direction of the documentation of this process?

Thanks again,
Gloria

"Allan Mitchell" wrote:

Sure, although I am not really sure this is the way to do it.

Create a script of the procs to run in
In your package call osql in the Execute process task
Pass in the necessary parameters pointing to what files to execute etc
like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)


"Gloria" <Gloria (AT) discussions (DOT) microsoft.com> wrote in message
news:Gloria (AT) discussions (DOT) microsoft.com:

Hi All,

I have an application that uses several stored procedures. I want to create
an installation program for this application and within the installation
script add the stored procedures to the database.

I have created executables from DTS packages and called them from an
installation script before and it worked fine. I want to create a DTS
package that takes the stored procedures and puts them in the database.

Is there any way to do this?

Thanks in advance,
Gloria





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 - 2013, Jelsoft Enterprises Ltd.