Click here to Skip to main content
15,889,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a home network with two PCs connected. The one pc has SQL Server installed and also an Excel spreadsheet that reads data from a database table in SQL server. The excel spreadsheet is in a shared folder so the other PC can open and edit the file, but can not refresh the data retrieved from the sql server database table. I keep getting an error message that says the server does not exist. And i can't login as a guest.

Is there anyway i can use the excel file on the network and refresh the data from the sql server from any pc on the network?
Posted
Comments
RedDk 17-Nov-13 13:47pm    
Just off the top of my head I'd say the first thing to do is install the same version of SQL Server that is used on the target machine on the machine on which you're running this Excel spreadsheet.

The tribulations of connection are going to be compounded by a number of next first steps.

1) Enable networking on your SQL Server (default is off) see : http://technet.microsoft.com/en-us/library/hh231672.aspx[^]

2) Configure the firewall on your SQL Server machine to allow SQL Server

3) On a home network connect via IP address instead of names (type IPCONFIG in your run to see what your SQL server IP is - usually like 192.168.x.x ).
 
Share this answer
 
Comments
abbaspirmoradi 17-Nov-13 14:26pm    
+5
Mehdi Gholam 18-Nov-13 1:47am    
Thanks!
Maciej Los 17-Nov-13 18:17pm    
I would like to say: the shortest tutorial i've ever seen ;)
+5!
Mehdi Gholam 18-Nov-13 1:48am    
Hopefully I didn't miss anything! :)
Maciej Los 18-Nov-13 9:03am    
;)
go to http://csharp-sqlconnection.blogspot.com/[^] for easy and shortest way for database connectivity
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900