<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; Restore Database Backup using SQL Script (T-SQL)</title>
	<atom:link href="http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Fri, 20 Nov 2009 20:17:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: hb</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-57755</link>
		<dc:creator>hb</dc:creator>
		<pubDate>Fri, 20 Nov 2009 02:33:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-57755</guid>
		<description>How could I restore a SQL 2005 database which has full-text catalog to a SQL 2008 database with T-SQL statement?

I can restore the database with SSMS GUI without any problem.

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>How could I restore a SQL 2005 database which has full-text catalog to a SQL 2008 database with T-SQL statement?</p>
<p>I can restore the database with SSMS GUI without any problem.</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: remo</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-57559</link>
		<dc:creator>remo</dc:creator>
		<pubDate>Thu, 12 Nov 2009 20:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-57559</guid>
		<description>Simple restore commad

I need a simple restore command with current date.

Restore database with today backup file only. can any body helps me in this regards.

remo</description>
		<content:encoded><![CDATA[<p>Simple restore commad</p>
<p>I need a simple restore command with current date.</p>
<p>Restore database with today backup file only. can any body helps me in this regards.</p>
<p>remo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raghu</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-57558</link>
		<dc:creator>Raghu</dc:creator>
		<pubDate>Thu, 12 Nov 2009 20:50:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-57558</guid>
		<description>I need a simple restore command with current date.

Restore database with today backup file only. can any body helps me in this regards.

Raghu</description>
		<content:encoded><![CDATA[<p>I need a simple restore command with current date.</p>
<p>Restore database with today backup file only. can any body helps me in this regards.</p>
<p>Raghu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-57528</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Wed, 11 Nov 2009 17:42:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-57528</guid>
		<description>Hi, i was executing a restore process on sql 2005 but i had toi cancel it couse the users told me that the system was too slow, i didnt know that the reason was that some user was running a big process well, now the data base appears like it is restoring and i can stop that process, how do i do it?</description>
		<content:encoded><![CDATA[<p>Hi, i was executing a restore process on sql 2005 but i had toi cancel it couse the users told me that the system was too slow, i didnt know that the reason was that some user was running a big process well, now the data base appears like it is restoring and i can stop that process, how do i do it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abrar Wadera</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-57412</link>
		<dc:creator>Abrar Wadera</dc:creator>
		<pubDate>Sat, 07 Nov 2009 14:12:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-57412</guid>
		<description>Dear Sirs
I have a backup from SQL Server 2005 and want to restore it on SQL Server 2000. Is this possible.

Regards
abrar</description>
		<content:encoded><![CDATA[<p>Dear Sirs<br />
I have a backup from SQL Server 2005 and want to restore it on SQL Server 2000. Is this possible.</p>
<p>Regards<br />
abrar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sagar</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-57171</link>
		<dc:creator>sagar</dc:creator>
		<pubDate>Fri, 30 Oct 2009 07:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-57171</guid>
		<description>Hi, i want to know how to restore database(.mdf) in sql server 2005.</description>
		<content:encoded><![CDATA[<p>Hi, i want to know how to restore database(.mdf) in sql server 2005.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-56846</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Wed, 21 Oct 2009 10:01:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-56846</guid>
		<description>in that i am using sqlserver 2005 using asp.net with c#</description>
		<content:encoded><![CDATA[<p>in that i am using sqlserver 2005 using asp.net with c#</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-56845</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Wed, 21 Oct 2009 10:00:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-56845</guid>
		<description>Hi, i want to know how to take backup from remoteserver to local server.... reply imd..</description>
		<content:encoded><![CDATA[<p>Hi, i want to know how to take backup from remoteserver to local server&#8230;. reply imd..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vinod</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-56836</link>
		<dc:creator>vinod</dc:creator>
		<pubDate>Wed, 21 Oct 2009 07:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-56836</guid>
		<description>Hi,
I am here to ask you help regarding Dotnetnuke with SQL Server 2008 express managment studio.

I have dotnetnuke website backup and Database backup of 2005 sql server .bak and I uninstalled the 2005 and installed 2008 sql server express managment studio.

In iis7 i pointed the new website to backup of Dotnetnuke site, and restored the .bak (2005) on 2008 sql server express managment studio. It not worked for me.

earlyer what i did the same when i done on 2005 it was done. not on 2008.

can you plz help..</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am here to ask you help regarding Dotnetnuke with SQL Server 2008 express managment studio.</p>
<p>I have dotnetnuke website backup and Database backup of 2005 sql server .bak and I uninstalled the 2005 and installed 2008 sql server express managment studio.</p>
<p>In iis7 i pointed the new website to backup of Dotnetnuke site, and restored the .bak (2005) on 2008 sql server express managment studio. It not worked for me.</p>
<p>earlyer what i did the same when i done on 2005 it was done. not on 2008.</p>
<p>can you plz help..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-56718</link>
		<dc:creator>abhishek</dc:creator>
		<pubDate>Thu, 15 Oct 2009 07:23:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-56718</guid>
		<description>Hello Mr.Pinal,

I have a requirement where in i have to get the database backup and restore when required.
I have to do this in a web application. The application has been developed using Java/J2EE technologies.
I have tried database backup and restore using JDBC.....but it didnot worked ....

Need help regarding.....
Iam using SQL Server 2005 database....
Can you please mention the steps for performing the above nmentioned tasks

thanks</description>
		<content:encoded><![CDATA[<p>Hello Mr.Pinal,</p>
<p>I have a requirement where in i have to get the database backup and restore when required.<br />
I have to do this in a web application. The application has been developed using Java/J2EE technologies.<br />
I have tried database backup and restore using JDBC&#8230;..but it didnot worked &#8230;.</p>
<p>Need help regarding&#8230;..<br />
Iam using SQL Server 2005 database&#8230;.<br />
Can you please mention the steps for performing the above nmentioned tasks</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bradley</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-56359</link>
		<dc:creator>Bradley</dc:creator>
		<pubDate>Fri, 02 Oct 2009 19:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-56359</guid>
		<description>Hello Pinal,

I have a backup from a database with a single data file in the primary filegroup and would like to restore it to a database with multiple files in the primary filegroup.  However, the restore always reverts the configuration for the new database back to a single file.  What is the trick to make this work?

Example:

CREATE DATABASE [Test] ON  PRIMARY 
( NAME = N&#039;Test_data1&#039;, FILENAME = N&#039;D:\Test_data1.mdf&#039; , SIZE = 2048KB , FILEGROWTH = 10%), 
( NAME = N&#039;Test_data2&#039;, FILENAME = N&#039;D:\Test_data2.ndf&#039; , SIZE = 2048KB , FILEGROWTH = 10%), 
 LOG ON 
( NAME = N&#039;Test_log&#039;, FILENAME = N&#039;D:\Test_log.ldf&#039; , SIZE = 1024KB , FILEGROWTH = 10%)
GO

RESTORE DATABASE [Test]
FROM DISK = N&#039;D:\Test.bak&#039; WITH RECOVERY, FILE = 1,
MOVE N&#039;Test_data&#039; TO N&#039;D:\Test_data1.mdf&#039;,
MOVE N&#039;Test_dog&#039; TO N&#039;D:\Test_log.ldf&#039;
, NOUNLOAD, REPLACE, STATS = 10
GO

The restore ends up deleting the Test_data2.ndf file and I am left with a database with only one data file.

Thank you, Bradley</description>
		<content:encoded><![CDATA[<p>Hello Pinal,</p>
<p>I have a backup from a database with a single data file in the primary filegroup and would like to restore it to a database with multiple files in the primary filegroup.  However, the restore always reverts the configuration for the new database back to a single file.  What is the trick to make this work?</p>
<p>Example:</p>
<p>CREATE DATABASE [Test] ON  PRIMARY<br />
( NAME = N&#8217;Test_data1&#8242;, FILENAME = N&#8217;D:\Test_data1.mdf&#8217; , SIZE = 2048KB , FILEGROWTH = 10%),<br />
( NAME = N&#8217;Test_data2&#8242;, FILENAME = N&#8217;D:\Test_data2.ndf&#8217; , SIZE = 2048KB , FILEGROWTH = 10%),<br />
 LOG ON<br />
( NAME = N&#8217;Test_log&#8217;, FILENAME = N&#8217;D:\Test_log.ldf&#8217; , SIZE = 1024KB , FILEGROWTH = 10%)<br />
GO</p>
<p>RESTORE DATABASE [Test]<br />
FROM DISK = N&#8217;D:\Test.bak&#8217; WITH RECOVERY, FILE = 1,<br />
MOVE N&#8217;Test_data&#8217; TO N&#8217;D:\Test_data1.mdf&#8217;,<br />
MOVE N&#8217;Test_dog&#8217; TO N&#8217;D:\Test_log.ldf&#8217;<br />
, NOUNLOAD, REPLACE, STATS = 10<br />
GO</p>
<p>The restore ends up deleting the Test_data2.ndf file and I am left with a database with only one data file.</p>
<p>Thank you, Bradley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lveirman</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55890</link>
		<dc:creator>lveirman</dc:creator>
		<pubDate>Tue, 15 Sep 2009 13:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55890</guid>
		<description>Hi,

Quick post just to point out a mispelling in the script : you requiered to rename the .LDF file to .MDF. Seems it should be .LDF :)

Great job ;)</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Quick post just to point out a mispelling in the script : you requiered to rename the .LDF file to .MDF. Seems it should be .LDF :)</p>
<p>Great job ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RAJ</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55762</link>
		<dc:creator>RAJ</dc:creator>
		<pubDate>Thu, 10 Sep 2009 07:57:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55762</guid>
		<description>Hi Pnal,
   can we take backup on networkpath
like &#039;\\servername\sharefoldername\backupfilename.sqlbackup of .bkp&#039;

i used this query
&#039;BACKUP DATABASE MYDATABASE TO DISK =\\servername\sharefoldername\backupfilename.bkp&#039; WITH INIT
but this is not working.

Error:-Cannot open backup device &#039;\\servername\sharefoldername\backupfilename.bkp&#039;. Device error or device off-line. See the SQL Server error log for more details.

please tell me the query and can we use this query in dotnet



Thnaks in Advance
    Regards 
      Raj</description>
		<content:encoded><![CDATA[<p>Hi Pnal,<br />
   can we take backup on networkpath<br />
like &#8216;\\servername\sharefoldername\backupfilename.sqlbackup of .bkp&#8217;</p>
<p>i used this query<br />
&#8216;BACKUP DATABASE MYDATABASE TO DISK =\\servername\sharefoldername\backupfilename.bkp&#8217; WITH INIT<br />
but this is not working.</p>
<p>Error:-Cannot open backup device &#8216;\\servername\sharefoldername\backupfilename.bkp&#8217;. Device error or device off-line. See the SQL Server error log for more details.</p>
<p>please tell me the query and can we use this query in dotnet</p>
<p>Thnaks in Advance<br />
    Regards<br />
      Raj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vijay</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55673</link>
		<dc:creator>vijay</dc:creator>
		<pubDate>Mon, 07 Sep 2009 17:15:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55673</guid>
		<description>hi 
  There is a problem with my project. i develope a windows based application in c# with sql server 2005 and develop a web site in Asp.net with sql server 2005 with same database .
Now i want to update my windows application database with one single click at client side . and wana take backup and restore the backup . Please tell me the Proper process to do so . And if i have the few extra tables at web database , there can be any problem to update it or not, if yes suggest me the solution</description>
		<content:encoded><![CDATA[<p>hi<br />
  There is a problem with my project. i develope a windows based application in c# with sql server 2005 and develop a web site in Asp.net with sql server 2005 with same database .<br />
Now i want to update my windows application database with one single click at client side . and wana take backup and restore the backup . Please tell me the Proper process to do so . And if i have the few extra tables at web database , there can be any problem to update it or not, if yes suggest me the solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashutosh</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55635</link>
		<dc:creator>Ashutosh</dc:creator>
		<pubDate>Sun, 06 Sep 2009 05:14:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55635</guid>
		<description>hi pinal,

can u pls explain me. how to restore my .bak file with sql server 2005 wizard. i think it is very easy to understand then query.

i m trying this, 

i m here in sql server 2005 wizard
1. ASHUTOSH/DATABASE/
2. then right click on screen it will dispaly menu which have one option &quot;Restore Database&quot; then......????</description>
		<content:encoded><![CDATA[<p>hi pinal,</p>
<p>can u pls explain me. how to restore my .bak file with sql server 2005 wizard. i think it is very easy to understand then query.</p>
<p>i m trying this, </p>
<p>i m here in sql server 2005 wizard<br />
1. ASHUTOSH/DATABASE/<br />
2. then right click on screen it will dispaly menu which have one option &#8220;Restore Database&#8221; then&#8230;&#8230;????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55415</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Mon, 31 Aug 2009 02:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55415</guid>
		<description>@Maniraj

Untill SQL Server 2005, using SQL Server native tools, you cannot take backup of a table in a database. You can only take backup of database or filegroup(s) in a database. 

You said, you want to take backup in a script format, that is possible using SQL Server Tool by name : Database Publishing Wizard. 

For a step by step pictorial explanation of how you can generate script for a table with data, check this link:

http://products.secureserver.net/products/hosting/PublishingWithDPW.htm

~ IM.</description>
		<content:encoded><![CDATA[<p>@Maniraj</p>
<p>Untill SQL Server 2005, using SQL Server native tools, you cannot take backup of a table in a database. You can only take backup of database or filegroup(s) in a database. </p>
<p>You said, you want to take backup in a script format, that is possible using SQL Server Tool by name : Database Publishing Wizard. </p>
<p>For a step by step pictorial explanation of how you can generate script for a table with data, check this link:</p>
<p><a href="http://products.secureserver.net/products/hosting/PublishingWithDPW.htm" rel="nofollow">http://products.secureserver.net/products/hosting/PublishingWithDPW.htm</a></p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maniraj</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55408</link>
		<dc:creator>Maniraj</dc:creator>
		<pubDate>Sun, 30 Aug 2009 13:30:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55408</guid>
		<description>Hi,

Take a backup for database using query....

Backup database dbName to disk=&#039;E:\NewFolder&#039;

Then,

Restore database dbName from disk=&#039;E\NewFolder&#039;

That&#039;s it...

Maniraj....</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Take a backup for database using query&#8230;.</p>
<p>Backup database dbName to disk=&#8217;E:\NewFolder&#8217;</p>
<p>Then,</p>
<p>Restore database dbName from disk=&#8217;E\NewFolder&#8217;</p>
<p>That&#8217;s it&#8230;</p>
<p>Maniraj&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maniraj</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55407</link>
		<dc:creator>Maniraj</dc:creator>
		<pubDate>Sun, 30 Aug 2009 13:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55407</guid>
		<description>Hi,

Any body know&#039;s my doubt just publish your idea!...

I want to take a backup for one table in script format.. 
like below this,

Insert into tblStudent values (1,&#039;Raja&#039;)
Insert into tblStudent values (2,&#039;Sindhu&#039;)

This is very urgent know any one please help me,

Thanks,
Maniraj...</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Any body know&#8217;s my doubt just publish your idea!&#8230;</p>
<p>I want to take a backup for one table in script format..<br />
like below this,</p>
<p>Insert into tblStudent values (1,&#8217;Raja&#8217;)<br />
Insert into tblStudent values (2,&#8217;Sindhu&#8217;)</p>
<p>This is very urgent know any one please help me,</p>
<p>Thanks,<br />
Maniraj&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pritesh</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55403</link>
		<dc:creator>pritesh</dc:creator>
		<pubDate>Sun, 30 Aug 2009 06:20:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55403</guid>
		<description>how to take backup of database using query .
pls help me out.
????????????????
 </description>
		<content:encoded><![CDATA[<p>how to take backup of database using query .<br />
pls help me out.<br />
????????????????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahua</title>
		<link>http://blog.sqlauthority.com/2007/02/25/sql-server-restore-database-backup-using-sql-script-t-sql/#comment-55348</link>
		<dc:creator>Mahua</dc:creator>
		<pubDate>Fri, 28 Aug 2009 13:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=40#comment-55348</guid>
		<description>Thanks Pinal for your help.
It really helped me a lot</description>
		<content:encoded><![CDATA[<p>Thanks Pinal for your help.<br />
It really helped me a lot</p>
]]></content:encoded>
	</item>
</channel>
</rss>
