Re: Is user logged-on? You can use sp_who or sp_who2, or if you need something from code then
a statement like this will work:
if exists (select * from master.dbo.sysprocesses
where loginame = 'MyLogin'
and dbid = db_id('MyDB'))
begin
/* Do something here */
end
Simon |