﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Is it possible to move table to different DB without changing connection strings? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sat, 25 May 2013 17:35:19 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Is it possible to move table to different DB without changing connection strings?</title><link>http://www.sqlservercentral.com/Forums/Topic1353492-391-1.aspx</link><description>Thank you all! Synonyms did the trick</description><pubDate>Tue, 04 Sep 2012 03:53:00 GMT</pubDate><dc:creator>chammann</dc:creator></item><item><title>RE: Is it possible to move table to different DB without changing connection strings?</title><link>http://www.sqlservercentral.com/Forums/Topic1353492-391-1.aspx</link><description>Thanks Johan, I will give it a try</description><pubDate>Mon, 03 Sep 2012 22:50:42 GMT</pubDate><dc:creator>chammann</dc:creator></item><item><title>RE: Is it possible to move table to different DB without changing connection strings?</title><link>http://www.sqlservercentral.com/Forums/Topic1353492-391-1.aspx</link><description>As long as you stay on the same SQLInstance, it should be OK.Just:1) create another DB ( enable ownership chaining )2) create the table you need3) grant the account being used the auth it needs for that table4) in a single transaction, rename the current table and create a view or synonym that points to the new table in the new db5) move over the data from the renamed table to the new table.6) ( after double check ) drop the old (renamed )  table[b]Keep in mind, you'll need to take backups of the new db anyway! ( or if you don't care about the data, script it all every once in a while. )[/b]An alternative could be to just move that table into its own filegroup and perform filegroup backups.Also, with sql2008, [u]enable backup compression[/u]. ( with our db it reduces the backup to about 20% of the original backup file size )</description><pubDate>Mon, 03 Sep 2012 08:12:47 GMT</pubDate><dc:creator>ALZDBA</dc:creator></item><item><title>RE: Is it possible to move table to different DB without changing connection strings?</title><link>http://www.sqlservercentral.com/Forums/Topic1353492-391-1.aspx</link><description>Take a look at synonyms, they should do what you need.</description><pubDate>Mon, 03 Sep 2012 07:56:12 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>Is it possible to move table to different DB without changing connection strings?</title><link>http://www.sqlservercentral.com/Forums/Topic1353492-391-1.aspx</link><description>Would it be possible to move a table to a new database, but still reference it on the old name?We backup &amp; restore a database on different environments alot and I would like to move one of the tables out of the backup as to save space. The table is currently 25Gb.</description><pubDate>Mon, 03 Sep 2012 06:39:05 GMT</pubDate><dc:creator>chammann</dc:creator></item></channel></rss>