05 2022 档案
摘要:sqlcmd 是sql server 提供的命令行工具,用于执行t-sql/sql脚本 以及系统存储过程。 sqlcmd 常用参数解释如下:用法: Sqlcmd [-U 登录 ID] [-P 密码] [-S 服务器] [-H 主机名] [-E 信任连接] [-N 加密连接][-C 信任服务器证书]
阅读全文
摘要:1、开启sp_configure 系统存储过程高级选项 exec sp_configure 'show advanced options' ,1; reconfigure; 2、开启扩展存储过程xp_cmdshell,用于运行cmd 命令 exec sp_configure 'xp_cmdshell
阅读全文
摘要:早上上班的时候,开发发过来一段sql,join 字段存在索引,说还是执行很慢,让帮忙分析原因,sql 片段如下:select * from ppsuser.mes_qholdsn_log a join sajet.g_sn_status b on a.customer_sn||'01')=b.ser
阅读全文