INNER JOIN ON TWO DATABASES

  • Hi:

    I have a VB 2005 application that has two separate SQL Server 2005 databases in the application folder (Fees.mdf and Schedules.mdf).

    I want to do an inner join on two tables: one table is in the Fees database and the other is in the Schedules.

    In SQL Server 2000, I could write a stored procedure to do this:

    SELECT A.CODE, B.Fee FROM Fees.dbo.Codes A

    INNER JOIN Schedules.dbo.ScheduleFees B ON A.Code = B.Code

    But this doesn't work in SQL Server 2005 express (since the databases aren't attached to a server per say). Can anyone help?

    Thanks in advance!

    Kevin

  • What exactly do you mean by "aren't attached to a server"? Isn't the database engine installed on your machine?

    The Express edition is in this regard no different from any other edition of SQL Server 2005. Perhaps you should explain your problem in more detail.

    ML

    ---
    Matija Lah, SQL Server MVP
    http://milambda.blogspot.com

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

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