Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

This answer was rated:

I need to convert my database from .mdf to .csv in order to…

I need to convert...

I need to convert my database from .mdf to .csv in order to change hhosting

Technician's Assistant: What programs and versions are you using?

But I don't know the first thing about SQL though I just downloaded SQL Express and SQL Server Management

Technician's Assistant: What is your ideal outcome? How can we solve this for you?

To have my data converted

Technician's Assistant: Anything else you want the programmer to know before I connect you?

I can't even open up to attach my databse

Show More
Show Less
Ask Your Own Programming Question
Answered in 54 minutes by:
7/10/2017
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 364
Experience: PhD in Computer Science
Verified

HI,

Welcome to JustAnswer and thank you for utilising our services.

Have you tried these steps:

1. Open the MDF file in SQL server

2. run and export a query from each table.

Regards,

G

Ask Your Own Programming Question
Customer reply replied 1 year ago
I don't know how to open the .mdf file in SQL
Customer reply replied 1 year ago
I get an error message when trying to connect object explorer

Ok just a moment

Ask Your Own Programming Question
Customer reply replied 1 year ago
TITLE: Connect to Server
------------------------------Cannot connect to JOHN-HP\SQLEXPRESS.------------------------------
ADDITIONAL INFORMATION:A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is ***** ***** that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=-1&LinkId=20476------------------------------
BUTTONS:OK
------------------------------

Which action brings up the error?

Ask Your Own Programming Question
Customer reply replied 1 year ago
Connect to Server: Database Engine

Alright I am also experiencing a connection problem of my own. Just a moment while I try

Ask Your Own Programming Question

Ok so my server was not running. Please if your is running by going to:

Control Panel >> Administrative Tools >> Services

Scroll and right-click on SQL Server and start it if it is not running

Ask Your Own Programming Question
Customer reply replied 1 year ago
SQL Server Agent and SQL Server Browser are disabled. Why? What do I do?

Is "SQL Server (SQLEXPRESS)" in the list of services?

Ask Your Own Programming Question
Customer reply replied 1 year ago
set to Automatic
Customer reply replied 1 year ago
hmmm it was Stopped
I started it
Customer reply replied 1 year ago
ok I'm in- now what?

I am in the same stage and tried to open a .mdf file. It openned but the tables were not there. You can go to File and open your .mdf file

I am still investigating a proper way or application that can open it

Ask Your Own Programming Question

I am currently trying this: https://msdn.microsoft.com/en-us/library/ms239722.aspx

Ask Your Own Programming Question
Customer reply replied 1 year ago
34;There is no editor available for [filename.mdf]
Make sure the application for the file type (.mdf) is installed

I got the same and now trying the above link which uses Visual Studio

https://msdn.microsoft.com/en-us/library/ms239722.aspx

Ask Your Own Programming Question

On SQL Server Management Studio you can

Right-click on databases >> Attach >> Browse and select your .mdf file

In my case I have permissions denied still trying to work through it

Ask Your Own Programming Question
Customer reply replied 1 year ago
access denied

Ok I'll let you know once I get past it. If we succesfully import the db we can even use the bcp command to export

http://www.cryer.co.uk/brian/sqlserver/howtoexportcsv.htm

Ask Your Own Programming Question
Customer reply replied 1 year ago
Whatever you say! I'm wayyy out of my league

Alright go it now

You need to close the SQL Server Management Studio and run it as administrator i.e right-click on it and run as administrator

You will the be able to attach the mdf file without issues. After attaching it, on each table you can then:

Right-click in the table >> Script Table as >> SELECT To >> New Query Editor Window

The above will open a new window which retrieves everything from the table. No need to edit the query just run it and it will display all records from the table

The Righ-click on the results page just below the query >> Save Results as

The defaults will be a .csv format.

You just have to do it for each table I could not find a way to do all tables at once.

Please see attached and advice if you experience any difficulty

Ask Your Own Programming Question
Customer reply replied 1 year ago
Sorry- stepped away. Let me read through this
Customer reply replied 1 year ago
TITLE: Microsoft SQL Server Management Studio
------------------------------An error occurred when attaching the database(s). Click the hyperlink in the Message column for details.------------------------------
BUTTONS:OK
------------------------------

Hmm... strange. Let me investigate possible reasons.

Ask Your Own Programming Question
Customer reply replied 1 year ago
The Sever Agent is stopped. I tried to start it and it says "SQL Server Agent started and then stopped" Some services stop automatically if they are not in use by other programs"
Customer reply replied 1 year ago
does it need to be running?

The Agent and Browser are not important in our case

Ask Your Own Programming Question

Please check this out: https://www.youtube.com/watch?v=tx2WhE3lQKE

Ask Your Own Programming Question
Customer reply replied 1 year ago
OK. I need to leave for a couple of hours. What do I do with the ticket? Do I need to rate you now?

Yes once your issue is resolved you can provide the rating. Not urgent.

Ask Your Own Programming Question
Customer reply replied 1 year ago
I have choices of files to attach- Master, Model, MSDBData, TempDB, and Zen Talent Data. I assumed my data was Zen Talent Data but that gave me the "error occurred when attaching the database". I have tried Master and it says it is being used by another program.
Customer reply replied 1 year ago
OK I have to leave now. How do I reconnect with you later tonight or tomorrow?

Ok no prob. Lets make it tomorrow. When you get back to it close all programs that might be using the file including the SQL Server Management Studio and start it as admin

Ask Your Own Programming Question
Customer reply replied 1 year ago
OK I'm back. I rebooted the computer and started SQL Server Management as Admin. Getting the "An error occurred when attaching the database. Click the hyperlink in the message column for details." The hyper link gives me nothing of value.

Alright, if it is shareable you may share the .mdf file to export the tables for you and send back

This is however not a private channel between us I'd have to send a premium service offer for a secure exchange of your file

Its also possible to work remotely on your pc but since you have tried all the tricks above I am not sure why it refuses to work on it

Ask Your Own Programming Question
Customer reply replied 1 year ago
I can send you the file. I looked you up on LinkedIn and you appear to be legit- i.e. not going to share the data anywhere. What do I need to do?

I am indeed. Thanks, ***** *****'ll send the offer shortly

George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 364
Experience: PhD in Computer Science
Verified
George Sibiya and 87 other Programming Specialists are ready to help you
Ask your own question now

Hi John,

I am not of the actions it will allow you to perform, but this is the request and you can accept the answer if it allows you to.

Thank you so much

Regards,

G

Ask Your Own Programming Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask George Sibiya Your Own Question
George Sibiya
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 364
364 Satisfied Customers
Experience: PhD in Computer Science

George Sibiya is online now

A new question is answered every 9 seconds

How JustAnswer works:

  • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
  • 100% Satisfaction GuaranteeRate the answer you receive.

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

7,175 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

848 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I need help attaching an SQL Server .MDF file using the
I need help attaching an SQL Server .MDF file using the System Architect SAEM application. … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
I have an excel workbook exported from a SQL database. I
I have an excel workbook exported from a SQL database. I need to convert the data base to CSV, which i have done using workbook SaveAs, but I need the SQL data to refresh and resave as the same csv fi… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
I will not consider myself an expert vba programmer (self
Good day I will not consider myself an expert vba programmer (self taught) but have figured out a way to export data in csv format from an online database that we use for our member management system … read more
George Sibiya
George Sibiya
Computer Hardware Engineer
364 satisfied customers
Hello, I have attached an mdf database file (which was a dump
Hello, I have attached an mdf database file (which was a dump from a CRM) to sql, and I am trying to get to the data in a way that I can read and understand it. I am able to open the tables, but they … read more
AAATom
AAATom
Software Engineer
Master\u0027s Degree
42 satisfied customers
Hello, I am trying to convert an mdf file to a csv or excel
Hello, I am trying to convert an mdf file to a csv or excel file so that i can upload it to a new crm. i downloaded sql server 2012 express with advanced tools. I tried to attach the database. but it … read more
AAATom
AAATom
Software Engineer
Master\u0027s Degree
42 satisfied customers
How do you convert an excel data table into a SQL database?
How do you convert an excel data table into a SQL database? Can this be done using VBA code? Please provide code examples. Thanks!… read more
Steve The IT Guy
Steve The IT Guy
Master\u0027s Degree
54 satisfied customers
I am trying to Load The AdventureWorks 2008 OLTP example database
I am trying to Load The AdventureWorks 2008 OLTP example database in Microsoft SQL 2008 so that I can practice Microsoft SQL Exercises. I keep encountering issues and would like to have help getting t… read more
Dharmendra
Dharmendra
Master\u0027s Degree
275 satisfied customers
I need this question answered on or before December 12th. Write
I need this question answered on or before December 12th. Write a project to display the Publishers table from the contacts.mdf data-base from your StudentData\DatabaseFiles folder on the text web sit… read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
hi, im a beginner vb.net programmer. im trying to add a
hi, i'm a beginner vb.net programmer. i'm trying to add a data source from a local sql (.mdf) database. the problem is whenever i try to connect to it, it gives me the following error: "One or more fi… read more
Alex
Alex
Sr. Software Engineer
Bachelor\u0027s Degree
332 satisfied customers
Attached is the question. Need to add the tables and data
Attached is the question. Need to add the tables and data shown in the attachment to the database. http://wikisend.com/download/475406/sqlquestion.doc Microsoft SQL Server Management Studio 2008… read more
Alex
Alex
Sr. Software Engineer
Bachelor\u0027s Degree
332 satisfied customers
Having problems installing SQL Express to run with Visual Studio.
Having problems installing SQL Express to run with Visual Studio. Need someone to walk me through it.… read more
Eljon
Eljon
Software Developer Consultant
Associate Degree
562 satisfied customers
This Code using Studio 2008 or 2010 I cant get the Open to
This Code using Studio 2008 or 2010 I can't get the Open to work. Use it for Access but need to use SQL DB Dim ado As Object Dim rst As Object ado = CreateObject("ADODB.Connection") rst = CreateObject… read more
S. Philips
S. Philips
Chief Technology Officer
Bachelor's Degree
97 satisfied customers
hi I have a new pc with sqlexpress 2005 I have rescued a mdf
hi I have a new pc with sqlexpress 2005 I have rescued a mdf and log file from a crashed hard drive and need to get sql express to work with this file. I think its called attaching… read more
Eljon
Eljon
Software Developer Consultant
Associate Degree
562 satisfied customers
using sql 2008 Consider a typical sales invoice that would
using sql 2008 Consider a typical sales invoice that would include the following information. Design a single table to hold all of the information required to store an invoice including this informati… read more
C.Martin
C.Martin
IT Consultant
Bachelor's Degree
453 satisfied customers
I am having problems transferring data between two computers
I am having problems transferring data between two computers because i have version 539 on one and version 611 on the other is there any way i can change upgrade from 539 to 611.… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,175 satisfied customers
I have a command that has been working with an Access database.
I have a command that has been working with an Access database. I am converting the database to MS SQL. Could you tell me what the SQL command would convert to in MS SQL? ACCESS SQL: INSERT INTO [emai… read more
C.Martin
C.Martin
IT Consultant
Bachelor's Degree
453 satisfied customers
I am trying to run this query but I do not get a good result.
I am trying to run this query but I do not get a good result. I end up with duplicate results. I am looking to get data from three different tables but only one has a common column a has and order num… read more
Ramesh Patil
Ramesh Patil
Master's Degree
417 satisfied customers
As was suggested before, I up-sized my Access db to SQL and
As was suggested before, I up-sized my Access db to SQL and everything seems to be working fine. However, I would like to share the db (SQL express with Access ui) with other computers (2 laptops, 1 r… read more
dawber39
dawber39
IT Consultant / Teacher
Associate Degree
349 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x