Greetings everyone,
I'm stuck on a project that has me turning in circles and I need some help.
I have created a small windows form project in VS2010 using C#. The form has a datagrid which is tied to a VFP table. The table has no primary key and I can't add one (the table was given to me and I...
Craig,
thank you for your reply. I actually don't need the SQL data. All the VFP data gets used and then put into a SQL table. So all that would need to happen is to get the VFP data, clear the SQL table and put the VFP data into the SQL table.
Since I'm still fairly new to all this, do you...
Greetings,
I've been working on a project for a while where I call an exe from a code-behind in a web page. This works all fine and dandy, but I would like to try and put the code directly into the code-behind page, not having to rely on the exe and VFP.
Following is the code from the VFP exe...
Olaf,
I actually made a mistake yesterday by forgetting to recompile the VFP exe. So as I was testing your code manually it worked, but when I ran the web project it was still running the old code when calling the exe.
Close All
Set Exclusive Off
Use F:\TIW\KOKAC\immaster In 0
Set TABLEVALIDATE...
Olaf,
sorry it has taken me a while to get back to you. I had some work that needed to get done urgently and didn't get a chance to look at your post until today.
So I set up my script the way you suggested and added the ID field to the SQL table. But once I ran the script and then the report I...
Okay guys,
I think I'm going to have to let the VFP approach settle in a little over the weekend, my head is starting to spin!
Now the SQL code works nicely and is quite fast, but I discovered an issue that I wanted to bring to your attention to see if you have an idea what could be done...
Mike,
how would I go about just deleting the records and appending? I appreciate your help and I'm trying to understand both ways, yours and Olaf's. I think ultimately I'm hoping to go with the SQL solution, but I also would like to get the VFP solution just so I have options.
And I can't say...
Mike and Olaf,
great explanations and very useful information!
I never posted the full code, otherwise you would have seen that I'm opening all needed tables non-exclusive:
Close All
Set Exclusive Off
Use F:\TIW\KOKAC\immaster In 0
Set TABLEVALIDATE To 0
Use F:\TIW\KOKAC\imstock In 0
Set...
So,
I've been looking at the tutorial for configuring the OLE DB datasource, unfortunately without success.
I set up two datasources, one OLE DB and one ODBC, and configured the report to use them (one at a time of course).
Both times I ran the report and then tried to run the VFP exe, both...
Mike,
We would like to move away from the xBase connector since we are trying to use DataLink Viewer 2008 and Crystal Reports Viewer 2008 which gives you a Database Connection Error when using xBase. The way you have described it in your post is actually the way we've had it for a few years...
Good morning gentlemen,
Mike, currently everything (accounting and manufacturing software) is using FoxPro dbf free table directories. We are creating custom tables for a few of our Crystal reports that would otherwise either not be able to run or would take forever to run. I'm now in the...
Olaf,
thanks for the clarification on the BULK INSERT. I indeed go through multiple cursors because of different joins. If you want I can post the full code for you and maybe (most certainly [smile]) it could be improved.
I tried your tableupdate() function but I'm getting a "Too many...
Mike,
you mentioned
I have read about this but I can't find where or how to change the properties of the OLE DB driver. Where would that be?
Olaf,
working on your suggestions right now.
Chris
Olaf,
the operating system on our terminal server where the reports are run is inded 64bit. And the fact that most likely we will change our accounting and manufacturing software to a SQL backend version influenced my decision to try getting the FoxPro data into SQL tables.
I will try your...
Gentlemen,
thanks again for your advice. The reason I'm trying to put the data into SQL is that if I run the Crystal Report on the dbf file, the report keeps its "hooks" in the database file. So if somebody else tries to run the report and the subsequent exe, the file is locked and can't be...
Mike,
I'm about to get off work right now so I will look at your suggestions tomorrow. Thank you again so far for all your help and guidance!
Talk to you soon,
Chris
Mike,
got it to work now! Thank you so much for your guidance! Even though it works nicely, it's a bit slow filling the SQL database.
Select C5.*, bmsl.findno, bmsl.scrpad;
FROM C5 Left Join bmsl On C5.fg + C5.partno + C5.sorev = bmsl.itemparent + bmsl.itemchild + bmsl.rev;
INTO Cursor C6...
Mike,
thanks so much for your help. I guess I understand the concept now a little better. I basically scan the last VFP cursor that was created, put each cursor field in a variable and then insert the variable into the SQl table.
Your sample code helped but also confused me a bit because you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.