![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. |
#3
| |||
| |||
|
|
Haki wrote: I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. You can create packages through the (COM) package object library. A simple example can be generated by using the Save As VB option in Enterprise Manager. A simpler method would to just save the packages as structured storage files (.dts) and include them in your project as content files. You can then load them from disk. Another alternative would be to save them to a SQL Server as part of the setup process. Again this can be done through the object model. -- Darren http://www.sqldts.com http://www.sqlis.com |
#4
| |||
| |||
|
|
Ok, I can use this; but if I generate SQL script of [msdb].[dbo].[sysdtspackages] can I insert it on new SQL Server [msdb].[dbo].[sysdtspac kages] ? is it work ? "Darren Green" wrote: Haki wrote: I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. You can create packages through the (COM) package object library. A simple example can be generated by using the Save As VB option in Enterprise Manager. A simpler method would to just save the packages as structured storage files (.dts) and include them in your project as content files. You can then load them from disk. Another alternative would be to save them to a SQL Server as part of the setup process. Again this can be done through the object model. -- Darren http://www.sqldts.com http://www.sqlis.com |
#5
| |||
| |||
|
|
The table sysdtspackages will aleeady exist on any SQL 7.0/2000 server. You can insert packages directly into the table with a bit of preparation and effort. The simplest way is to use the object model and the SaveToSQLServer method. You can alternatively use any data transfer technology, such as DTS itself to insert rows into that table as well. You will need the supporting meta-data for the columns, and the final imge column contains the package itself. Haki wrote: Ok, I can use this; but if I generate SQL script of [msdb].[dbo].[sysdtspackages] can I insert it on new SQL Server [msdb].[dbo].[sysdtspac kages] ? is it work ? "Darren Green" wrote: Haki wrote: I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. You can create packages through the (COM) package object library. A simple example can be generated by using the Save As VB option in Enterprise Manager. A simpler method would to just save the packages as structured storage files (.dts) and include them in your project as content files. You can then load them from disk. Another alternative would be to save them to a SQL Server as part of the setup process. Again this can be done through the object model. -- Darren http://www.sqldts.com http://www.sqlis.com -- Darren http://www.sqldts.com http://www.sqlis.com |
#6
| |||
| |||
|
I mean row not all the table ![]() When I paste row of package I have an error 64k line limit on Query Analyzer.If I use another Editor it's ok but when I want to enter design package I have an error "Cannot find specified version of package in the storeage location specified" "Darren Green" wrote: The table sysdtspackages will aleeady exist on any SQL 7.0/2000 server. You can insert packages directly into the table with a bit of preparation and effort. The simplest way is to use the object model and the SaveToSQLServer method. You can alternatively use any data transfer technology, such as DTS itself to insert rows into that table as well. You will need the supporting meta-data for the columns, and the final imge column contains the package itself. Haki wrote: Ok, I can use this; but if I generate SQL script of [msdb].[dbo].[sysdtspackages] can I insert it on new SQL Server [msdb].[dbo].[sysdtspac kages] ? is it work ? "Darren Green" wrote: Haki wrote: I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. You can create packages through the (COM) package object library. A simple example can be generated by using the Save As VB option in Enterprise Manager. A simpler method would to just save the packages as structured storage files (.dts) and include them in your project as content files. You can then load them from disk. Another alternative would be to save them to a SQL Server as part of the setup process. Again this can be done through the object model. -- Darren http://www.sqldts.com http://www.sqlis.com -- Darren http://www.sqldts.com http://www.sqlis.com |
#7
| |||
| |||
|
|
Sounds like you corrupted the image data, or at least it does not match the other columns. I would not expect copy and paste to be very reliable for this type of procedure. I would write some code to do this. Haki wrote: I mean row not all the table ![]() When I paste row of package I have an error 64k line limit on Query Analyzer.If I use another Editor it's ok but when I want to enter design package I have an error "Cannot find specified version of package in the storeage location specified" "Darren Green" wrote: The table sysdtspackages will aleeady exist on any SQL 7.0/2000 server. You can insert packages directly into the table with a bit of preparation and effort. The simplest way is to use the object model and the SaveToSQLServer method. You can alternatively use any data transfer technology, such as DTS itself to insert rows into that table as well. You will need the supporting meta-data for the columns, and the final imge column contains the package itself. Haki wrote: Ok, I can use this; but if I generate SQL script of [msdb].[dbo].[sysdtspackages] can I insert it on new SQL Server [msdb].[dbo].[sysdtspac kages] ? is it work ? "Darren Green" wrote: Haki wrote: I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. You can create packages through the (COM) package object library. A simple example can be generated by using the Save As VB option in Enterprise Manager. A simpler method would to just save the packages as structured storage files (.dts) and include them in your project as content files. You can then load them from disk. Another alternative would be to save them to a SQL Server as part of the setup process. Again this can be done through the object model. -- Darren http://www.sqldts.com http://www.sqlis.com -- Darren http://www.sqldts.com http://www.sqlis.com -- Darren http://www.sqldts.com http://www.sqlis.com |
#8
| |||
| |||
|
|
I' m using setup program for making my project's install.exe. How can I create my DTS packages from command or query if is possible. |
![]() |
| Thread Tools | |
| Display Modes | |
| |