 




<?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/"
		>
<channel>
	<title>Comments on: Copying view from remote to local SQL Server with SSMS</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/copying-view-from-remote-to-local-sql-server-with-ssms/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/copying-view-from-remote-to-local-sql-server-with-ssms/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 18:27:48 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copying-view-from-remote-to-local-sql-server-with-ssms/#comment-59834</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Tue, 10 Feb 2009 21:50:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-59834</guid>
		<description><![CDATA[Any time you drop the table (be it SQL 2000, SQL 2005, SQL 2008, SQL 6.5, etc) the permissions are removed.  If this is a problem, in your development environment you can grant the rights to the schema instead of the tables (granted this will give you rights to all objects which may not be what you need).

Another option would be don&#039;t remove the tables.  Only remove the data and leave the tables alone.  Since I assume you do all your development work in dev, then move the changes into production the schemas should be identical.  All you should need to do is download the data for the tables that your application writes to.  All the read only tables can stay the same.

If you need to drop and recreate all the tables each time you can use the scripts found &lt;a href=&quot;http://www.tek-tips.com/viewthread.cfm?qid=1324602&amp;page=1&quot;&gt;here&lt;/a&gt; to get the rights from production as a T/SQL script you can then run against the dev database.  If the usernames aren&#039;t the same a quick search and replace will take care of that.]]></description>
		<content:encoded><![CDATA[<p>Any time you drop the table (be it SQL 2000, SQL 2005, SQL 2008, SQL 6.5, etc) the permissions are removed.  If this is a problem, in your development environment you can grant the rights to the schema instead of the tables (granted this will give you rights to all objects which may not be what you need).</p>
<p>Another option would be don&#8217;t remove the tables.  Only remove the data and leave the tables alone.  Since I assume you do all your development work in dev, then move the changes into production the schemas should be identical.  All you should need to do is download the data for the tables that your application writes to.  All the read only tables can stay the same.</p>
<p>If you need to drop and recreate all the tables each time you can use the scripts found <a href="http://www.tek-tips.com/viewthread.cfm?qid=1324602&amp;page=1">here</a> to get the rights from production as a T/SQL script you can then run against the dev database.  If the usernames aren&#8217;t the same a quick search and replace will take care of that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tsp1965</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copying-view-from-remote-to-local-sql-server-with-ssms/#comment-59781</link>
		<dc:creator>tsp1965</dc:creator>
		<pubDate>Mon, 09 Feb 2009 18:16:02 +0000</pubDate>
		<guid isPermaLink="false">#comment-59781</guid>
		<description><![CDATA[Thanks for that - I had a nasty feeling about that. It seems very sad that Microsoft have disimproved a system that worked well on ss2k.

Another gripe I have with ss2008 and SSMS is the nightmare it has made of permissions. When I set up a new table on my development server with ss2k I could set its permissions, get it all working and then upload it, preserving all its permissions. As long as you had the same logins on both servers, it worked fine.

As far as I can see SSMS doesn&#039;t do this, so each time I back up my remote db onto my local one, I &#039;lose&#039; all the permissions and have to then go and set every permission on the local server again. And given the number of different restricted access logins I have for different web pages, that&#039;s a big job. Is there any way of preserving permissions on tables to stop this happening?

Thanks again for your help.]]></description>
		<content:encoded><![CDATA[<p>Thanks for that &#8211; I had a nasty feeling about that. It seems very sad that Microsoft have disimproved a system that worked well on ss2k.</p>
<p>Another gripe I have with ss2008 and SSMS is the nightmare it has made of permissions. When I set up a new table on my development server with ss2k I could set its permissions, get it all working and then upload it, preserving all its permissions. As long as you had the same logins on both servers, it worked fine.</p>
<p>As far as I can see SSMS doesn&#8217;t do this, so each time I back up my remote db onto my local one, I &#8216;lose&#8217; all the permissions and have to then go and set every permission on the local server again. And given the number of different restricted access logins I have for different web pages, that&#8217;s a big job. Is there any way of preserving permissions on tables to stop this happening?</p>
<p>Thanks again for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/copying-view-from-remote-to-local-sql-server-with-ssms/#comment-59762</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Sun, 08 Feb 2009 20:21:12 +0000</pubDate>
		<guid isPermaLink="false">#comment-59762</guid>
		<description><![CDATA[Check out my SQL Server blog &quot;&lt;a href=&quot;http://itknowledgeexchange.techtarget.com/sql-server/&quot;&gt;SQL Server with Mr Denny&lt;/a&gt;&quot; for more SQL Server information.]]></description>
		<content:encoded><![CDATA[<p>Check out my SQL Server blog &#8220;<a href="http://itknowledgeexchange.techtarget.com/sql-server/">SQL Server with Mr Denny</a>&#8221; for more SQL Server information.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/10 queries in 0.035 seconds using memcached
Object Caching 295/301 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 22:41:40 -->