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

What is the difference between MVC and Teir Architecher? Plz explain with Layyered Programming example...? Thanks

2137


what is the difference between Delete and Truncate command in SQL

1201


Can we use having clause without group by?

1032


How to find the version of sql server? : sql server database administration

1171


What is multilevel indexing?

981


What is the difference between dropping a database and taking a database offline?

1219


Where views are stored in sql server?

1036


What is sql injection? How to protect against sql injection attack?

1044


Explain the properties of the relational tables?

1032


What is lookup override?

1082


what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

1000


How many types of local tables are there in sql server?

980


How sql server enhances scalability of the database system?

1316


How to generate random numbers with the rand() function in ms sql server?

1228


Is it possible to have clustered index on separate drive from original table location?

1018