SQL

  • Hi

    Can I use a SQL in statement using 2 tables from 2 different databases one from Access and the other one from SQL Server.

    select distinct region_id,country_name,country_id from Renewal_Data where region_id in (select region_id from smUsrGrp where userid = '"& suserid & "')

    Here Renewal_Data  table is an Access table and  smUsrGrp is  SQL table.

    Regards

    Madhuri

  • use open row set....

    Here is an example..

    select k.*,x.* FROM

    OPENDATASOURCE

    (

    'MICROSOFT.JET.OLEDB.4.0',

    'DATA SOURCE="x:\LOCATION\X.MDB";

    USER ID=ADMIN;PASSWORD='

    )...TABLE_INACCESS k

    join some_table x

    on x.some_field = k.some_field

    ..or you can make a linked server


    Mathew J Kulangara
    sqladventures.blogspot.com

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply