Re: Linking a SQL database to an Access database.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe you need quote delimiters on the parameters and commas between
each parameter:

@server = 'frank',
@provider = 'Microsoft.Jet.OLEDB.4.0.6218.0',
@srvproduct = 'Microsoft OLE DB Provider for Jet',
@datasrc = 'C:\Documents and Settings\Frank Smith\Desktop\test.mdb'

This question probably would have been better posted in

microsoft.public.sqlserver.programming

Since your question is really about SQL Server.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBRCWxN4echKqOuFEgEQLgEQCg/GGB5tqtWhbxp6ua5khKhUWgUM0AoI3K
y8KNz8IxOwkgYri8V+n8bwVm
=SIh2
-----END PGP SIGNATURE-----


Frank wrote:
I want to create a link between my SQL server database and an access database. I used the following code with the querry analyzer.

_________________________________________________________


USE master
GO
EXEC sp_addlinkedserver
@server = frank
@provider = Microsoft.Jet.OLEDB.4.0.6218.0
@srvproduct = Microsoft OLE DB Provider for Jet,
@datasrc = C:\Documents and Settings\Frank Smith\Desktop\test.mdb
GO

_____________________________________________________________

However, I get the follwoing error message when running the querry:

Incorrect syntax near '@provider'.
.



Relevant Pages

  • Re: linked tables
    ... > Microsoft OLE DB Provider for ODBC Drivers ... then access the Jet table with a 4-part name ... provider, instead of the one for Jet. ... table defined in the Access database which is linked to a SQL Server ...
    (microsoft.public.vb.database.ado)
  • Re: SQL Injection ASP + SQL Server (problem) ?!
    ... First Thkz for help and attention. ... Microsoft OLE DB Provider for ODBC Drivers ...
    (Pen-Test)
  • Re: Oracle Database Access via IIS 6.0 ASP Pages on Windows 2003 S
    ... >Oracle 10g Client is installed on the Windows Server. ... >This is my standard DSN Less connection. ... >Microsoft OLE DB Provider for ODBC Drivers error '80004005' ...
    (microsoft.public.inetserver.iis)
  • Re: ADO.net Code contest
    ... > Ah, actually, accessing an Access database is done through JET. ... > generic interface like OLE DB or ODBC from any data access interface ... ODBC, OLE DB are ... These provider are widely available. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: SQL Injection ASP+SQL Server (problem) !?
    ... > Error Type: ... > Microsoft OLE DB Provider for ODBC Drivers ...
    (comp.security.misc)