Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select outputs
Message
 
 
To
24/10/2008 15:29:18
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01356977
Message ID:
01357080
Views:
19
>Thanks Naomi. I have modified as follows:
>Dim oConnVFP As New Data.OleDb.OleDbConnection(ConfigurationManager.ConnectionStrings("VFPLibrary").ConnectionString)
>Dim objCommandCSV As New System.Data.OleDb.OleDbCommand("do createCSV", oConnVFP)
>
>objCommandCSV.CommandType = Data.CommandType.StoredProcedure
>
>oConnVFP.Open()
>objCommandCSV.ExecuteNonQuery()
>
>oConnVFP.Close()
>But I am still getting an error. Here is the SP
>function CreateCSV()
>
>use c:\inetpub\wwwroot\aspxtest\app_data\library3 shared
>set safety off
>copy to c:\inetpub\wwwroot\aspxtest\app_data\PAGLibrary type csv
>set safety on
>use 
>endfunc
I think

>Dim objCommandCSV As New System.Data.OleDb.OleDbCommand("do createCSV", oConnVFP)

should be

>Dim objCommandCSV As New System.Data.OleDb.OleDbCommand("createCSV", oConnVFP)

I haven't read it very carefully, and I have only few minutes right now.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform