I am trying to build a DTS pacakage that will create the database structure our application uses for our clients. The biggest problem I am having is when it comes to the reports, which we've stored as Image data in the database. During run time we get chunks to get the report out of the database. Has anyone tried and been successfull as using a DTS package to load binary/image data into a SQL table? My preference would be to use a global variable in the package to hold the location where the files are stored, and have them pulled in to their respective tables & fields when the package runs.
Any one have any ideas?
I've tried several resources, with no luck.Look for textcopy.exe on the web. Call a procedure from your DTS Package that will execute the following :
EXEC master.dbo.xp_cmdshell 'textcopy.exe -S ' + @.srvname +
' -U ' + @.login +
' -P ' + @.password +
' -D ' + @.dbname +
' -T ' + @.tbname +
' -C ' + @.colname +
' -W "' + @.whereclause +
'" -F "' + @.filename +
'" -' + @.direction
Ryan
Showing posts with label biggest. Show all posts
Showing posts with label biggest. Show all posts
Thursday, March 22, 2012
Monday, March 19, 2012
DTS package in 2005
Hi All ,
I have a DTS package in SQL Server 2005 , I will have to use the web service in the DTS Package, So my Biggest Doubt is
Can i Call the Web Service in the DTS Package using the Stored Procedure ? :confused:
Or
Can i call the Web Service in the DTS Package using the VB.Script ?:confused:
This is the Most Important thing for Us Right of now, and Will be happy if i could get some help.
Thankssince you are using 2005, you can call a web service in a sproc if it's a CLR sproc. a CLR sproc is implemented in managed code and can do anything you could do in C#, including calling a web service. It doesn't mean you *should* do it though...|||If you are using Sql Server 2005 then I hope that you mean Integration Services and you can easily call a Web Service from there. It is a Control Flow task specifically named Web Service Task. There are several examples of how to use the task floating around the net and a couple on Microsoft's site.|||Many people import their DTS packages (to the place under Management > Legacy) and continue using them.
(Honestly, much quicker than trying to understand the SSIS design tool IMO)
I have a DTS package in SQL Server 2005 , I will have to use the web service in the DTS Package, So my Biggest Doubt is
Can i Call the Web Service in the DTS Package using the Stored Procedure ? :confused:
Or
Can i call the Web Service in the DTS Package using the VB.Script ?:confused:
This is the Most Important thing for Us Right of now, and Will be happy if i could get some help.
Thankssince you are using 2005, you can call a web service in a sproc if it's a CLR sproc. a CLR sproc is implemented in managed code and can do anything you could do in C#, including calling a web service. It doesn't mean you *should* do it though...|||If you are using Sql Server 2005 then I hope that you mean Integration Services and you can easily call a Web Service from there. It is a Control Flow task specifically named Web Service Task. There are several examples of how to use the task floating around the net and a couple on Microsoft's site.|||Many people import their DTS packages (to the place under Management > Legacy) and continue using them.
(Honestly, much quicker than trying to understand the SSIS design tool IMO)
Subscribe to:
Posts (Atom)