Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Join Table in 2 different database files

Join Table in 2 different database files

Scheduled Pinned Locked Moved Database
databasequestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    ting668
    wrote on last edited by
    #1

    Hi all~ How do I write a Sql Statement that joining 2 tables which in 2 different database files respectively? Thanks

    Y 1 Reply Last reply
    0
    • T ting668

      Hi all~ How do I write a Sql Statement that joining 2 tables which in 2 different database files respectively? Thanks

      Y Offline
      Y Offline
      Yulianto
      wrote on last edited by
      #2

      In SQL Server to access table in different database use database_name.dbo.table_name


      Work hard and a bit of luck is the key to success.

      You don`t need to be genius, to be rich.

      T 1 Reply Last reply
      0
      • Y Yulianto

        In SQL Server to access table in different database use database_name.dbo.table_name


        Work hard and a bit of luck is the key to success.

        You don`t need to be genius, to be rich.

        T Offline
        T Offline
        ting668
        wrote on last edited by
        #3

        Oh Iam sorry. I miss to mention. I would like to write a sql statement that can join 2 tables and 1 is assoicated by one connection and 1 is assoicated by another connection. Is it suitable to use "database_name.dbo.table_name" with SQL Ce Server 2000? Also what is the database name and dbo? Can I get some examples? Thanks

        Y 1 Reply Last reply
        0
        • T ting668

          Oh Iam sorry. I miss to mention. I would like to write a sql statement that can join 2 tables and 1 is assoicated by one connection and 1 is assoicated by another connection. Is it suitable to use "database_name.dbo.table_name" with SQL Ce Server 2000? Also what is the database name and dbo? Can I get some examples? Thanks

          Y Offline
          Y Offline
          Yulianto
          wrote on last edited by
          #4

          I don`t know if it's suitable with SQL Ce Server. If your database name is db1 and your table name is table1, to access the field field1 in the table use: db1.dbo.table1.field1 I hope this helps.:)


          Work hard and a bit of luck is the key to success.

          You don`t need to be genius, to be rich.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups