﻿<?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  / create synonym to schema / 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 11:14:07 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: create synonym to schema</title><link>http://www.sqlservercentral.com/Forums/Topic1412457-391-1.aspx</link><description>Nope, you have to synonym every object:[LiveServer].[Databade].[TheSchema].[ObjectName1] --&amp;gt; [DevServer].[Databade].[TheSchema].[ObjectName1][LiveServer].[Databade].[TheSchema].[ObjectName2] --&amp;gt; [DevServer].[Databade].[TheSchema].[ObjectName2]etc.</description><pubDate>Mon, 28 Jan 2013 10:12:01 GMT</pubDate><dc:creator>ScottPletcher</dc:creator></item><item><title>RE: create synonym to schema</title><link>http://www.sqlservercentral.com/Forums/Topic1412457-391-1.aspx</link><description>thanks a lot for the replies guys</description><pubDate>Mon, 28 Jan 2013 09:15:13 GMT</pubDate><dc:creator>erics44</dc:creator></item><item><title>RE: create synonym to schema</title><link>http://www.sqlservercentral.com/Forums/Topic1412457-391-1.aspx</link><description>Synonyms can be created for the following types of objects:Assembly (CLR) Stored ProcedureAssembly (CLR) Table-valued FunctionAssembly (CLR) Scalar FunctionAssembly Aggregate (CLR) Aggregate FunctionsReplication-filter-procedureExtended Stored ProcedureSQL Scalar FunctionSQL Table-valued FunctionSQL Inline-table-valued FunctionSQL Stored ProcedureViewTable (User defined) - Includes local and global temporary tables</description><pubDate>Mon, 28 Jan 2013 08:25:21 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: create synonym to schema</title><link>http://www.sqlservercentral.com/Forums/Topic1412457-391-1.aspx</link><description>nope a synonym must point to an [b]object [/b]( an object that would exist in a databases[b] sys.objects[/b] view), and not part of the name of an object.so by definitions, it is typically used for tables , views etc. very handy for aliasing four part objects, like CREATE SYNONYM myTable FOR OtherServer.Databasename.dbo.Tablename</description><pubDate>Mon, 28 Jan 2013 08:23:51 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>create synonym to schema</title><link>http://www.sqlservercentral.com/Forums/Topic1412457-391-1.aspx</link><description>HiI have a dev database and a live databaseboth have linked servers to other databases in the dev environments and live environmentsI would like to know if it is posible to create a synonym to a schema rather than an objectso In the dev database my synonym would be created something likecreate sysnonym Server.TheSchema for [DevServer].[Databade].[TheSchema]and in livecreate sysnonym Server.TheSchema for [LiveServer].[Databade].[TheSchema]This way I would only need to alter the information in my synonym rather than each time i reference a table.I know the about doesnt work so i was hoping that there was a way.Thanks</description><pubDate>Mon, 28 Jan 2013 08:18:47 GMT</pubDate><dc:creator>erics44</dc:creator></item></channel></rss>