JimStevens
MIS
We've just moved our CRM database from Sybase to SQL Server 2008 r2. The migration went fine. My question relates to the schemas in SQL Server 2008 r2. In the Sybase, all calls for report data came in from various applications with a specific schema (lets call it "CustSchema") so that the SQL calls went something like this: "Select Fld1, Fld2, Fld3 From CustSchema.TblA Where Blah and Blah and Blah;". Unfortunately, I've inherited some of these legacy applications without the source code so I'm not able to just go in and change the calls from "...CustSchema.TblA..." to "...dbo.CustSchema.TblA..." and re-compile and re-deploy the applications. Re-creating them is NOT on the table as it would take months if not years.
Is there a way in SQL Server 2008 to set up an alias, synonym or something that would automatically associate the "CustSchema" to "dbo" on an incoming database request? I've tried a synonym but that won't work on Schemas, only Schema objects (i.e. Tables, Views, etc.). I've also tried changing the default schema on the CustSchema user account to "dbo" but that didn't work either (big surprise).
Is there a way in SQL Server 2008 to set up an alias, synonym or something that would automatically associate the "CustSchema" to "dbo" on an incoming database request? I've tried a synonym but that won't work on Schemas, only Schema objects (i.e. Tables, Views, etc.). I've also tried changing the default schema on the CustSchema user account to "dbo" but that didn't work either (big surprise).