I have a synonym for a table in my SQL Server database.
I want to select rows from a table, but when I create a data context with a type provider, I do not see a synonym in the created data context.
A synonym is created as follows:
CREATE SYNONYM [AnotherDatabase_dbo].[MyTable] FOR [AnotherDatabase].[dbo].[MyTable]
I create a data context as follows:
type dbSchema = SqlDataConnection<"Data Source=MyServer\MyInstance;Initial Catalog=MyDatabase;Integrated Security=SSPI;">
let db = dbSchema.GetDataContext ()
How can I access a synonym from F #?
source
share