SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error trying to connect to a remote mssql database


Error trying to connect to a remote mssql database

Author
Message
Tatay_2016
Tatay_2016
SSChasing Mays
SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)

Group: General Forum Members
Points: 654 Visits: 59
Hi,

First time here. I'm the admin of a small business with a mssql database that is remotely hosted by our website provider. I need to import/export data to/from a table on the database (which is hosted remotely) into a format where I can manipulate the data.

I have all the database table and server info and the usr/pwd, and I tried to use the ms excel wizard (the latest version of office 365 on a windows 7 laptop) and it just keeps failing, can't connect.

So my question: Is there an easier way to connect to a remote sql database from a laptop for data transfer? The workbook wizard seems inadequate, or I'm missing something. I've just started learning this and don't know all that much about other ways to connect to this database to accomplish what I want that don't require a lot of training or programming knowledge.

Thank you.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (454K reputation)SSC Guru (454K reputation)SSC Guru (454K reputation)SSC Guru (454K reputation)SSC Guru (454K reputation)SSC Guru (454K reputation)SSC Guru (454K reputation)SSC Guru (454K reputation)

Group: Administrators
Points: 454314 Visits: 20597
I would download SSMS and start there. That's a fairly easy way to go. Or just get SQL tools and use SQLCMD or bcp to get data. SSMS gets you the ability to browse and see more, which might be easy.

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

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
Eirikur Eiriksson
Eirikur Eiriksson
SSC Guru
SSC Guru (126K reputation)SSC Guru (126K reputation)SSC Guru (126K reputation)SSC Guru (126K reputation)SSC Guru (126K reputation)SSC Guru (126K reputation)SSC Guru (126K reputation)SSC Guru (126K reputation)

Group: General Forum Members
Points: 126415 Visits: 21789
Tatay_2016 (11/25/2016)
Hi,

First time here. I'm the admin of a small business with a mssql database that is remotely hosted by our website provider. I need to import/export data to/from a table on the database (which is hosted remotely) into a format where I can manipulate the data.

I have all the database table and server info and the usr/pwd, and I tried to use the ms excel wizard (the latest version of office 365 on a windows 7 laptop) and it just keeps failing, can't connect.

So my question: Is there an easier way to connect to a remote sql database from a laptop for data transfer? The workbook wizard seems inadequate, or I'm missing something. I've just started learning this and don't know all that much about other ways to connect to this database to accomplish what I want that don't require a lot of training or programming knowledge.

Thank you.


Quick thought, you should contact the provider for connection information, vpn options etc. as normally, a database server would reside behind a firewall.
Cool
Tatay_2016
Tatay_2016
SSChasing Mays
SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)

Group: General Forum Members
Points: 654 Visits: 59
Hello Steve,

Thanks for the reply. I have downloaded SSMS, and I'm working on figuring it out.

SSC,

Thank you also for replying. I do have that connection information, but the excel wizard does not have a field to put it in. It starts out asking if you want to import external data, but then the only two fields are server name and password. If I could put it in there, I would, but any way I tried, it failed.
royce.bacon
royce.bacon
Right there with Babe
Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)

Group: General Forum Members
Points: 774 Visits: 1100
First, most web site databases are behind firewalls and you may have to have the hosting company allow SQL Server traffic from your IP address to pass through the firewall. Talk to your hosting support company to discuss this with them.

Second I would suggest first try to connect to the database with SQL Server Management Server. It gives you the most control on the connection.

Once you have connected you could try using the Import/Export wizard in SSMS to try to import the data. If that works you can create a job from it to either run automatically or manually.
Tatay_2016
Tatay_2016
SSChasing Mays
SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)

Group: General Forum Members
Points: 654 Visits: 59
Thank you for the reply. I do plan on using SSMS. I never have before. Is it fairly straight forward, or is there a learning curve?
royce.bacon
royce.bacon
Right there with Babe
Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)Right there with Babe (774 reputation)

Group: General Forum Members
Points: 774 Visits: 1100
It isn't that hard to use, especially if you've used other Microsoft development products.

There is a tutorial at [url=https://msdn.microsoft.com/en-us/library/bb934498.aspx][/url] That one is for 2016 but I think there are ones for older products too.
Tatay_2016
Tatay_2016
SSChasing Mays
SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)SSChasing Mays (654 reputation)

Group: General Forum Members
Points: 654 Visits: 59
Hello Royce,

Thank you for that link. Actually it is the correct one, at the top of the tutorial article it says it applies to SQL server starting with 2008, so that will do.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search