摘要:
(1):Select Name From Master..SysDataBases Where DbId=(Select Dbid From Master..SysProcesses Where Spid = @@spid) (2):--NoteMessage 为数据库名称 if db_id('NoteMessage')=(Select Dbid From Master..SysProcesse... 阅读全文
摘要:
Select sc.[name],st.[name] From SysColumns sc Left Join SysTypes st On sc.XUserType=st.XUserType Where id=object_id('T_User') 阅读全文