Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
kid_on_the_block
Posting Yak Master
172 Posts |
Posted - 2006-02-15 : 02:08:52
|
| Hi I need to get a report that tells me the no. of users logged on to the SQL Server (this has to be an hourly report) Will this do WHILE 1=1BEGIN Select Hostname,getdate() from sysprocesses WAITFOR DELAY '00:59:00'ENDGOWill it have any bad affects on the SQL ServerOr can someone plz let me knw how to get that Thanks |
|
|
activecrypt
Posting Yak Master
165 Posts |
Posted - 2006-02-15 : 03:10:54
|
| Hi,why don't you maintain separate table to record the same details ?! it would be easy and less hassels to you.Andy DavisSql Shield Team--------------------------------------------SQL Server Encryption Softwarehttp://www.sql-shield.com |
 |
|
|
kid_on_the_block
Posting Yak Master
172 Posts |
Posted - 2006-02-15 : 04:33:13
|
| ok , but then all i need to do is an insert right , the entire delay would be right ???? |
 |
|
|
activecrypt
Posting Yak Master
165 Posts |
Posted - 2006-02-18 : 06:30:10
|
| i didn't understand it ! is your application already runnning ! its always chance to imporvement. If you have that records from earlier stage you can insert it from the files.RegardsAndy DavisSql Shield Team--------------------------------------------SQL Server Encryption Softwarehttp://www.sql-shield.com |
 |
|
|
|
|
|