yeah mikrom that is what I am going for but without having to manually insert the names in the query, I presume by modifying your code slightly I could achieve this.
btw guys here is my code:
DECLARE @status CHAR(10)
SET @DateNow=convert(CHAR(10),getdate(),120)
SET @status='online'...