Hi there
I'm building a SQL Server integration services project with a custom component. I created the custom component as a separate C# library project and compiled it. With the help of some online resources I was able to make it appear in the Dataflow Transformations toolbox items of Integration Services IDE. But this component is throwing some errors. My question how do I setup the environment such that I can set break points and debug the component's source while debugging the integration services project?
Any help will be greatly appretiated.
Thanks in advance.
Arun M
Hi Arun,
open the SSIS designer with your component in it, open another VS window with your C# project where you would like to debug. For design-time debugging, attach the VS debugger (using Debug\Attach to Process...) to devenv.exe process that hosts the SSIS designer. For runtime debugging, attach your debugger to DtsDebugHost.exe.
HTH.
Thanks,
Setup the Custom task to run using DTEXEC as it's startup
program. In the CommandLine arguments, pass in the
filename of the DTSX package that includes the custom
task. Then start the debugger and it should hit your
breakpoints...
|||
I am trying to use the second method of DTEXEC but I am getting a "The product level is insufficient for component ..." message on one of my machines and ONLY ONE of them.
The notable difference is that I am connecting to my local machine running the databases VS a remote database. The one using the remote database is failing with the above message and the local database machine debugs just fine.
Note: Running the package with the custom component through VS works just fine.
I am going to attempt the DtsHost... item above but I don't like that one as you have to close the VS environment over and over to do testing of changes!
|||This issue has already been discussed in this forum. To use dtexec you must have a server OS.|||
Then why would I get one working and not the other when they are both on Windows XP SP2?
Is it that DTEXEC can only connect remotely while on a server OS? That seems rather strange to me...
|||No you must have installed SSIS. DTEXEC runs fine on all OS's that SSIS runs on, which includes XP. The message is usally encountered when using the Wizard, and only having installed workstation components, and not the SSIS server components.|||I am pretty sure I have it all installed and not just the workstation components as I am developing and running on the machine itself.
The component runs fine in BIDS both at design and run-time but only fails with the message when I try to run using DTEXEC.
Darren: Thank you for the pointer to the Regex example that was recently released. I am building a component that will use Regex to allow validation with custom messages logged, data type reformatting based on the matches (e.g. yyyyMMdd -> ^(\d{4})(\d{2})(\d{2})$ would validate the data and $1-$2-$3 would convert the data to a data string that can be type cast to DT_DBTIMESTAMP). Makes the date conversion much simpler.
No comments:
Post a Comment