tags:

views:

226

answers:

2

We're in the process of converting to SQL Server from MySQL. I'm trying to figure out why a call to sqsh isn't returning and I suspect that there's some lock I don't know about.

How do you find out what's going on (preferably via the database connection)?

+1  A: 

You can look into sp_who and sp_who2 to see if they give you what you need. Otherwise, SQL Profiler can often help with problem diagnoses.

Tom H.
+1  A: 

Try this

select * from master..sysprocesses
Sparky