摘要: http://www.cnblogs.com/yuanhang 阅读全文
posted @ 2011-03-24 22:33 cclazy 阅读(1962) 评论(0) 推荐(1) 编辑
摘要: --> --> 0;length>18:使用BigDecimal; scale=0;length[10,1... 阅读全文
posted @ 2018-12-26 14:28 cclazy 阅读(491) 评论(0) 推荐(0) 编辑
摘要: xxx xxx xxx xxx 4.0.0 xxx xxx jar 1.0-... 阅读全文
posted @ 2018-12-26 13:50 cclazy 阅读(2830) 评论(0) 推荐(1) 编辑
摘要: 会报错的写法: GRANT ALL PRIVILEGES ON *.* 'root'@'%' identified by '123123' WITH GRANT OPTION; 以下是正确的写法: grant all privileges on *.* to 'root'@’%’ ; 阅读全文
posted @ 2018-12-22 13:48 cclazy 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 默认情况下登录用户除了看到自己拥有管理权限的数据库外。还可以看到其他数据库,在点击打开时会提示没有权限。如下设置可使该用户只能看到自己拥有管理权限的数据库,而看不到其他没有权限的数据库。 (1)取消默认可查看任何数据库 DENY VIEW any DATABASE TO PUBLIC; -- 没有进 阅读全文
posted @ 2016-07-29 18:02 cclazy 阅读(3240) 评论(0) 推荐(0) 编辑
摘要: SELECT avg_user_impact AS average_improvement_percentage, avg_total_user_cost AS average_cost_of_query_without_missing_index, 'CREATE INDEX ix_' + [... 阅读全文
posted @ 2015-09-18 10:31 cclazy 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 制表符: CHAR(9)换行符: CHAR(10)回车符: CHAR(13) 阅读全文
posted @ 2015-04-29 16:30 cclazy 阅读(1723) 评论(0) 推荐(0) 编辑
摘要: 获取被锁的对象select request_session_id as spid,OBJECT_NAME(resource_associated_entity_id) as tableNamefrom sys.dm_tran_lockswhere resource_type='OBJECT'解锁KI... 阅读全文
posted @ 2014-08-15 14:38 cclazy 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 修改外键命名规则选择Database—>EditCurrentDBMS选择Scripts-》Objects-》Reference-》ConstName可以发现右侧的Value为:FK_%.U8:CHILD%_%.U9:REFR%_%.U8:PARENT%可见,该命名方法是:'FK_'+8位子表名+9... 阅读全文
posted @ 2014-06-07 16:43 cclazy 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: --删除外键alter table HelpTextInfo drop constraint HelpTextInfo_Helptype_FK1--增加外键alter table HelpTextInfo add constraint HelpTextInfo_Helptype_FK1 fore... 阅读全文
posted @ 2014-05-07 18:03 cclazy 阅读(474) 评论(0) 推荐(0) 编辑
摘要: select distinct object_name(id) from syscomments where id in (select id from sysobjects where type in('V','P')) and text like '%tablename%' 其中sys... 阅读全文
posted @ 2014-05-05 21:47 cclazy 阅读(4420) 评论(0) 推荐(0) 编辑