Re: how to connect the access to the sql



Someone else here will have to help with the code. I go via the ODBC route
and/or use the *.adp option.

Ed Warren.

"benson" <benson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F22D9EF0-DE33-45B7-BE60-6890DD4E2811@xxxxxxxxxxxxxxxx
>i know vba code but , i can write the code :
> set rs = new adodbo.recordset
> temp = "select * from table where ^"
> rs.open temp ,currentprojection.connection ,*,*
> i know the currentprojection,connection
> but i don't how to write the code to build the link that access to sql
> can you give me a exampe
> thanks for advence
>
> "Ed Warren" wrote:
>
>> To link in Access (mde, mdb) to SQL you can use an ODBC connection
>> (control
>> panel, odbc, add a connection to your sql server, then use that
>> connection
>> as a link in Access)
>>
>> and/or
>> use VBA code to build a link
>>
>>
>> To link a *.adp file you use ADO connections.
>>
>> Ed Warren
>>
>> "benson" <benson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:B3F64B8E-7185-49CB-A690-EC91F573A85B@xxxxxxxxxxxxxxxx
>> > wo know access can connect to the sql serve made by microsoft , but i
>> > can
>> > not get the success ..the access .adp can connect the sql ,but i know
>> > sql
>> > server little , your help i s great and thank you for advance /
>>
>>
>>


.



Relevant Pages

  • Re: Creating tables
    ... As far as I can tell, it won't do that if you are not using ODBC. ... > type The data type of field in the new table. ... > You just issue the correct table statement on a SQL connection and it ...
    (comp.lang.cobol)
  • Re: Using OLEDB from ActiveX DLL
    ... But why use ODBC anyway?). ... It is simply a SQL ... Server Login issue. ... The connection string for OLEDB: ...
    (microsoft.public.vb.general.discussion)
  • RE: SQL Backend w/Access FE using ODBC and Windows Auth Mode
    ... being you have the tables in the access table linked to SQL ... Server via the File based ODBC DSN. ... you can connect to the database right? ... As for the ADO and connection object, they are not options I am familiar ...
    (microsoft.public.sqlserver.setup)
  • Re: Restrict access to SQL database through ODBC
    ... If the application reports it's name to SQL (which they ... everything that connected to that database of a different application name ... > requires access through an ODBC DSN to my SQL Server ... > run sp_setapprole on that connection. ...
    (microsoft.public.sqlserver.security)
  • Re: Concurrent database access in SQL 2005 Mobile
    ... Please stick to having an "dummy" connection in Open State. ... SQL CE/Mobile has a background thread that flushes the changes ... they run for long hours and we have not seen memory leaks so far. ... then opens his work forms and it's in ...
    (microsoft.public.sqlserver.ce)

Quantcast