![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
The subject about says it all. How do I do this? My SQL Server 2008 Express system is LOOP\SQLEXPRESS. Apparently, I should create an ODBC connection. I have no idea how to do this. If you only know the SQL Server side, please reply with that side. That is more than what I know. |
#3
| |||
| |||
|
|
Gene Wirchenko (genew (AT) ocis (DOT) net) writes: The subject about says it all. How do I do this? My SQL Server 2008 Express system is LOOP\SQLEXPRESS. Apparently, I should create an ODBC connection. I have no idea how to do this. If you only know the SQL Server side, please reply with that side. That is more than what I know. You use sp_addlinkedserver to define a linked server. If authentication is requireed, you may also need to set up login mapping with sp_addlinkedsrvlogin. Once you have this set up, you can query the FoxPro database using four-part notation, for instance "SELECT * FROM SERVER.db..tbl". |
|
If there is an OLE DB provider for Foxpro, use that one. Else you can use the MSDASQL provider - that is OLE DB over ODBC - and any the ODBC driver for Foxpro there might be. I suspect that Google can be helpful. |
#4
| |||
| |||
|
|
On Sat, 12 Mar 2011 13:00:16 +0100, Erland Sommarskog esquel (AT) sommarskog (DOT) se> wrote: Gene Wirchenko (genew (AT) ocis (DOT) net) writes: The subject about says it all. How do I do this? My SQL Server 2008 Express system is LOOP\SQLEXPRESS. Apparently, I should create an ODBC connection. I have no idea how to do this. If you only know the SQL Server side, please reply with that side. That is more than what I know. You use sp_addlinkedserver to define a linked server. If authentication is requireed, you may also need to set up login mapping with sp_addlinkedsrvlogin. Once you have this set up, you can query the FoxPro database using four-part notation, for instance "SELECT * FROM SERVER.db..tbl". I want to query *from* VFP *to* SQL Server. (Why is it that so many people do not read the title of posts? Why is it that I forgot this?) If there is an OLE DB provider for Foxpro, use that one. Else you can use the MSDASQL provider - that is OLE DB over ODBC - and any the ODBC driver for Foxpro there might be. I suspect that Google can be helpful. No. I do not know enough to know what to look for, so it just gets me swamped. Sincerely, Gene Wirchenko |
#5
| |||
| |||
|
|
I want to query *from* VFP *to* SQL Server. (Why is it that so many people do not read the title of posts? Why is it that I forgot this?) |
#6
| |||
| |||
|
|
Gene Wirchenko (genew (AT) ocis (DOT) net) writes: I want to query *from* VFP *to* SQL Server. (Why is it that so many people do not read the title of posts? Why is it that I forgot this?) Because this is an SQL Server newsgroup, and your question is about Visual FoxPro? I have no idea how you connect to remote data sources in Visual FoxPro. In fact my knowledge about FoxPro is about zero. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Books Online for SQL Server 2005 at http://www.microsoft.com/technet/pro...ads/books.mspx Books Online for SQL Server 2000 at http://www.microsoft.com/sql/prodinf...ons/books.mspx |
#7
| |||
| |||
|
|
Gene Wirchenko (genew (AT) ocis (DOT) net) writes: I want to query *from* VFP *to* SQL Server. (Why is it that so many people do not read the title of posts? Why is it that I forgot this?) Because this is an SQL Server newsgroup, and your question is about Visual FoxPro? |
|
I have no idea how you connect to remote data sources in Visual FoxPro. In fact my knowledge about FoxPro is about zero. |
#8
| |||
| |||
|
|
I figure that it is similar between different languages, but I do not know that it is not necessary to do something in SQL Server first to make the data accessible. I need both pieces. |
#9
| |||
| |||
|
|
Gene Wirchenko (genew (AT) ocis (DOT) net) writes: I figure that it is similar between different languages, but I do not know that it is not necessary to do something in SQL Server first to make the data accessible. I need both pieces. Connecting from Visual FoxPro is nothing different than connecting from SQL Server Management Studio or any other application. You need to have a valid login and if you connect from a different machine, SQL Server must accept connections over TCP/IP or named pipes, and there must not be any firewall in the way. |
#10
| |||
| |||
|
|
Dear SQLers: The subject about says it all. How do I do this? My SQL Server 2008 Express system is LOOP\SQLEXPRESS. Apparently, I should create an ODBC connection. I have no idea how to do this. |
![]() |
| Thread Tools | |
| Display Modes | |
| |