<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sybase数据库技术，数据库恢复专家 &#187; drop table</title>
	<atom:link href="http://www.dbainfo.net/tag/drop-table/feed" rel="self" type="application/rss+xml" />
	<link>https://www.dbainfo.net</link>
	<description>提供Sybase ASE及Sybase SQL Anywhere数据库修复服务，电话：13811580958(微信)，QQ：289965371！We have many years of experience in recovering data from damanged Sybase devices. Contact us by Phone: +86 13811580958 Wechat: 13811580958 Email: 289965371@qq.com</description>
	<lastBuildDate>Sat, 14 Jun 2025 16:28:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Sybase ASE自动删除数据库内的所有用户表</title>
		<link>https://www.dbainfo.net/sybase-ase-auto-delete-all-user-tables.htm</link>
		<comments>https://www.dbainfo.net/sybase-ase-auto-delete-all-user-tables.htm#comments</comments>
		<pubDate>Wed, 15 Sep 2010 02:37:06 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[ASE]]></category>
		<category><![CDATA[drop table]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=288</guid>
		<description><![CDATA[以下存储过程能够自动批量删除数据库库内的所有用户表。 可以修改存储过程内的条件来删除指定的表。 删除表时请谨慎！ CREATE PROCEDURE sp_drop_tbl AS BEGIN &#160;&#160;&#160; DECLARE @tblname varchar(80) &#160;&#160;&#160; DECLARE @dropsql varchar(100) &#160;&#160;&#160; DECLARE cur1 CURSOR FOR &#160;&#160;&#160; &#160;&#160;&#160; SELECT name FROM dbo.sysobjects WHERE&#160; type = &#39;U&#39; &#160;&#160;&#160; OPEN cur1 &#160;&#160;&#160; FETCH cur1 INTO @tblname &#160;&#160;&#160; WHILE (@@SQLSTATUS = 0) &#160;&#160;&#160; BEGIN &#160;&#160;&#160; &#160;&#160;&#160; SELECT @dropsql = &#34;DROP TABLE &#34; + [...]]]></description>
			<content:encoded><![CDATA[<p>以下存储过程能够自动批量删除数据库库内的所有用户表。</p>
<p>可以修改存储过程内的条件来删除指定的表。</p>
<p><span style="font-size: 14px;"><span style="color: rgb(255, 0, 0);"><strong>删除表时请谨慎！<br />
	</strong></span></span></p>
<p>CREATE PROCEDURE sp_drop_tbl<br />
	AS<br />
	BEGIN<br />
	&nbsp;&nbsp;&nbsp; DECLARE @tblname varchar(80)<br />
	&nbsp;&nbsp;&nbsp; DECLARE @dropsql varchar(100)<br />
	&nbsp;&nbsp;&nbsp; DECLARE cur1 CURSOR FOR<br />
	&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <strong>SELECT name FROM dbo.sysobjects WHERE&nbsp; type = &#39;U&#39;</strong><br />
	&nbsp;&nbsp;&nbsp; OPEN cur1<br />
	&nbsp;&nbsp;&nbsp; FETCH cur1 INTO @tblname</p>
<p>	&nbsp;&nbsp;&nbsp; WHILE (@@SQLSTATUS = 0)<br />
	&nbsp;&nbsp;&nbsp; BEGIN<br />
	&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SELECT @dropsql = &quot;DROP TABLE &quot; + @tblname<br />
	&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; EXEC (@dropsql)<br />
	&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FETCH cur1 INTO @tblname<br />
	&nbsp;&nbsp;&nbsp; END</p>
<p>	&nbsp;&nbsp;&nbsp; CLOSE cur1<br />
	&nbsp;&nbsp;&nbsp; DEALLOCATE cursor cur1<br />
	END</p>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/sybase-ase-auto-delete-all-user-tables.htm">https://www.dbainfo.net/sybase-ase-auto-delete-all-user-tables.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/sybase-ase-auto-delete-all-user-tables.htm">Sybase ASE自动删除数据库内的所有用户表</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2019-04-12 -- <a href="https://www.dbainfo.net/sybase-ase-asa-recovery-service.htm" title="Sybase ASE及SQL Anywhere数据库修复专家">Sybase ASE及SQL Anywhere数据库修复专家</a> (0)</li><li>2015-01-16 -- <a href="https://www.dbainfo.net/one-way-to-recover-master-configuration-area.htm" title="master数据库配置区域(configuration area)损坏的一种修复方法">master数据库配置区域(configuration area)损坏的一种修复方法</a> (1)</li><li>2014-10-10 -- <a href="https://www.dbainfo.net/ase-object-name-length-limit.htm" title="ASE对象名称长度限制">ASE对象名称长度限制</a> (0)</li><li>2014-06-09 -- <a href="https://www.dbainfo.net/count_all_tables_rowcount.htm" title="统计用户数据库内所有表的行数">统计用户数据库内所有表的行数</a> (0)</li><li>2013-11-19 -- <a href="https://www.dbainfo.net/showplan_html_format.htm" title="以HTML格式显示ASE查询计划">以HTML格式显示ASE查询计划</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation5.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 5、安装后的配置工作">Sybase ASE 15.0.3 for windows平台安装文档 – 5、安装后的配置工作</a> (1)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation4.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 4、安装Sybase数据库服务">Sybase ASE 15.0.3 for windows平台安装文档 – 4、安装Sybase数据库服务</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation3.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 3、升级到 Sybase 15.0.3 ESD #3">Sybase ASE 15.0.3 for windows平台安装文档 – 3、升级到 Sybase 15.0.3 ESD #3</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation2.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 2、安装Sybase ASE程序">Sybase ASE 15.0.3 for windows平台安装文档 – 2、安装Sybase ASE程序</a> (0)</li><li>2013-11-11 -- <a href="https://www.dbainfo.net/ase-15-0-3-for-windows-installation1.htm" title="Sybase ASE 15.0.3 for windows平台安装文档 – 1、安装前的准备工作">Sybase ASE 15.0.3 for windows平台安装文档 – 1、安装前的准备工作</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/sybase-ase-auto-delete-all-user-tables.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>密码保护：成功恢复drop table的表内数据</title>
		<link>https://www.dbainfo.net/sybase-ase-flashback-table-to-before-drop-table.htm</link>
		<comments>https://www.dbainfo.net/sybase-ase-flashback-table-to-before-drop-table.htm#comments</comments>
		<pubDate>Tue, 23 Feb 2010 09:40:48 +0000</pubDate>
		<dc:creator>dbainfo</dc:creator>
				<category><![CDATA[Sybase ASE]]></category>
		<category><![CDATA[DBCC]]></category>
		<category><![CDATA[dbcc allocdump]]></category>
		<category><![CDATA[dbcc page]]></category>
		<category><![CDATA[dbcc pglinkage]]></category>
		<category><![CDATA[drop table]]></category>
		<category><![CDATA[truncate table]]></category>
		<category><![CDATA[恢复]]></category>
		<category><![CDATA[误操作]]></category>
		<category><![CDATA[非常规恢复]]></category>

		<guid isPermaLink="false">http://www.dbainfo.net/?p=144</guid>
		<description><![CDATA[无法提供摘要。这是一篇受保护的文章。]]></description>
			<content:encoded><![CDATA[<form action="https://www.dbainfo.net/wp-pass.php" method="post">
<p>这是一篇受密码保护的文章。您需要提供访问密码：</p>
<p><label for="pwbox-144">密码：<br />
<input name="post_password" id="pwbox-144" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="提交" /></p></form>
<div style="clear: both; margin: 10px 0pt; border: 1px dashed rgb(153, 153, 153); font-size: 12px; padding: 5px 10px;">
<li>本文链接地址：<a href="https://www.dbainfo.net/sybase-ase-flashback-table-to-before-drop-table.htm">https://www.dbainfo.net/sybase-ase-flashback-table-to-before-drop-table.htm</a>；</li>
<li>本文为dbainfo个人原创，请在尊重作者劳动成果的前提下进行转载；</li>
<li>转载务必注明原始出处 : <a href="https://www.dbainfo.net/">Sybase数据库技术，数据库恢复专家</a>；</li>
<li>对《<a href="https://www.dbainfo.net/sybase-ase-flashback-table-to-before-drop-table.htm">密码保护：成功恢复drop table的表内数据</a>》有何疑问或见解，请在本文下方发表；</li>
<li>对网站还有其他问题或建议，请提交在<a href="https://www.dbainfo.net/messages" target="_blank">留言板</a>，谢谢！</li>
</div>
<h2  class="related_post_title">相关文章</h2><ul class="related_post"><li>2013-06-02 -- <a href="https://www.dbainfo.net/recovery-tools" title="Sybase数据库恢复工具">Sybase数据库恢复工具</a> (0)</li><li>2013-06-02 -- <a href="https://www.dbainfo.net/2120.htm" title=""></a> (0)</li><li>2010-02-25 -- <a href="https://www.dbainfo.net/mssqlserver-flashback-to-before-drop-table-by-logs.htm" title="MSSQLSERVER利用日志恢复drop table的表数据[转]">MSSQLSERVER利用日志恢复drop table的表数据[转]</a> (0)</li><li>2012-06-22 -- <a href="https://www.dbainfo.net/introduce-sql-anywhere-recovery-tool-readasadb.htm" title="Sybase SQL Anywhere(ASA)数据库非常规恢复工具">Sybase SQL Anywhere(ASA)数据库非常规恢复工具</a> (0)</li><li>2012-06-11 -- <a href="https://www.dbainfo.net/i-have-the-tool-can-recover-from-asa-db-file.htm" title="研发成功了从Sybase SQL Anywhere的DB文件上恢复数据的工具">研发成功了从Sybase SQL Anywhere的DB文件上恢复数据的工具</a> (3)</li><li>2009-11-18 -- <a href="https://www.dbainfo.net/sybase-ase-recovery-tool.htm" title="Sybase Adaptive Server Enterprise(ASE)数据库恢复工具">Sybase Adaptive Server Enterprise(ASE)数据库恢复工具</a> (2)</li><li>2019-04-12 -- <a href="https://www.dbainfo.net/sybase-ase-asa-recovery-service.htm" title="Sybase ASE及SQL Anywhere数据库修复专家">Sybase ASE及SQL Anywhere数据库修复专家</a> (0)</li><li>2019-04-11 -- <a href="https://www.dbainfo.net/sql-server-recovery-service.htm" title="SQL Server 数据库修复专家SQLRescue">SQL Server 数据库修复专家SQLRescue</a> (0)</li><li>2015-01-16 -- <a href="https://www.dbainfo.net/one-way-to-recover-master-configuration-area.htm" title="master数据库配置区域(configuration area)损坏的一种修复方法">master数据库配置区域(configuration area)损坏的一种修复方法</a> (1)</li><li>2012-09-26 -- <a href="https://www.dbainfo.net/config_dbccdb.htm" title="dbcc配置过程">dbcc配置过程</a> (0)</li></ul>]]></content:encoded>
			<wfw:commentRss>https://www.dbainfo.net/sybase-ase-flashback-table-to-before-drop-table.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
