Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 linking a sql database to access

Author  Topic 

newdba
Starting Member

30 Posts

Posted - 2011-06-15 : 09:15:42
how do you link a access database to sql?

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-06-15 : 10:10:24
In Management Studio:
- click VIEW
- Template Explorer
- Expand the Linked Server Node
- Double-click Add Linked Server Access MDB

This will give you a template for adding the linked server.
Go to Top of Page

newdba
Starting Member

30 Posts

Posted - 2011-06-15 : 15:42:48
i don't understnad the concept. linked server? can't i just import it into a database ?
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-06-15 : 15:48:33
Well, you asked to link, not import. Which do you want to do?
Go to Top of Page

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2011-06-16 : 01:30:07
Import you can do , it depends how complex the import requirements . The concept of Linked Server is different to Import.
The Linked Server allows commnads to be run against data sources on other servers.

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2011-06-16 : 07:43:54
Where do you want to see the data, access or sql server? Do you have data in the access file that you want to see in sql server or the other way around?



- Lumbago
My blog-> http://thefirstsql.com/2011/02/07/regular-expressions-advanced-string-matching-and-new-split-function-sql-server-2008-r2/
Go to Top of Page

Lumbago
Norsk Yak Master

3271 Posts

Posted - 2011-06-16 : 07:46:27
SQL Server data in access: http://www.mssqltips.com/tip.asp?tip=1480

Access data in sql server: http://forums.devx.com/showthread.php?t=2587

- Lumbago
My blog-> http://thefirstsql.com/2011/02/07/regular-expressions-advanced-string-matching-and-new-split-function-sql-server-2008-r2/
Go to Top of Page

newdba
Starting Member

30 Posts

Posted - 2011-06-16 : 09:48:39
the data is in the Access Database file and it needs to be seen in SQL
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-06-16 : 09:51:48
you can use SSIS, or the import wizard to quickly get the data into SQL Server.
Go to Top of Page

newdba
Starting Member

30 Posts

Posted - 2011-06-16 : 10:04:15
right but can I link it together with access after that?
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-06-16 : 10:29:50
Are you trying to upsize the Access data to SQL Server, and then use linked tables in Access?
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2011-06-16 : 10:42:17
How about you tell us what you need to do. Then we can help you find a solution.
Go to Top of Page

newdba
Starting Member

30 Posts

Posted - 2011-06-16 : 11:36:44
i'm sorry if i sound so confused here is hte email from teh director about the requirements. maybe i'm understanding something wrong?



For the project we are doing for Distribution & Repair

1) We need an SQL database created, call it DISTRIBUTION
2) I have an access database that we need to create links from to this new SQL DB
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-06-16 : 11:47:27
1. Don't call it Distribution, that's a standard name for SQL Server replication distributor databases. Even if you're not using replication, it's better to avoid any conflict.
2. There's a link tables wizard in Access. Create your SQL Server database and tables, then run the wizard. It will walk you through setting up the server connection and linking each table.
Go to Top of Page

newdba
Starting Member

30 Posts

Posted - 2011-06-16 : 13:23:49
create the database and import the tables thru SSIS shud be fine right? then do the link tables wizard?
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-06-16 : 13:41:04
Yes, that works too.
Go to Top of Page
   

- Advertisement -