PC Review


Reply
Thread Tools Rate Thread

database files (DBFs)

 
 
Marco Wolff
Guest
Posts: n/a
 
      13th Jan 2005
hello,

i have to work with dbf - files and want to read a dbf - file in a dataset,
insert new rows und then update the dataset.

i can fill a DataAdapter over a odbc-driver. but i get always an exception
when i try to get insert-, update- and delete-commands over a
commandBuilder.

have somebody experience with dbf-files and can help me?

thanks


 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      13th Jan 2005
Never tried with DBF but letting us know what is the exception you have
would be perhaps a starting point ?

Patrice

--

"Marco Wolff" <(E-Mail Removed)> a écrit dans le message de
news:eA4eH%23X%(E-Mail Removed)...
> hello,
>
> i have to work with dbf - files and want to read a dbf - file in a

dataset,
> insert new rows und then update the dataset.
>
> i can fill a DataAdapter over a odbc-driver. but i get always an exception
> when i try to get insert-, update- and delete-commands over a
> commandBuilder.
>
> have somebody experience with dbf-files and can help me?
>
> thanks
>
>



 
Reply With Quote
 
=?Utf-8?B?QnJhZCBSb2JlcnRz?=
Guest
Posts: n/a
 
      13th Jan 2005
DBF files use temp files to enable multiuser access to the file like Access
does.

If this is ASP.NET then it may be permissions required in the ASPNET user's
temp directory.

"Patrice" wrote:

> Never tried with DBF but letting us know what is the exception you have
> would be perhaps a starting point ?
>
> Patrice
>
> --
>
> "Marco Wolff" <(E-Mail Removed)> a écrit dans le message de
> news:eA4eH%23X%(E-Mail Removed)...
> > hello,
> >
> > i have to work with dbf - files and want to read a dbf - file in a

> dataset,
> > insert new rows und then update the dataset.
> >
> > i can fill a DataAdapter over a odbc-driver. but i get always an exception
> > when i try to get insert-, update- and delete-commands over a
> > commandBuilder.
> >
> > have somebody experience with dbf-files and can help me?
> >
> > thanks
> >
> >

>
>
>

 
Reply With Quote
 
Marco Wolff
Guest
Posts: n/a
 
      13th Jan 2005

after i filled my ObdcAdapter with the dbf-file i ask the commandBuilder
for the insert-, update- und deleteCommands and he says that he can`t
create the commands because the select command gives not enough
information about the columns inside the dbf-file.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      14th Jan 2005
I suggest you take a look at my article on the Command(don't use)Builder.
See www.betav.com\articles.htm


--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

"Marco Wolff" <(E-Mail Removed)> wrote in message
news:%23dHMjKa%(E-Mail Removed)...
>
> after i filled my ObdcAdapter with the dbf-file i ask the commandBuilder
> for the insert-, update- und deleteCommands and he says that he can`t
> create the commands because the select command gives not enough
> information about the columns inside the dbf-file.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      14th Jan 2005
It likely misses a primary key...

Patrice

--

"Marco Wolff" <(E-Mail Removed)> a écrit dans le message de
news:%23dHMjKa%(E-Mail Removed)...
>
> after i filled my ObdcAdapter with the dbf-file i ask the commandBuilder
> for the insert-, update- und deleteCommands and he says that he can`t
> create the commands because the select command gives not enough
> information about the columns inside the dbf-file.
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Marco Wolff
Guest
Posts: n/a
 
      14th Jan 2005
yes, that`s the reason.

now i created the commands self and the programm is running.

the problem is, that a dbf-file does not support a primary key.

"Patrice" <(E-Mail Removed)> schrieb im Newsbeitrag
news:ek8Zzsh%(E-Mail Removed)...
> It likely misses a primary key...
>
> Patrice
>
> --
>
> "Marco Wolff" <(E-Mail Removed)> a écrit dans le message de
> news:%23dHMjKa%(E-Mail Removed)...
>>
>> after i filled my ObdcAdapter with the dbf-file i ask the commandBuilder
>> for the insert-, update- und deleteCommands and he says that he can`t
>> create the commands because the select command gives not enough
>> information about the columns inside the dbf-file.
>>
>>
>>
>> *** Sent via Developersdex http://www.developersdex.com ***
>> Don't just participate in USENET...get rewarded for it!

>
>



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      14th Jan 2005
That's really old but if I remember the ODBC driver is able to use a text
file that describes the DBF fields...

Anyway if it's running now with your own command....

Patrice

--

"Marco Wolff" <(E-Mail Removed)> a écrit dans le message de
news:eq7in9h%(E-Mail Removed)...
> yes, that`s the reason.
>
> now i created the commands self and the programm is running.
>
> the problem is, that a dbf-file does not support a primary key.
>
> "Patrice" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:ek8Zzsh%(E-Mail Removed)...
> > It likely misses a primary key...
> >
> > Patrice
> >
> > --
> >
> > "Marco Wolff" <(E-Mail Removed)> a écrit dans le message de
> > news:%23dHMjKa%(E-Mail Removed)...
> >>
> >> after i filled my ObdcAdapter with the dbf-file i ask the

commandBuilder
> >> for the insert-, update- und deleteCommands and he says that he can`t
> >> create the commands because the select command gives not enough
> >> information about the columns inside the dbf-file.
> >>
> >>
> >>
> >> *** Sent via Developersdex http://www.developersdex.com ***
> >> Don't just participate in USENET...get rewarded for it!

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: vba TO IMPORT FOXPRO dbfs or just replace table in 2003 John W. Vinson Microsoft Access VBA Modules 0 11th Aug 2008 07:01 AM
I want to attach word files or PDF files to an excel database =?Utf-8?B?RGlhbm5lIE11bnJv?= Microsoft Excel Misc 1 23rd Mar 2006 12:11 AM
spyware ate my bde files that were integral operating database files ron patton Spyware Discussion 1 18th Jan 2005 02:45 AM
Error importing Excel files or text files into Access database Connie Cross Microsoft Access External Data 0 3rd Sep 2003 06:10 AM
Re: importing/opening foxpro dbfs to ms access Cindy Winegarden Microsoft Access 1 23rd Jul 2003 06:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:39 AM.