惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
T
Threatpost
C
CERT Recently Published Vulnerability Notes
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Security Archives - TechRepublic
Security Archives - TechRepublic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
K
Kaspersky official blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Attack and Defense Labs
Attack and Defense Labs
N
News and Events Feed by Topic
Project Zero
Project Zero
H
Heimdal Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Know Your Adversary
Know Your Adversary
Google Online Security Blog
Google Online Security Blog
W
WeLiveSecurity
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Schneier on Security
Schneier on Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
N
News | PayPal Newsroom
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Cloudbric
Cloudbric
V
Vulnerabilities – Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
S
Securelist
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
NISL@THU
NISL@THU
N
News and Events Feed by Topic
S
Security Affairs
The Last Watchdog
The Last Watchdog
T
Tor Project blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
P
Palo Alto Networks Blog
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tenable Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security

博客园 - 凬月

DIV+CSS中标签dl dt dd常用的用法 使用gulp构建一个项目 (转)利用CAS算法实现通用线程安全状态机 棋牌游戏服务器架构设计 STM32F103引脚功能定义 STM32的型号的命名规则 关闭jtag保留swd 微信支付----维权接口开发!(转掌眼) 微信支付--入门篇(转掌眼) LoadRunner培训初级教程 [转]在windows环境中使用varnish squid-nginx 基本配置 redis windows下的环境搭建 显示数据库中所有表的记录数 一个带标号的CSS文章列表写法 CSS图片列表 YUI3 CSS Ubuntu 13.10 64位 无法 安装 ia32-libs 解决办法 [转]编译Android源代码常见错误解决办法
删除MSSQL数据库中所有表
凬月 · 2015-01-17 · via 博客园 - 凬月
--删除所有约束  
DECLARE c1 cursor for  
    select 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; '  
    from sysobjects  
    where xtype = 'F'  
open c1  
declare @c1 varchar(8000)  
fetch next from c1 into @c1  
while(@@fetch_status=0)  
    begin  
        exec(@c1)  
        fetch next from c1 into @c1  
    end  
close c1  
deallocate c1  
--删除数据库所有表  
declare @tname varchar(8000)  
set @tname=''  
select @tname=@tname + Name + ',' from sysobjects where xtype='U'  
select @tname='drop table ' + left(@tname,len(@tname)-1)  
exec(@tname)  

posted @ 2015-01-17 16:30  凬月  阅读(427)  评论()    收藏  举报