Programming

Programming Questions? Ask a Programmer for Answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

Programming
This answer was rated:

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

change hhosting JA: What programs and...
I need to convert my database from .mdf to .csv in order to change hhosting
JA: What programs and versions are you using?
Customer: but I don't know the first thing about SQL though I just downloaded SQL Express and SQL Server Management
JA: What is your ideal outcome? How can we solve this for you?
Customer: to have my data converted
JA: Anything else you want the programmer to know before I connect you?
Customer: 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: 233
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 5 months ago
I don't know how to open the .mdf file in SQL
Customer reply replied 5 months ago
I get an error message when trying to connect object explorer

Ok just a moment

Ask Your Own Programming Question
Customer reply replied 5 months 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 5 months 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 5 months 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 5 months ago
set to Automatic
Customer reply replied 5 months ago
hmmm it was Stopped
I started it
Customer reply replied 5 months 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 5 months 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 5 months 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 5 months 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 5 months ago
Sorry- stepped away. Let me read through this
Customer reply replied 5 months 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 5 months 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 5 months 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 5 months 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 5 months 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 5 months 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 5 months 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 5 months 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: 233
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
Ask George Sibiya Your Own Question
George Sibiya
George Sibiya
George Sibiya, Computer Hardware Engineer
Category: Programming
Satisfied Customers: 233
233 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,125 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

797 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I have 2 aspx.net questions that has to be done in visual
Hello I have 2 aspx.net questions that has to be done in visual studio. I need them by 15th december, friday.… read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
I have a homework assignment that is similar to one already
i have a homework assignment that is similar to one already posted but the assignment needs to have a gui and be in visual studio 2012 … read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
I need help with my dealer program as in how to create one.
i need help with my dealer program as in how to create one … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
I'm stuck on coding a calcButton in VB. Visual Studio
I'd like to have someone walk me through coding this button, I've got the rest of the form coded but I'm stumped on this one. … read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
Just have a question with list box, visual studio 2015, I
I just confused with list box ,the question is select a workshop from one list box and a location from another list box … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
I dont know how to write a program that reads in integers
I dont know how to write a program that reads in integers and counts the number of those integers that are less than the average in C++ … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
Working in Visual Studio 2017 - can't find definitive
Working in Visual Studio 2017 - can't find definitive instructions on how to print the form on my screen. The common instruction is to use PrintForm but I don't have that I have PrintDocument. Tried l… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
On Microsoft VIsual Studio C++ need it in a C++ code that
On Microsoft VIsual Studio C++need it in a C++ code that works also use the way that starts with hello world please make sure code worksNotice in the updated UML diagram that the Employee class is des… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
On microsoft visual studio C++ The only change to the
On microsoft visual studio C++ The only change to the Employee class is that there is a new attribute: +benefit : Benefit Notice that there is a "+" for this attribute, meaning that it is public. Make… read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
I have my Visual Studio Program done, but I need to get it
I have my Visual Studio Program done, but I need to get it all under the same path location. All of the files in My Project need to be added to the original folder. So once that is done if you could s… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
OKRP55211 POSTANSWER I am using Visual Studio 2015 C++ on
OKRP55211 POSTANSWER Hi I am using Visual Studio 2015 C++ on Windows 10. I have a problem with missing symbols when I migrate a GITHUB multi-project solution into a single project. I built the origina… read more
Steve
Steve
Consultant
Bachelor
69 satisfied customers
I am having trouble getting the visual Studio,visual basic
I am having trouble getting the visual Studio,visual basic forms program that uses a local Access database to distribute to stand alone desktop computers with Windows operating system to run correctly… read more
George Sibiya
George Sibiya
Computer Hardware Engineer
233 satisfied customers
Just having trouble with an assignment, Visual Studio 15,
this is part of the question: For this coding exercise, write the Visual Basic code for a pretest loop that uses an Integer variable named intEven to display the even integers from 2 through 20 in the lblEven control. … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
OKPR114211 Does visual studio c++ has its own GUI (graphic
OKPR114211 Does visual studio c++ has its own GUI (graphic user interface) creator? or i have to use a different program?… read more
Steve
Steve
Consultant
Bachelor
69 satisfied customers
Windows 10 with Visual Studio 10. I have a project that
Windows 10 with Visual Studio 10. I have a project that compiles and builds on another machine. When I move the project to the Windows 10 machine, I get a message the "The project type is not supporte… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
7,125 satisfied customers
I have a question related to C# I am using visual studio
Actual i am looking for solution to a programming question, which is available in c++ but not in c# … read more
Satchi
Satchi
Bachelor\u0027s Degree
2,407 satisfied customers
I need help, microsoft visual studio 2012, i have a problem
i need help JA: What programs and versions are you using? Customer: microsoft visual studio 2012 JA: What is your ideal outcome? How can we solve this for you? Customer: i have a problem and you solve… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
I have a SSIS 2014 Package created in Visual Studio 2013. I
I have a SSIS 2014 Package created in Visual Studio 2013. I have successfully performed a simple Data Flow from one table to another. I am now wondering how to apply additional logic: 1. Check for Exi… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,112 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