SQL Prompt是一款拥有SQL智能提示功能和格式化Sql代码插件。可用于的SQL Server和VS。
SQL Prompt能根据数据库的对象名称,语法和用户编写的代码片段自动进行检索,智能的为用户提供唯一合适的代码选择。自动脚本设置为用户提供了简单的代码 易读性。
效果:
1.智能提示
2.一键格式化(包括大小写,空格,tab等完全自定义)
select b.proj,d.project_name,g.cname,b.id,b.ht_title,isnull(b.htzje,'0') as htzje,isnull(b.yifk,'0') as yifk,sum(isnull(a.je,'0')) as je,g.id as sort from cnto_fk a left join cnto b on a.pid=b.id left join project_table d on b.proj=d.pc_code left join sys_common g on a.fzno=g.cno and g.ctype='cnto_htlx' where 1=1 and d.project_name is not null and a.title is not null and convert(varchar(10),a.sfkrq,120) between '2015-10-01' and '2015-10-31' group by b.proj,d.project_name,g.cname,b.id,b.ht_title,b.htzje,b.yifk,g.id union select a.project_no as proj,d.project_name,g.cname,'' as id,a.title as ht_title,'0' as htzje,sum(isnull(a.je,'0')) as yifk,sum(isnull(a.je,'0')) as je,g.id as sort from cnto_fk a left join project_table d on a.project_no=d.pc_code left join sys_common g on a.fzno=g.cno and g.ctype='cnto_htlx' where a.fzno='qt' and d.project_name is not null and a.title is not null and convert(varchar(10),a.sfkrq,120) between '2015-10-01' and '2015-10-31' group by a.project_no,d.project_name,g.cname,a.title,g.id order by proj,sort
快捷键 Ctrl+K,Ctrl+Y,效果如图
因为此软件需要.net 3.5,而win10联网在线安装又非常慢,所以特提供离线安装包。软件地址和net包地址: 下载地址
软件使用方法如下:
1.解压软件压缩包内容
2.安装SQLPrompt_7.0.0.40.exe,一路Next直至安装完成
3.打开SQL Server 2008 R2在工具栏点击SQL Prompt,进入注册界面
菜单路径:SQL_Prompt=>Help=>Manage License...
7.等待一会会提示网络错误,然后点击Activate Manually(离线注册)
1. 7
2. 8