<@U04S8PLJWMT> if I pull data from a mssql db view...
# ask-ai
n
@kapa.ai if I pull data from a mssql db view where the view uses a table-valued function, will airbyte be able to ingest data
k
Airbyte can ingest data from views in MSSQL, as confirmed by both documentation and user reports. If your view uses a table-valued function (TVF), Airbyte will attempt to query the view using a standard SELECT * FROM <view_name> statement. As long as the view itself is accessible and returns data when queried directly in SQL Server, Airbyte should be able to ingest its data just like any other view or table. However, there is a known limitation: Airbyte does not natively support syncing directly from TVFs themselves (i.e., you cannot select a TVF as a source object in Airbyte and have it generate the correct SELECT * FROM <tvf_name>() query automatically). There is an open feature request for this capability, but it is not currently supported. The workaround is to create a view that wraps the TVF and then sync from that view, which aligns with your scenario. As long as the view is working in SQL Server, Airbyte should be able to ingest from it without issue, since it treats views similarly to tables during syncs [Accessing inline TVF's data sync from MSSQL](https://github.com/airbytehq/airbyte/issues/4879) [Handling Replication & Views with Airbyte](https://discuss.airbyte.io/t/459). In summary: Yes, Airbyte should be able to ingest data from a MSSQL view that uses a table-valued function, provided the view itself is queryable and returns data as expected.