This is a discussion on Connnecting to an MS Access DB with an MS SQL 2000 Stored Proc within the SQL Server forums, part of the Microsoft SQL Server category; --> I would like to access a table in MS Access from a stored procedure on MS SQL 2000. The ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I would like to access a table in MS Access from a stored procedure on MS SQL 2000. The MS Access DB is running on a diferent computer attached on the same network. I think I need to create an ODBC connection from the MS SQL 2000 to the MS Access DB but not sure. Secondly how do I refer to the table in the MS SQL stored proc? Thanks for your input, Joe Seamour |
| ||||
| You need to add a linked server, and then you can query the Access database directly. The BOL entry for sp_addlinkedserver shows an example, and the topic "OLE DB Provider for Jet" has more details. I've never set this up to use an Access DB on a different server myself, but I think it should work if the MSSQL service account has permission to access the share where the .mdb file is. When the linked server is configured, you can query it like this. SELECT * FROM MyLinkedServer...Table Simon "Joe Seamour" <jseamour@attbi.com> wrote in message news:1MYKa.33514$Bg.16441@rwcrnsc54... > I would like to access a table in MS Access from a stored procedure on MS > SQL 2000. The MS Access DB is running on a diferent computer attached on the > same network. I think I need to create an ODBC connection from the MS SQL > 2000 to the MS Access DB but not sure. Secondly how do I refer to the table > in the MS SQL stored proc? > > Thanks for your input, > > Joe Seamour > > > |
| Thread Tools | |
| Display Modes | |
|
|