<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Sql_Server%3ASQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5</id>
	<title>Sql Server:SQL导出及导入 - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Sql_Server%3ASQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Sql_Server:SQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5&amp;action=history"/>
	<updated>2026-06-02T23:52:26Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Sql_Server:SQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5&amp;diff=1251&amp;oldid=prev</id>
		<title>2015年6月29日 (一) 15:08 imported&gt;Soleverlee</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Sql_Server:SQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5&amp;diff=1251&amp;oldid=prev"/>
		<updated>2015-06-29T15:08:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2015年6月29日 (一) 15:08的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot;&gt;第7行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第7行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;MSSQL&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Database&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff:1.41:old-1250:rev-1251:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Sql_Server:SQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5&amp;diff=1250&amp;oldid=prev</id>
		<title>imported&gt;Soleverlee：​以“使用SQL脚本的方式迁移数据库，当源数据库同目标数据库存在版本差异时可以采用。当然文本方式不适合数据量较大的场景。...”为内容创建页面</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Sql_Server:SQL%E5%AF%BC%E5%87%BA%E5%8F%8A%E5%AF%BC%E5%85%A5&amp;diff=1250&amp;oldid=prev"/>
		<updated>2015-06-28T11:57:09Z</updated>

		<summary type="html">&lt;p&gt;以“使用SQL脚本的方式迁移数据库，当源数据库同目标数据库存在版本差异时可以采用。当然文本方式不适合数据量较大的场景。...”为内容创建页面&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;使用SQL脚本的方式迁移数据库，当源数据库同目标数据库存在版本差异时可以采用。当然文本方式不适合数据量较大的场景。&lt;br /&gt;
在Management Studio中右键数据库-&amp;gt;任务-&amp;gt;生成脚本，勾选“生成数据的脚本”（或者把导出类型更改为“架构及数据”，不同版本的Management Studio中描述不一样），即可导出到文件。&lt;br /&gt;
&lt;br /&gt;
在目标数据库上使用命令导入。&lt;br /&gt;
&amp;lt;source lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sqlcmd -S localhost -d &amp;lt;Database Name&amp;gt; -U &amp;lt;User Name&amp;gt; -P &amp;lt;Password&amp;gt; -i &amp;lt;SQL File Path&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:MSSQL]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Soleverlee</name></author>
	</entry>
</feed>