Web Design Forums

Database Systems Help

Discussion and help on database systems such as MySQL, MSSql, SQLite, PostgreSQL

From ACCESS to SQL Server 2K



Site of the Month Voting - Now Open. CAST YOUR VOTE NOW!

Reply
 
LinkBack Thread Tools
Old April 14 '03, 02:41 PM (#1)
dinologic is offline
WDF Member
 
dinologic's Avatar
 
Join Date: January 2003
Posts: 54
dinologic
From ACCESS to SQL Server 2K

I'm finally taking the plunge to SQL 2K. I've been working with Access for a few years and have accumulated several databases all over our network. One of those databases contains information that is used by the others through linked tables. When I move to SQL, how should I handle this? Can you query more than one database with one query? Is there a similar feature in SQL Server to allow one database to be "linked" to another? Or should I just create one huge database? (By "huge" I mean many tables, but record-wise, the largest table probably takes on about 30-40k records each year.)

Any info here would be much appreciated.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old April 14 '03, 05:14 PM (#2)
smoseley is online now
WDF Moderator
 
smoseley's Avatar
 
Join Date: March 2003
Location: Miami, FL
Posts: 8,719
smoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud ofsmoseley has much to be proud of
You can have "linked servers", which will treat multiple physical (or logical) database servers as one machine. When you get to building your query, though, you will have to reference cross-database queries like this:
Code:
SELECT
    p.name,
    a.address
FROM
    human_resources.dbo.person AS p
    INNER JOIN mailing_room.dbo.address AS a
        ON p.ssn = a.ssn
In this query, the name "human_resources" or "mailing_room" would represent your database (aka catalog) name. The "dbo" would represent the object owner (the user role in the database who owns the object. "dbo" is default. You can also leave it blank for dbo - i.e. "human_resources..person"). The "person" or "address" would represent the name of the table. "p" and "a" are aliases to the tables, and so on.

This assumes that all of your databases (catalogs) are on one server or multiple linked servers.

Last edited by smoseley; April 14 '03 at 05:14 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

  Web Design Forums » Programming Help » Database Systems Help

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET connecting to SQL Server 2005 bfsog Other Languages 2 July 24 '08 02:13 PM
Host4Yourself.com - Nice! tutt Server Administration Help 36 February 19 '06 01:52 PM
IS.nl (Interned Services - Netherlands) TheGAME1264 Server Administration Help 6 June 3 '04 10:46 AM
SQL Server 2000 backups to a client machine that doesn't have SQL Server TheGAME1264 Database Systems Help 21 August 11 '03 01:34 AM
Nifty SQL Server @@ Properties smoseley Other Languages 0 March 28 '03 03:22 PM

 
User Infomation
Your Avatar

Site Of The Month
Nominate Your Site Now!

Advertisement
WolfCMS.org

Latest Articles
- by RickM
- by bfsog

Advertisement

Partner Links



All times are GMT -4. The time now is 02:02 PM.


WebDesignForums.net is Copyright © 2010 RikeMedia.

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164