May 16, 2008 at 7:38 am
Greetings. I have been trying to develop an SSIS package that updates external data (Visual FoxPro tables) from SQL Server 2005. I have tried this various ways: using various Data Flow task components that flow to an OLEB Destination; using an Execute T-SQL Task; and even trying Management Studio interactively with the OpenDataSource('vfpoledb', etc.) statement. For each of these techniques, I have no problem performing a SELECT from the VFP data. Also, I have no problems performing an INSERT of new records using any of these techniques. However, both UPDATE and DELETE of existing records fail.
Is it possible the the OLE DB driver doesn't support UPDATE and DELETE operations? It appears that I'm not allowed to change or delete existing records, only add new ones. Or, are there other techniques I can be trying?
Thanks much,
Randy Witt
May 16, 2008 at 10:39 am
I know certain OLE DB sources require different syntax...
http://www.proteanit.com/b/2008/03/18/ole-db-command-for-jet-40-in-ssis/%5B/url%5D
I know this works in access and paradox. Perhaps it will work for you too.
Kindest Regards,
Frank Bazan
May 16, 2008 at 11:14 am
Does your user have UPDATE and DELETE rights in the destination?
May 16, 2008 at 11:28 am
The only other question I have, are there primary keys defined on the tables as well?
May 16, 2008 at 12:08 pm
In this situation, I am using the SQL Server Developer edition installed on my own PC, which uses my own standard login/username and Windows authentication as the account under which it's running. Looking under "Services" in the Administrative Tools option of Windows, both the SQL Server Agent & SQL Server (MSSQLSERVER) services are logged on as myself. That's the same environment in which I run other applications, such as Visual FoxPro itself, from which I can edit/delete etc. any Visual FoxPro data in the paths I'm referencing. So, I'm assuming that I have full access from within the SQL Server Developer edition on my PC, to access these files similarly.
July 9, 2008 at 11:10 pm
try the script component
April 16, 2009 at 1:33 pm
Hi,
I came across this post of yours and it would be great if you can help me. You have mentioned that you were able to INSERT using a OLE DB command. Can you let me know the syntax you used for INSERT ? I am using the parameterized INSERT syntax below, but I get a syntax error.
insert
into employee ( employee_no, employee_name, employee_salary)
select ?, ?, ?
from Employee_Salary
Thanks,
Rahul.
Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy