Can we import data into GoDaddy database?

Sheldon Livingston
Sheldon Livingston used Ask the Experts™
on
With the new GoDaddy Plesk MSSQL database is there any way to import CSV data?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David FavorFractional CTO
Distinguished Expert 2018

Commented:
https://stackoverflow.com/questions/3635166/how-to-import-csv-file-to-mysql-table provides a good overview of how to do this.

You can use phpMyAdmin or ssh + mysql.
Sheldon LivingstonConsultant

Author

Commented:
David... I need to import data into a Microsoft database... not MySQL.
Scott FellDeveloper & EE Moderator
Fellow 2018
Most Valuable Expert 2013

Commented:
I have a Windows server with piesk and I always use manager studio or an import script server side.  There is a db import with piesk I think it is for restoring. I will log in tomorrow and double check.
Sheldon LivingstonConsultant

Author

Commented:
Thank you Scott...
Developer & EE Moderator
Fellow 2018
Most Valuable Expert 2013
Commented:
Using plesk, there does not appear to be a way to import a csv file.

Your choices are to import/export a dump file or restore a back up.  There is another feature as part of the db that allows you to use mylittleadmin. I have not looked at that in a long time and after reviewing again, remember why. It has very basic features.

Godaddy has instructions for using Manager Studio https://www.godaddy.com/help/connect-remotely-to-databases-4978. The only issue is it shows you have to elect remote access at the time you set it up and you can not connect via ssl. This does not seem like a very good option to me.  

Based on the Godaddy docs, I think you will be better off uploading the csv file to the server and import it.  Using sql server you can use bulk insert https://docs.microsoft.com/en-us/sql/t-sql/statements/bulk-insert-transact-sql?view=sql-server-2017 or https://blog.sqlauthority.com/2008/02/06/sql-server-import-csv-file-into-sql-server-using-bulk-insert-load-comma-delimited-file-into-sql-server/.  You can also read the csv file from your server side code, (asp, php) and insert line by line or in bulk too.

If you are just getting started, I would look into a different hosting plan that will allow you to use manager studio more securely. 10 years ago I used to use newtek for shared hosting https://www.newtekwebhosting.com/asp-net-web-hosting/.  I don't know if they still do it, but they used to scope external access to the database by IP if you asked. Not something you could do on your own, it was a support ticket/phone call.  Then you can keep your db set to localhost for your code and allow only a specific small set of IP's for remote access and via https.

For more control, then look into a VPS or dedicated.  I have been at https://www.liquidweb.com/ for the last 10 years.
Sheldon LivingstonConsultant

Author

Commented:
Thank you Scott...

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial