zillow / ctds

Python DB-API 2.0 library for MS SQL Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use alternative schema besides dbo?

brdhunga opened this issue · comments

For example if I have a schema 'Raw' where the tables lives, how do i specify that?

I've not used this library in a while, but I looked at my code, and I'm doing bulk_inserts (https://github.com/zillow/ctds/blob/master/doc/bulk_insert.rst), and the first parameter is the table to insert into. I just used the below pattern to specify the table.

bulk_insert_table = f"{schema}.{table}"

Also, just a plug for the library, this is blazing fast. I'm sure I will be using this library again in the future. Thank you, Zillow!

Seems as though the question was answered. I'm going to resolve this.