Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How can I know what query is executing by by a particural
user? (using sp id or any othe way.)

Answer Posted / suvendu

SELECT *
FROM Master.dbo.sysprocesses
WHERE DBID NOT IN (1,2,3,4) -- Master, Tempdb, Model, MSDB
AND spid > 50
ORDER BY spid DESC

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the status of services on passive node for failover cluster in sql server? : sql server database administration

1254


Where views are stored in sql server?

982


How do I start sql server agent automatically?

965


What do you know about system database? : SQL Server Architecture

979


What is rolap and its advantage? : sql server analysis services, ssas

1278


Explain datetime2 data type in sal server 2008?

901


Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

979


Does a specific recovery model need to be used for a replicated database? : sql server replication

957


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

1035


We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?

1382


what is a schema in sql server 2005? : Sql server database administration

1021


Explain what role entity and relationship play in an ER diagram.

1069


Explain the difference between function and stored procedure?

937


What happens if null values are involved in arithmetic operations?

1006


What is sql language?

1133