Ok, using sp_helplogins gets me a lot closer for what I was looking to do. Basically, I've written a front end that needs to check all of the existing dbases on the server to generate a list of what they should 'see.'
Reading through the sp_helplogins stored procedure though, I've noticed that...
Try this out (uses subqueries)
SELECT
Main.TimeStamp 'TimeStamp',
ISNULL(A.Alpha,0) 'Alpha',
ISNULL(B.Beta,0) 'Beta',
ISNULL(G.Gamma,0) 'Gamma'
FROM
logtable Main
LEFT JOIN
(select TimeStamp,DATA_F_VALUE AS [Alpha] from logtable where Data_Name='alpha') A
on Main.TimeStamp=A.TimeStamp...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.