摘要:
会报错的写法: GRANT ALL PRIVILEGES ON *.* 'root'@'%' identified by '123123' WITH GRANT OPTION; 以下是正确的写法: grant all privileges on *.* to 'root'@’%’ ; 阅读全文
摘要:
SELECT avg_user_impact AS average_improvement_percentage, avg_total_user_cost AS average_cost_of_query_without_missing_index, 'CREATE INDEX ix_' + [... 阅读全文
摘要:
获取被锁的对象select request_session_id as spid,OBJECT_NAME(resource_associated_entity_id) as tableNamefrom sys.dm_tran_lockswhere resource_type='OBJECT'解锁KI... 阅读全文
摘要:
select distinct object_name(id) from syscomments where id in (select id from sysobjects where type in('V','P')) and text like '%tablename%' 其中sys... 阅读全文