摘要:
判断你的TreeNode的Level,根据Level的不同设置不同的右键菜单,通常触发的是鼠标点击事件 myTreeView.MouseClick += new MouseEventHandler(myTreeView_MouseClick); void myTreeView_MouseClick(object sender, MouseEventArgs e) { myTreeView.... 阅读全文
摘要:
(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') 阅读全文