Create a sql trace for a stored procedure

I have stored procedure that runs as a job and it has started failing giving me an error of "String or binary data would be truncated. [SQL STATE 22001] [Error 8152] The statement has been terminated [SQLSTATE 01000] [Error 3621]. The step failed. I am trying to run a trace on the stored procedure because when I execute the sp in query analyzer it works fine. When I run a trace I do not get any results I would appreciate any help on setting me up a trace to troubleshoot this error. Thanks
tupac1979Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David ToddSenior DBACommented:
Hi,

What template for the trace are you using? What version of SQL?

Cheers
  David
0
tupac1979Author Commented:
Thanks I dont have a template I have been trying to run the trace by object ID or so forth but apparently I am using the wrong object ID. Also I am using sql server 2000 enterprise edition. Thanks
0
David ToddSenior DBACommented:
Hi,

In Profiler, when you create a trace, the first text box has Trace Name, below that is a selection for which server. In the next division is the combo box titled Template Name.

Which Templage are you using?

Cheers
  David
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

tupac1979Author Commented:
I was using a blank template name and just using filter on the object id of the sp but that doesnt seem to work.
0
David ToddSenior DBACommented:
Hi,

Try the "SQL Profiler TSQL_SPs" template.

Cheers
  David
0
tupac1979Author Commented:
Thanks dtodd,
I have tried that it gives a bunch of information about all of the stored procedures since I have 10 databases how do I focus on the one database. Thanks
0
David ToddSenior DBACommented:
Hi,

On the filters table, expand DatabaseName, expand like, and enter the name of the database.

HTH
  David
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.