SQLServer
pandi18
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SQL SERVER 2019安装 SQL Prompt 10.02版本
SQL Prompt最新版官网下载地址:https://download.red-gate.com/SQLPromptDownload.exe然后在系统HOSTS文件添加以下屏蔽网络127.0.0.1 red-gate.com127.0.0.1 www.red-gate.com127.0.0.1 licensing.red-gate.com127.0.0.1 productlogin.red-gate.comHOSTS文件路径:C:\Windows\System32\drivers\...原创 2021-03-06 09:16:41 · 3537 阅读 · 2 评论 -
SQLSERVER 使用游标
use bypassdeclare my_cursor1 cursor scroll dynamic -- scroll表示可以向前或向后移动 dynamic:表示可写也可读,forselect CommodityCodeId ,imagePath from [dbo].[PayCommodityImageSet] -- 定义my_cursor 游标 多个字段对应多个变量open my_cursor1 -- 打开游标declare @Commodity...原创 2020-10-09 17:28:40 · 306 阅读 · 0 评论 -
SQLServer执行脚本提示“系统找不到指定的文件”或“内存资源不足”
登录sqlcmd命令 sqlcmd -S 服务器名称 -U 帐户 -P 密码示例 sqlcmd -S "HOMESQLEXPRESS" -U "sa" -P "12345678"直接执行SQL Script命令 sqlcmd -S 服务器名称 -U 帐户 -P 密码 -d 数据库 -i SQL Scriptcmd中执行命令:sqlcmd -S 服务器地址 -U 数据库用户名 -P 数据库密码 -d 数据库名称 -i 备份的脚本文件路径示例: sqlcmd -S "MSSQLSERVE原创 2020-06-05 15:30:50 · 2881 阅读 · 0 评论 -
SQLServer 查看SQL语句的执行时间
方法一:PRINT GETDATE()方法二:set statistics profile onset statistics io onset statistics time onGO--你的SQLGoset statistics profile offset statistics io offset statistics time off原创 2020-06-04 11:41:49 · 742 阅读 · 0 评论 -
(转)SQLSERVER智能提示插件-SQL PROMPT(9.4.6)的安装及注册流程
SQLSERVER智能提示插件-SQL PROMPT(9.4.6)的安装及注册流程官网下在地址:https://www.red-gate.com/products/sql-development/sql-prompt/优快云下载地址(对应的版本是9.4.6,其中包含安装包和注册机,注:下载的时候需要关闭杀毒软件):https://download.youkuaiyun.com/download/u012568339/10885243sql prompt:毫不费力地编写,格式化,分析和重构SQL高...转载 2020-06-01 16:59:51 · 2300 阅读 · 0 评论 -
SQL Server SQL语句中的 日期操作
SELECT DATEPART(weekday,CONVERT(varchar(10),GETDATE(),120)) 获取当前日期是周几SELECT DATEADD(day,-(DATEPART(weekday,CONVERT(varchar(10),GETDATE(),120))-1),CONVERT(varchar(10),GETDATE(),120))SELECT D...原创 2019-05-13 14:34:01 · 763 阅读 · 0 评论
分享