Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Could not delete from specified tables

 
   Database Help (Home) -> Visual Basic -> ODBC RSS
Next:  Creating DSN  
Author Message
Benny Halperin

External


Since: Nov 19, 2003
Posts: 1



(Msg. 1) Posted: Wed Nov 19, 2003 2:53 pm
Post subject: Could not delete from specified tables
Archived from groups: microsoft>public>vb>database>odbc (more info?)

Hi,

The following message appears when running the code below on Windows 98. On
Win2K it works fine:

-2147467259: [Microsoft][ODBC dBase Driver] Could not delete from specified
tables

VB Code:
=======
Dim sConnectionString As String
Dim oConn As New ADODB.Connection
Dim oCommand As New ADODB.Command
Dim sSql As String

sConnectionString = "Driver={Microsoft dBASE Driver
(*.dbf)};DriverID=533;Dbq=c:\mydir"
oConn.ConnectionString = sConnectionString
oConn.Open

Set oCommand.ActiveConnection = oConn
oCommand.CommandType = adCmdText
oCommand.CommandTimeout = 0

sSql = "delete from pos_dox"
oCommand.CommandText = sSql
oCommand.Execute
===========
End of VB code

Any help would be appreciated

 >> Stay informed about: Could not delete from specified tables 
Back to top
Login to vote
GVaught

External


Since: Dec 06, 2003
Posts: 9



(Msg. 2) Posted: Sun Dec 07, 2003 12:25 am
Post subject: Re: Could not delete from specified tables [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If your dBase database reside on a server which happens to be the Win2K
machine, then Win 98 is looking for a database on its own C drive in
C:\MyDir. Your dbq probably should reflect a \\servername\myDir so that it
looks at the correct database location on the correct computer.

Hope that helps or shed some light to what you need to do.

"Benny Halperin" <bhalperin.DeleteThis@cdisys.com> wrote in message
news:%23XApJLorDHA.2340@TK2MSFTNGP12.phx.gbl...
 > Hi,
 >
 > The following message appears when running the code below on Windows 98.
On
 > Win2K it works fine:
 >
 > -2147467259: [Microsoft][ODBC dBase Driver] Could not delete from
specified
 > tables
 >
 > VB Code:
 > =======
 > Dim sConnectionString As String
 > Dim oConn As New ADODB.Connection
 > Dim oCommand As New ADODB.Command
 > Dim sSql As String
 >
 > sConnectionString = "Driver={Microsoft dBASE Driver
 > (*.dbf)};DriverID=533;Dbq=c:\mydir"
 > oConn.ConnectionString = sConnectionString
 > oConn.Open
 >
 > Set oCommand.ActiveConnection = oConn
 > oCommand.CommandType = adCmdText
 > oCommand.CommandTimeout = 0
 >
 > sSql = "delete from pos_dox"
 > oCommand.CommandText = sSql
 > oCommand.Execute
 > ===========
 > End of VB code
 >
 > Any help would be appreciated
 >
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Could not delete from specified tables 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
HOWTO: Clone SQL db ? - Hi all, I'm having a SQL Server database called X. For testing and training, I would like to make a copy of the entire DB to Y. This copy should include all data, properties, indexes, views, etc. Unfortunately, all my attempts to automate this..

Change connect string for Excel Queries using an ODBC Driver - Reference: ODBC Connection for MAS90 MAS200 In Excel we have an ODBC Connection String with a physical (hard coded) path to the data. We have changed the servers. We do not want to recreate all of the queries. How can we edit the ODBC path inside of..

ISA 2006 with My sql Connection - Hi, Please help me,acutually I am facing problem with ISA 2006.It does not connect Mysql data base. It is giving error"Can't connect to Mysql server on "IP" 10060."

Compile Error - Can anyone please help me to solve this problem I have when I tried to compile and run my program written in VB 6.0? Problem: I used variable declaration such as db as Database and ws as Workspace. I use ODBC way to connect my VB form interface with....

ISAM driver query - Hi, I am developer in Visual Basic 6.0 and SP4 application development and database use MS Access XP and SQL 7.0. This field last 6years and I am use Clipper 5.3, 5.2(Compiler) and Foxpro 2.6, Dbase IV(Database). At now I am totaly convert in VB so I am...
   Database Help (Home) -> Visual Basic -> ODBC All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]