Method to find error in sql server column

Software sql server 2005.

I have an error in a table column that locks up my application. Is there a way to find that easily?

Thanks!
dave_skyAsked:
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.

Jacques Bourgeois (James Burger)PresidentCommented:
Do you get an error message?

Have you run the code step by step to see which line causes the lock?
0
arnoldCommented:
What application is doing before you issue the lock.
Sounds as though your application does not release the lock where conditions to enter data are not met.

Presumably you have selects to build data, start transaction lick table before writing?
0
Vitor MontalvãoMSSQL Senior EngineerCommented:
Run SQL Profiler to capture the process that are running and then you'll see which query is the blocker.
0
Vikas GargBusiness Intelligence DeveloperCommented:
Hi,

You may use this query to find blocking query

SELECT * FROM sys.dm_exec_requests where DB_NAME(database_id)='YourDBName' and blocking_session_id <>0

Open in new window

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 2005

From novice to tech pro — start learning today.