Need to Open MDF file in MS Office 365 Access - sql

I found links to this topic on this and other sites but have had no luck. I know a lot of code but I am REALLY out of my wheelhouse here so please provide very specific instructions if possible.
I would like to import this SQL Server .MDF database file (200 MB) into Access tables (or link to the external SQL Server tables, so that I can transfer the data within Access).
I installed SQL Server Management Studio (thought I needed to) but cannot figure out how to get it to connect to the DB... then I think I would need to use the external data ODBC option in access to connect from there but I haven't been able to get anything to work...
This is a one-time need so any creative workaround would be acceptable also...
Any help that you can provide would be greatly appreciated. Thanks!!

Install SQL Server Express With Tools (2012 should be fine).
When you install this, include the following features:
Database Engine and Management Tools - Basic.
Once you have this installed, open SQL Server Management Studio (Run > ssms.exe).
As marc_s said, you'll need to attach the .MDF file to your SQL Server.
I usually copy the MDF file to C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA so when I attach the database, it's the first folder that's open.
Next, in Access 2013, use the Data Import wizard to connect to SQL Server. You'll need to enter the SQL Server name and instance, usually "localhost\SQLExpress" works for a default SQL Express install.
Follow the Wizard, and it'll allow you to pick which tables/views you want to use.
You can also do this in Excel first, then save the data as .csv or something similar, then import the CSV into Access.

Related

is it possible to open a .bak file in sql without connecting to a database?

i have a .bak file and i want to check its data before importing it to host ! i tried to open it with MS SQL server management studio to see data inside the backup file. i googled a lot but i couldnt understand how to open this file ! i saw every solution to import a .bak file in a existed database ! i have no database on my local computer. how can i check my backup file data ? anyone can help ?
thanks in advance !
There are some 3rd party tools. Try searching google for "open bak file without sql server".
Also there is free SQL express, so you can install server on your local computer and attach database. Default installation should do the trick.
You can even open it in notepad, but it's not very practical..

Reading text files located on LINUX server and updating the tables in SQL Server Database

I know we can write a Stored Procedure/Bulk Insert to read the files that are located on the same Windows Server as SQL Server and update the database but not sure how to do it when the files are present in LINUX.
Any help would be greatly appreciated
Assuming you can access those files through some network file share, SSIS would likely be the tool to use. If It's just a 1-time or ad-hoc occurrence, the SQL Server Import and Export tool would likely be the easiest solution.

Need to find a way to edit a password protected .bak file of SQL Server 2005

I've some .bak files created from different PC's but I need to restore and be able to edit
them. When I'm trying to restore it says that file is password protected.
So how could I change the table values? I also need to export these values directly from Excel or Access files.
I would be so much glad if someone could help! These .bak files are of SQL Server 2005.
Could I do this with win 7 ultimate 64bit, with any higher version like SQL Server 2008 or 2012 installed?
I mean can I make changes with different version of SQL Server?
Thanks in advance!

How to import MDF/LDF DotNetNuke/WebMatrix data into SQL Server

How do I import data in the Database.mdf file into a SQL Server? I am using RazorSQL to access the MSSQL database, and tried to "import" the data, but did not know which "separator" to use.
I presume that my DotNetNuke data is in the Database.mdf file since WebMatrix was running locally and the web.config files references it.
I have an LDF file as well.
Using WebMatrix Migrate is not an option. This is a manual procedure I am looking for.
Open up SQL Server Management Studio and connect to your database server.
Then follow these steps:
Attaching a MDF file
Attaching an MDF file without LDF
This will get your database into SQL Server then you can export the data or do whatever you want with it from SQL Server management studio.

sql server 2005 (for old systems) and many problems for attach and restore...(changing drive location)

why sql server 2005 so sucks?
i should work on an old system that using sql server 2005!
my problems are :
1-when i detach a database and move mdf / ldf files of that db to another drive , so i can
not attach these files because of moving!
what is the best way for change the location of mdf/ldf files to another drive?
==============================================================================
2-when i backup a db that mdf/ldf of that db are on drive e , so i can not restore that bak file to another system that has not drive e / what is going on about sql server 2005 / i test this job on sql server 2008 and every thing was ok / how can i solve this issue?
i am using windows 7 ultimate / sql server management studio express edition /
thanks in future advance
best regards
When you restore a database backup you need to go into the restore options and update the paths of the MDF/LDF files to wherever you want them on the new machine. The default is to keep these paths the same and obviously they may not exist on the new machine.
When you did the restore, you pointed the data and log files to the new drives - you may have done this in the GUI (Management Studio) or in TSQL. When you try the reattach, you need to do the same thing - just change the file locations.
Firstly you take the backup of SQL database including Log transaction files also. Then detach it by right clicking on it. Now you can change the location of MDF file and then restore. it.