----------DBF导入SQL---------- 方法一: &&查询分析器中执行语句(先选择对应的数据库) select*into要生成的SQL表名fromopenrowset('MSDASQL','Driver=MicrosoftVisualFoxProDriver;SourceType=DBF;SourceDB=c:\','select*from[aa.DBF]') /*--说明: SourceDB=c:\c:\是dbf文件的存放目录 [aa.DBF]是dbf文件名 --*/ 方法二: 1、首先在ODBC中建立一个Fo Read More
posted @ 2007-03-17 09:45 attitudedecidesall Views(540) Comments(0) Diggs(0) Edit
列举SQLServer中的数据库名称、某一数据库的中表名 *----------------------------------- 方法一: 调用系统数据库MASTER中的存储过程sp_helpdb即可,如下: lnsqlhandle=SQLSTRINGCONNECT("driver=SQLServer;server=计算机名;uid=sa;pwd=;database=master") IFlnsqlhandle<0 MESSAGEBOX('连接失败!',16,'信息提示') RETURN ENDIF lnsucc=SQLEXEC(ln Read More
posted @ 2007-03-17 09:44 attitudedecidesall Views(475) Comments(0) Diggs(0) Edit
DECLAREINTEGERFindWindowINWin32APISTRING,STRING *DeclareintegerFindWindowINUSER32.DLLSTRING,STRING&&或用此句 LOCALcTitle cTitle="窗体的Caption" IFFindWindow(0,cTitle)<>0 MESSAGEBOX("程序已运行!",48,"信息提示") RETURN *QUIT ENDIF CLEARDLLS Read More
posted @ 2007-03-17 09:43 attitudedecidesall Views(196) Comments(0) Diggs(0) Edit
在Visualfoxpro中我要判断一个数据库或数据表文件是否存在,好像系统自带的函数有这种功能的. --------------------------------------------------------------- File()函数,示例: IFFILE('foxuser.dbf') WAITWINDOW'VisualFoxProresourcefilepresent' ELSE WAITWINDOW'VisualFoxProresourcefilenotpresent' ENDIF Read More
posted @ 2007-03-17 09:42 attitudedecidesall Views(731) Comments(0) Diggs(0) Edit