随笔分类 - SqlServer
数据库使用问题及技巧总结
摘要:--批量删除表 DECLARE @Table NVARCHAR(30) DECLARE tmpCur CURSOR FOR SELECT name FROM sys.objects WHERE TYPE='U' AND name LIKE N'%_QueryLog' --删除所有含有"_QueryLog"的表 OPEN tmpCur FE...
阅读全文
摘要:static void Main(string[] args) { private static readonly string sqlconnection =""; //遍历循环client表 IList StuList; using (var connection = new Sys...
阅读全文
摘要:declare @i int set @i=1 while(@i<=10) begin INSERT INTO [BMData].[dbo].[QueryBlackListLogs] ([ID] ,[LoginUserID] ,[QueryTime]) VALUES (newid() ...
阅读全文
摘要:在键盘上按下组合键【Win】+【R】,调出运行窗口。 在窗口中输入“regedit”,点击确定,打开注册表管理界面。 在注册表左侧目录栏中找到如下位置:“HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager” 然后在右
阅读全文