Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by corningIT

  1. corningIT

    Return all database roles for particular user

    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...
  2. corningIT

    SQL Help

    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...
  3. corningIT

    Return all database roles for particular user

    How can I generate a list of unique roles for the current user from all databases on one server?

Part and Inventory Search

Back
Top