![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I'm currently working on debugging a very large DTS package that was created by someone else for the purpose of importing data into my company's database. The data is mainly user/contact-related data for our customer base. Instead of asking about my specific errors, I'd like to know more generally what ways are there to debug DTS packages and stored procedures? I'm aware of, and experienced with SQL Profiler but it's not giving me the info I need. I need the ability to see exactly what values are being passed to every call to a stored procedure from within the DTS package or another stored procedure. Any ideas or help would be greatly appreciated! TIA, Mike |
#3
| |||
| |||
|
|
Hi, Mike If you have Visual Studio 6 Enterprise, you might try exporting the package(s) to VB format, then using the T-SQL Debugger within VB to peek into the stored procs that it's running. - Rick "Mike" <ga_harley_guy (AT) REMOVE_yahoo (DOT) com> wrote in message news:d91pnvocuprnikva5dciolmttpukalvf0u (AT) 4ax (DOT) com... Hello, I'm currently working on debugging a very large DTS package that was created by someone else for the purpose of importing data into my company's database. The data is mainly user/contact-related data for our customer base. Instead of asking about my specific errors, I'd like to know more generally what ways are there to debug DTS packages and stored procedures? I'm aware of, and experienced with SQL Profiler but it's not giving me the info I need. I need the ability to see exactly what values are being passed to every call to a stored procedure from within the DTS package or another stored procedure. Any ideas or help would be greatly appreciated! TIA, Mike |
#4
| |||
| |||
|
|
What I did was this In a DTS package I had an ExecuteSQL task which dod Exec dbo.ByRoyalty 10 a trace showed me for the sp:Completed Exec dbo.ByRoyalty 10 Now I changed the 10 to be a ? and mapped a GV to it Now in the trace I can see (passing in a 2 to the GV) RPC:Starting exec sp_executesql N'EXEC dbo.ByRoyalty @P1', N'@P1 int', 2 SP:StmtStarting EXEC dbo.ByRoyalty @P1 -- |
#5
| |||
| |||
|
|
Hi, Mike If you have Visual Studio 6 Enterprise, you might try exporting the package(s) to VB format, then using the T-SQL Debugger within VB to peek into the stored procs that it's running. - Rick "Mike" <ga_harley_guy (AT) REMOVE_yahoo (DOT) com> wrote in message news:d91pnvocuprnikva5dciolmttpukalvf0u (AT) 4ax (DOT) com... Hello, I'm currently working on debugging a very large DTS package that was created by someone else for the purpose of importing data into my company's database. The data is mainly user/contact-related data for our customer base. Instead of asking about my specific errors, I'd like to know more generally what ways are there to debug DTS packages and stored procedures? I'm aware of, and experienced with SQL Profiler but it's not giving me the info I need. I need the ability to see exactly what values are being passed to every call to a stored procedure from within the DTS package or another stored procedure. Any ideas or help would be greatly appreciated! TIA, Mike |
![]() |
| Thread Tools | |
| Display Modes | |
| |