-
Hi All, Im currently taking a look at reading the schema of a set of databases to be able to retrieve the datatype of columns used withing a query. In T-SQL you are able to change the database context and from that perspective you can refer to tables by the schema.table instead of a database.schema.table. Is there already a method in place for setting the database context? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
when you call the optimizer on on a sql query, you can pass in a multi level nested dict database -> schema -> table, or just schema -> table. if your queries don't use database because they have an inferred schema, then just use the schema -> table mapping |
Beta Was this translation helpful? Give feedback.
when you call the optimizer on on a sql query, you can pass in a multi level nested dict
database -> schema -> table, or just schema -> table. if your queries don't use database because they have an inferred schema, then just use the schema -> table mapping