foxpro

Can I extract a file from a foxpro general field?

旧巷老猫 提交于 2019-12-06 02:30:20
I'm porting a VFP 9 application to SQL Server. The VFP app has some tables with "general" fields in them. I get a byte array when query the field, and when I save it to disk, I can look inside and see it's a word document, or a Paint BMP, etc. From reading around, I've found that the general field is a proprietary format and contains a thumbnail image of the preview of the document (amongst other things, I'm sure). Can somebody point me to some code that would extract firstly the type of file, and then the actual file data that I can save as the original file. (Getting the preview image out

SQL Join Tables

那年仲夏 提交于 2019-12-05 06:06:06
Table one contains ID|Name 1 Mary 2 John Table two contains ID|Color 1 Red 2 Blue 2 Green 2 Black I want to end up with is ID|Name|Red|Blue|Green|Black 1 Mary Y Y 2 John Y Y Y Thanks for any help. Thanks for the responses. I'm going to re-post this with some additional info about exactly what I'm trying to do that may complicate this. Can someone close this? If you use T-SQL you can use PIVOT ( http://msdn.microsoft.com/en-us/library/ms177410.aspx ) Here is query I used: declare @tbl_names table(id int, name varchar(100)) declare @tbl_colors table(id int, color varchar(100)) insert into @tbl

Reading a FoxPro 2.6 data with Java

吃可爱长大的小学妹 提交于 2019-12-05 01:20:56
问题 I'm trying to read a FoxPro 2.6 database using java to retrieve data from an older FoxPro based application to format the output better. I've tried using JavaDBF and xBaseJ with no success. Is there a common way to connect that would allow me to get this information into my Java application? 回答1: It's been a long time since I connected to a FoxPro database from a Java application but this is what I remember having to do: I installed the FoxPro ODBC driver. Setup as Windows System DSN for the

Python dbfpy and FoxPro

不羁的心 提交于 2019-12-04 11:47:23
Alright, I'm using an ancient database format here, dbf files. Don't ask why, just know a certain software decided to extend foxpro support because microsoft decided to extend foxpro support. Now, I'm getting the following error on a specific file. I have successfully loaded another file and I'm curious if there is something wrong with this database. I'm sure you probably need to look at the database to determine that, but its way to huge to post so I'll take what I can get. Traceback (most recent call last): File "billsapi.py", line 250, in <module> x.getUsedGuns() File "billsapi.py", line 72

Reading a FoxPro 2.6 data with Java

感情迁移 提交于 2019-12-03 17:15:35
I'm trying to read a FoxPro 2.6 database using java to retrieve data from an older FoxPro based application to format the output better. I've tried using JavaDBF and xBaseJ with no success. Is there a common way to connect that would allow me to get this information into my Java application? It's been a long time since I connected to a FoxPro database from a Java application but this is what I remember having to do: I installed the FoxPro ODBC driver . Setup as Windows System DSN for the FoxPro ODBC driver. Then used the JDBC-ODBC bridge to connect to the FoxPro database. You can try JDBF:

COM Interop fails when moving to new server

核能气质少年 提交于 2019-12-02 13:15:26
问题 I've run into a problem I just can't seem to solve. The background: Years ago, I developed a web site for one of my customers using ASP 2.0 and Ajax. One function of the web site is to produce customer invoices, on demand. Their in-house production system is written in Visual Foxpro 8 with SQL Server 2005 on the back end. Since I already had an invoice generation object that would produce a PDF file, I rolled up a COM EXE and created a COM wrapper for use in my ASP page. It works great for

COM Interop fails when moving to new server

前提是你 提交于 2019-12-02 07:12:13
I've run into a problem I just can't seem to solve. The background: Years ago, I developed a web site for one of my customers using ASP 2.0 and Ajax. One function of the web site is to produce customer invoices, on demand. Their in-house production system is written in Visual Foxpro 8 with SQL Server 2005 on the back end. Since I already had an invoice generation object that would produce a PDF file, I rolled up a COM EXE and created a COM wrapper for use in my ASP page. It works great for years, but now we're trying to move the page to a different location and things aren't working so great.

how to get IIS to work with dbf files?

孤街浪徒 提交于 2019-12-02 02:48:11
problem is the following: raised the IIS server on Windows XP, but when accessing the dbf files crashes exception. driver to work with files vfpoledb set. out of the visual studio everything works fine. could something else be done? I don't know if its case sensitive or not, but the connection string should be something like String connString = "Provider=VFPOLEDB.1; Data Source= C:\Your\Path\OnIISMachine\YourDatabase.dbc;" If that's ok, then do you have the proper OleDB driver from Microsoft Link for OleDB Provider -- REVISION FROM COMMENT Does the SERVER have the OleDb Provider installed...

there is any way to match the method RAND(INT) of Visual Fox Pro and C #. Net

本秂侑毒 提交于 2019-12-01 23:50:16
问题 I'm migrating a Visual Fox Pro code to C #. NET What makes the Visual Fox Pro : generates a string of 5 digits ("48963") based on a text string (captured in a textbox), if you always enter the same text string will get that string always 5 digits (no reverse), my code in C #. NET should generate the same string. There is some code that I can not play in dot.net Rand (int) in VisualFoxPro: rand(intValue) in C #. net: Random r = new Random (); return r.Next(intValue); in C# I can´t generate a

Sql Parametrized syntax error with VFP OleDb

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-01 21:45:08
问题 I'm trying to make an SQL parametrized update command for a DBF File ( Visual Fox Pro ) I don't know why, but i have a "syntax error" on the "DbCommand.ExecuteNonQuery();". The exception error message is "Syntax Error.". I don't have any additionnal informations. string maRequete = "UPDATE " + strNomTable + " set " + "evetype = @evetype ," + "evedes = @evedes ," + "evecli = @evecli ," + "eveusermo = @eveusermo ," + "eveinterv = @eveinterv where eveNum = '" + strEvtNumeroString.ToString() + "'