Monday, February 20, 2012

ODBC Link from Access to SQL Server 2005 Stored Function

If I define a table-valued function in a SQL Server 2005 database, can I link to it from Access 2003 using ODBC?

I've defined the function successfully, and I can link from Access to tables in the database (so my ODBC link is basically functioning), but I can't see the table-valued function in the Linked Table Manager in Access.

I can define a pass-through query to grab the table, but with a pass-through query I have to provide the ODBC password every time.

What am I missing?

Suggestions?

Try creating a view around your table valued function, and then linking to the view. It worked for the sample I just tried.

Thanks

No comments:

Post a Comment