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 u get the number of pupils connecting the database?

Answer Posted / sreenivas

try this below query:

use <databasename>
go
select db_name(dbid) as db, count(dbid) as connections from sys.sysprocesses where dbid > 0 group by dbid

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I completely remove sql server instance?

1021


What are drilldown reports?

139


What is the difference between mysql and mysqli?

1078


what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration

1057


What are the differences between DDL, DML and DCL in SQL?

1169


What is data modification?

895


Do you know data definition language, data control language and data manipulation language?

979


Explain DBCC?

907


What is reference section?

938


What is CTE in SQL

874


How to create a Master database in SQL server ?

1013


What do you mean by subquery?

1018


What are the advantages of user defined function?

915


What is purpose of normalization?

892


Can we write ddl in trigger?

864