<?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>Copying Files in SQL Server - MSSQL Query</title>
	<atom:link href="https://mssqlquery.com/tag/copying-files-in-sql-server/feed" rel="self" type="application/rss+xml" />
	<link>https://mssqlquery.com</link>
	<description>MSSQL and TSQL Programming and TSQL Examples</description>
	<lastBuildDate>Tue, 01 Feb 2022 20:03:57 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.3.1</generator>

<image>
	<url>https://mssqlquery.com/wp-content/uploads/2023/06/cropped-mssql-query-icon-32x32.png</url>
	<title>Copying Files in SQL Server - MSSQL Query</title>
	<link>https://mssqlquery.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Copying Files in SQL Server</title>
		<link>https://mssqlquery.com/copying-files-in-sql-server</link>
		
		<dc:creator><![CDATA[Yavuz Selim Kart]]></dc:creator>
		<pubDate>Tue, 01 Feb 2022 20:03:57 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Copying Files in SQL Server]]></category>
		<category><![CDATA[Copying Files SQL Server]]></category>
		<category><![CDATA[SQL Server File Copy]]></category>
		<guid isPermaLink="false">https://mssqlquery.com/?p=592</guid>

					<description><![CDATA[<p>Hello everyone, In this article, I will provide information about copying files in SQL Server. In some cases, it may be necessary to copy files in SQL Server. You can perform the copy operation using the code below. As an example, I created a text file named copy into the&#46;&#46;&#46;</p>
<p>The post <a href="https://mssqlquery.com/copying-files-in-sql-server">Copying Files in SQL Server</a> first appeared on <a href="https://mssqlquery.com">MSSQL Query</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Hello everyone,</p>
<p>In this article, I will provide information about copying files in SQL Server.</p>
<p>In some cases, it may be necessary to copy files in SQL Server.</p>
<p>You can perform the copy operation using the code below. As an example, I created a text file named <strong>copy</strong> into the D drive. I want this file to be copied in the name <strong>copy2</strong>.</p>
<p><span style="color: #ff0000;"><strong>Note:</strong> </span><strong>The code below may not work on the driver on the operating system.</strong></p>
<pre class="line-numbers"><code class="language-sql">EXECUTE sys.xp_cmdshell 'COPY D:\copy.txt D:\copy2.txt', no_output;</code></pre>
<p>When you run the code and look at the D drive, you will see the following result.</p>
<p><img decoding="async" fetchpriority="high" class="alignnone wp-image-594 size-full" src="https://mssqlquery.com/wp-content/uploads/2022/02/copying-files-in-sql-server-1.jpg" alt="Copying Files in SQL Server" width="700" height="409" srcset="https://mssqlquery.com/wp-content/uploads/2022/02/copying-files-in-sql-server-1.jpg 700w, https://mssqlquery.com/wp-content/uploads/2022/02/copying-files-in-sql-server-1-300x175.jpg 300w" sizes="(max-width: 700px) 100vw, 700px" /></p>
<p>As you can see, the copy operation was successful.</p>
<p>Good luck to everyone in business and life.</p>
<div class='epvc-post-count'><span class='epvc-eye'></span>  <span class="epvc-count"> 166</span><span class='epvc-label'> Views</span></div><p>The post <a href="https://mssqlquery.com/copying-files-in-sql-server">Copying Files in SQL Server</a> first appeared on <a href="https://mssqlquery.com">MSSQL Query</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
