![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Dear Vixens and Reynards: My VFP app has always been using Fox tables. The company I am working for is now looking at better data inegration and, for better or worse, has decided to go with SQL Server. The existing app is written using xBASE data access for the basics (though I do use SQL for reports). Obviously, somewhat of a rewrite is necessary. How difficult is it to get access to an SQL Server database? I tried to use Express some time ago, but it was a rather unpleasant experience, and I did not get far. I would appreciate pointers to books or articles on connecting VFP and SQL Server. Ideally, I want a basic tutorial that I can follow for the first try. It would cover setting up SQL Express and VFP correctly and have a simple but not simplistic example of a database. Sincerely, Gene Wirchenko |
#3
| |||
| |||
|
|
What problems did you have with SQL Express? It's the same product as SQL Server but has a throttle on usage and doesn't include some of the addons like SSRS. |
#4
| |||
| |||
|
|
On Tue, 13 Jul 2010 16:06:07 -0700, Dan Freeman <dan (AT) dfapam (DOT) com wrote: [snip] What problems did you have with SQL Express? It's the same product as SQL Server but has a throttle on usage and doesn't include some of the addons like SSRS. Installation. It was unclear what options to choose. Uninstalling did not take out everything, so the next installation failed. When I got through that, it was unclear what to do with it. I could not get any further with it and gave up. Sincerely, Gene Wirchenko |
#5
| |||
| |||
|
|
After serious thinking Gene Wirchenko wrote : On Tue, 13 Jul 2010 16:06:07 -0700, Dan Freeman <dan (AT) dfapam (DOT) com wrote: [snip] What problems did you have with SQL Express? It's the same product as SQL Server but has a throttle on usage and doesn't include some of the addons like SSRS. Installation. It was unclear what options to choose. Uninstalling did not take out everything, so the next installation failed. When I got through that, it was unclear what to do with it. I could not get any further with it and gave up. Sincerely, Gene Wirchenko Can you install Access? It's the same process to get started: * Create a system DSN (in the ODBC control panel) * Use that DSN in VFP to connect to the database * Do stuff Given that, you could: lnHandle = SQLConnect("Your DSN Name") lnResult = SQLExec(lnHandle, "create table foo (test c(10))") If lnResult > 0 lnResult = SQLExec(lnHandle, "Select * from foo") If lnResult > 0 Browse Endif Endif And then you go from there. Dan |
#6
| |||
| |||
|
|
On Tue, 13 Jul 2010 16:06:07 -0700, Dan Freeman<dan (AT) dfapam (DOT) com wrote: [snip] What problems did you have with SQL Express? It's the same product as SQL Server but has a throttle on usage and doesn't include some of the addons like SSRS. Installation. It was unclear what options to choose. Uninstalling did not take out everything, so the next installation failed. When I got through that, it was unclear what to do with it. I could not get any further with it and gave up. |
#7
| |||
| |||
|
|
After serious thinking Gene Wirchenko wrote : On Tue, 13 Jul 2010 16:06:07 -0700, Dan Freeman <dan (AT) dfapam (DOT) com wrote: [snip] What problems did you have with SQL Express? It's the same product as SQL Server but has a throttle on usage and doesn't include some of the addons like SSRS. Installation. It was unclear what options to choose. Uninstalling did not take out everything, so the next installation failed. When I got through that, it was unclear what to do with it. I could not get any further with it and gave up. Sincerely, Gene Wirchenko Can you install Access? It's the same process to get started: |
|
* Create a system DSN (in the ODBC control panel) * Use that DSN in VFP to connect to the database * Do stuff Given that, you could: ^^^^^^^^^^ |
|
lnHandle = SQLConnect("Your DSN Name") lnResult = SQLExec(lnHandle, "create table foo (test c(10))") If lnResult > 0 lnResult = SQLExec(lnHandle, "Select * from foo") If lnResult > 0 Browse Endif Endif And then you go from there. |
#8
| |||
| |||
|
|
On Tue, 13 Jul 2010 21:33:52 -0700, Dan Freeman <dan (AT) dfapam (DOT) com wrote: After serious thinking Gene Wirchenko wrote : On Tue, 13 Jul 2010 16:06:07 -0700, Dan Freeman <dan (AT) dfapam (DOT) com wrote: [snip] What problems did you have with SQL Express? It's the same product as SQL Server but has a throttle on usage and doesn't include some of the addons like SSRS. Installation. It was unclear what options to choose. Uninstalling did not take out everything, so the next installation failed. When I got through that, it was unclear what to do with it. I could not get any further with it and gave up. Sincerely, Gene Wirchenko Can you install Access? It's the same process to get started: I note that the below does not include installing SQL Express. The installation was full of unexplained options, and I got it wrong the first time. I may have gotten it wrong after that; who knows? Even folowing a supposed tutorial I found on the Web did not do it. * Create a system DSN (in the ODBC control panel) * Use that DSN in VFP to connect to the database * Do stuff Given that, you could: ^^^^^^^^^^ If only. lnHandle = SQLConnect("Your DSN Name") lnResult = SQLExec(lnHandle, "create table foo (test c(10))") If lnResult > 0 lnResult = SQLExec(lnHandle, "Select * from foo") If lnResult > 0 Browse Endif Endif And then you go from there. I could not get that far. Sincerely, Gene Wirchenko |
#9
| |||
| |||
|
|
I note that the below does not include installing SQL Express. The installation was full of unexplained options, and I got it wrong the first time. I may have gotten it wrong after that; who knows? Even folowing a supposed tutorial I found on the Web did not do it. |
#10
| |||
| |||
|
|
Gene Wirchenko wrote: I note that the below does not include installing SQL Express. The installation was full of unexplained options, and I got it wrong the first time. I may have gotten it wrong after that; who knows? Even folowing a supposed tutorial I found on the Web did not do it. WHich version did you try to install? I recently installed SQLserver 2008 express and I hadn't much doubts about the setup options. Maybe things have improved. |
![]() |
| Thread Tools | |
| Display Modes | |
| |