<?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; Refresh Database Using T-SQL</title>
	<atom:link href="http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:31:47 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Arun</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-203483</link>
		<dc:creator><![CDATA[Arun]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 07:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-203483</guid>
		<description><![CDATA[Hi Pinal,

I have to restore a production database in QA. What are the steps to be followed? Please guide. Need to know how to script the login,users.

Thanks
Arun]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I have to restore a production database in QA. What are the steps to be followed? Please guide. Need to know how to script the login,users.</p>
<p>Thanks<br />
Arun</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hussen</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-171362</link>
		<dc:creator><![CDATA[hussen]]></dc:creator>
		<pubDate>Sat, 24 Sep 2011 14:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-171362</guid>
		<description><![CDATA[Hi

This is hussen 
How to refresh the db can u tell me that?]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>This is hussen<br />
How to refresh the db can u tell me that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: meena</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-149619</link>
		<dc:creator><![CDATA[meena]]></dc:creator>
		<pubDate>Wed, 20 Jul 2011 14:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-149619</guid>
		<description><![CDATA[&#039;Connect to the local, default instance of SQL Server.
Dim srv As Server
srv = New Server

&#039;Reference the AdventureWorks database.
Dim db As Database
db = srv.Databases(&quot;AdventureWorks&quot;)

&#039;Rename the database
db.Rename(&quot;AdventureWorks2&quot;)

&#039;Refresh the properties on the database.
db.Refresh()
db.Rename(&quot;AdventureWorks&quot;)]]></description>
		<content:encoded><![CDATA[<p>&#8216;Connect to the local, default instance of SQL Server.<br />
Dim srv As Server<br />
srv = New Server</p>
<p>&#8216;Reference the AdventureWorks database.<br />
Dim db As Database<br />
db = srv.Databases(&#8220;AdventureWorks&#8221;)</p>
<p>&#8216;Rename the database<br />
db.Rename(&#8220;AdventureWorks2&#8243;)</p>
<p>&#8216;Refresh the properties on the database.<br />
db.Refresh()<br />
db.Rename(&#8220;AdventureWorks&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jayant dass</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-81400</link>
		<dc:creator><![CDATA[jayant dass]]></dc:creator>
		<pubDate>Fri, 23 Jul 2010 11:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-81400</guid>
		<description><![CDATA[Hi Wakil

You can use below code

begin try

begin transaction updateITEM_PURCHASE_and_WAREHOUSE 

-- tsql here 
insert into ITEM_PURCHASE
insert into WAREHOUSE 

commit transaction updateITEM_PURCHASE_and_WAREHOUSE 

commit transaction updateITEM_PURCHASE_and_WAREHOUSE 
end try 
begin catch 
IF @@TRANCOUNT &gt; 0
rollback transaction updateITEM_PURCHASE_and_WAREHOUSE 
 insert into errortble (ErrorNumber,ErrorSeverity,ErrorState,ErrorProcedure,Errorline,ErrorMessage)(SELECT ERROR_NUMBER() AS ErrorNumber, ERROR_SEVERITY() AS ErrorSeverity, ERROR_STATE() AS ErrorState,ERROR_PROCEDURE() AS ErrorProcedure, ERROR_LINE() AS ErrorLine, ERROR_MESSAGE() AS ErrorMessage)
SELECT ERROR_NUMBER() AS ErrorNumber, ERROR_SEVERITY() AS ErrorSeverity, ERROR_STATE() AS ErrorState,ERROR_PROCEDURE() AS ErrorProcedure, ERROR_LINE() AS ErrorLine, ERROR_MESSAGE() AS ErrorMessage;
end catch 



Regards
Jayant Das]]></description>
		<content:encoded><![CDATA[<p>Hi Wakil</p>
<p>You can use below code</p>
<p>begin try</p>
<p>begin transaction updateITEM_PURCHASE_and_WAREHOUSE </p>
<p>&#8211; tsql here<br />
insert into ITEM_PURCHASE<br />
insert into WAREHOUSE </p>
<p>commit transaction updateITEM_PURCHASE_and_WAREHOUSE </p>
<p>commit transaction updateITEM_PURCHASE_and_WAREHOUSE<br />
end try<br />
begin catch<br />
IF @@TRANCOUNT &gt; 0<br />
rollback transaction updateITEM_PURCHASE_and_WAREHOUSE<br />
 insert into errortble (ErrorNumber,ErrorSeverity,ErrorState,ErrorProcedure,Errorline,ErrorMessage)(SELECT ERROR_NUMBER() AS ErrorNumber, ERROR_SEVERITY() AS ErrorSeverity, ERROR_STATE() AS ErrorState,ERROR_PROCEDURE() AS ErrorProcedure, ERROR_LINE() AS ErrorLine, ERROR_MESSAGE() AS ErrorMessage)<br />
SELECT ERROR_NUMBER() AS ErrorNumber, ERROR_SEVERITY() AS ErrorSeverity, ERROR_STATE() AS ErrorState,ERROR_PROCEDURE() AS ErrorProcedure, ERROR_LINE() AS ErrorLine, ERROR_MESSAGE() AS ErrorMessage;<br />
end catch </p>
<p>Regards<br />
Jayant Das</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-53741</link>
		<dc:creator><![CDATA[Imran Mohammed]]></dc:creator>
		<pubDate>Thu, 16 Jul 2009 03:36:38 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-53741</guid>
		<description><![CDATA[@Firoz.

That should be done through front End interface / Web interface.

~ IM.]]></description>
		<content:encoded><![CDATA[<p>@Firoz.</p>
<p>That should be done through front End interface / Web interface.</p>
<p>~ IM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: firoz</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-53713</link>
		<dc:creator><![CDATA[firoz]]></dc:creator>
		<pubDate>Wed, 15 Jul 2009 07:03:15 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-53713</guid>
		<description><![CDATA[Dear all

I am using  ms sql 2005 for database.

i want if i make any changes in database or add any thing.

it should be refresh automatic i don&#039;t have to refresh my website or software just like cricket&#039;s website.

if someone is using my website it should be automatic refresh in every 1/2  minutes refresh. 

can someone help me.

regards all

firoz khan]]></description>
		<content:encoded><![CDATA[<p>Dear all</p>
<p>I am using  ms sql 2005 for database.</p>
<p>i want if i make any changes in database or add any thing.</p>
<p>it should be refresh automatic i don&#8217;t have to refresh my website or software just like cricket&#8217;s website.</p>
<p>if someone is using my website it should be automatic refresh in every 1/2  minutes refresh. </p>
<p>can someone help me.</p>
<p>regards all</p>
<p>firoz khan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kapil</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-44154</link>
		<dc:creator><![CDATA[Kapil]]></dc:creator>
		<pubDate>Tue, 11 Nov 2008 11:23:11 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-44154</guid>
		<description><![CDATA[Hi.

I m using SQL Server 2005, 64 bit edition. Our problem is .. We need to restart or Refersh sql services mostly to increase the performence of Serve. My server configration is very good but the performence goes down suddenly. Please help me regarding this issue.]]></description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>I m using SQL Server 2005, 64 bit edition. Our problem is .. We need to restart or Refersh sql services mostly to increase the performence of Serve. My server configration is very good but the performence goes down suddenly. Please help me regarding this issue.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wakil</title>
		<link>http://blog.sqlauthority.com/2008/11/07/sql-server-refresh-database-using-t-sql/#comment-44121</link>
		<dc:creator><![CDATA[Wakil]]></dc:creator>
		<pubDate>Sun, 09 Nov 2008 08:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://sqlauthority.wordpress.com/?p=1480#comment-44121</guid>
		<description><![CDATA[Hi Pinal, 

I am using SQL SERVER 2005. So I am working on this project, where I have an ITEM_PURCHASE table and an WAREHOUSE table
I want users to be able to input data into the ITEM_PURCHASE table thru a form and the WAREHOUSE table will automatically populate from certain fields in ITEM_PURCHASE. In this scenario should I use a trigger or stored procedure? Can someone provide the SQL code to get me started? Can someone help me out here, it will be greatly appreciated.

Thanks,

Wakil]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal, </p>
<p>I am using SQL SERVER 2005. So I am working on this project, where I have an ITEM_PURCHASE table and an WAREHOUSE table<br />
I want users to be able to input data into the ITEM_PURCHASE table thru a form and the WAREHOUSE table will automatically populate from certain fields in ITEM_PURCHASE. In this scenario should I use a trigger or stored procedure? Can someone provide the SQL code to get me started? Can someone help me out here, it will be greatly appreciated.</p>
<p>Thanks,</p>
<p>Wakil</p>
]]></content:encoded>
	</item>
</channel>
</rss>

