8 Messages
Ingest specific SQL tables from a schema
Hello,
I am trying to ingest some tables from a schema from an SQL server. I only want to ingest a few tables and ignore the rest. I am trying to use the connection string given in the documentation - “Tables=TableA, TableB, TableC”. However, I only see the schema ingested and none of the mentioned tables. I can’t verify if I am doing something wrong. Has anyone does this? I would really appreciate if you could help me with this.
Thank You
Rahul Nair
nikhildayal
2 Messages
3 years ago
Hi @rahul.nair.external.toyota-europe.com ,
Are you using Data catalog to load tables for a Schema . Ideally the catalog gives you options to EXCLUDE tables from getting in Collibra (and not the other way around).
1
0
jeffevoy
51 Messages
•
200 Points
3 years ago
We have been waiting for the INCLUDE option for a couple o f years now. We finally implemented a manual process to bring in tables one at a time. We couldn’t wait indefinitely and we are not willing to being in 25,000+ tables using Catalog. Not sure when/if Collibra will ever figure this out.
Be glad to share how we did it, but it might not work for you.
Regards,
Jeff Evoy
4
0
alvinuseree
157 Messages
3 years ago
I have some good news for all parties on this post
So it is possible to restrict the connection to include only a pre-set list of tables. The trick is to pass the fully qualified names of your tables and not the friendly name.
In my case, restricting to the Department table consists of passing the full name: HumanResources.Department
Shout if any questions.
I’ve attached an example using the AdventureWorks2019 Database and the Human Resources schema that consists of more than 1 table:
1
alvinuseree
157 Messages
3 years ago
Gladly
So the screen is the Collibra UI to register a data source, I just chose to zoom into the bits that are relevant here (attached a zoomed out pic).
I’ve also attached below, an image of the documentation for the Tables property. In order to use the Tables property, you need to specify the fully qualified table name (I admittedly thought it would be Database.Schema.Table but Schema.Table looks to work well).
2
0
markkuhnhenn
10 Messages
3 years ago
Thank you very much!
0
0
jeffevoy
51 Messages
•
200 Points
3 years ago
Alvin:
Great job on your solution. Does it scale? We have 300-400 tables to refresh.
1
0
jeffevoy
51 Messages
•
200 Points
3 years ago
Terrific! I’ll test this with our existing table list. This would be the best of both worlds. My screen scraper brings in a lot of metadata that doesn’t come across in the JDBC connection. This would provide automatic updates to the basic schema, which would be super. I’ll keep you posted.
Thanks again…
0
0
jeffevoy
51 Messages
•
200 Points
3 years ago
Unfortunately this might work for a MS SQL Server driver but our db is Oracle, and although I gave it two table names it tried to bring in all 25,000+ tables and all columns. Had to abort it all. I’ll check with Oracle further.
2
0
alvinuseree
157 Messages
3 years ago
Having said that, I’ll also check whether the tables property is usable for oracle just incase
1
0
leonidaszuloaga
1 Message
3 years ago
Hi @alvin.useree, thanks for the info.
What version of the SQL driver are you using? I have:
But I dont see the Tables field in your image.
I only see ‘Tables excluded from registration’ at the bottom of the connection parameters window. Thanks again!
0
0
alvinuseree
157 Messages
3 years ago
Good to see activity on this one!
@jeffrey.evoy I’ve had no luck with it unfortunately, I’m quite sure it isn’t possible for the Oracle JDBC yet but would be keen to hear where you get to with your conversation.
@lzuloaga.health.ucsd.edu I’m using the Collibra provided one - you’ll need to configure the driver itself to have the property when you add the JDBC driver. Let me know if that doesn’t make sense and I’ll send some documentation or a list of instructions.
@nramesh.levi.com I am indeed using Job Server. The Tables property I referenced is specific to SQL connections - are you using SQL? If so, I can put 2 and 2 together for you quickly.
0
0