Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect active users at SQL Server
Message
 
 
To
14/11/2011 11:12:07
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01528779
Message ID:
01528845
Views:
67
>>>Hi All,
>>>
>>>I developed a copy-protect method with some utitilies from UT and other VFP sources. It looks cpu, hdd serial etc...
>>>I was use .dbf file and lock one record for each user when developing .dbf based applications for RDP users.
>>>How can I control active user counts at SQL Server?
>>
>>With sufficient permissions (VIEW SERVER STATE specifically), you can work with the sp_who stored procedure.. http://msdn.microsoft.com/en-us/library/ms174313.aspx
>>
>>make sure you give your application a name in the connection string by the way - makes this much easier to filter!
>
>Thank you,
>
>That's excellent!.. How can I add my application name at connection string?

See http://blog.benhall.me.uk/2007/10/sql-connection-application-name.html

BTW, you can also check sp_who2 or sp_WhoIsActive stored procedure by Adam Machanic that provides more useful info.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform