Home > Archive > MS SQL Server ODBC > June 2005 > using osql to update access db at command line









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author using osql to update access db at command line
Addcom

2005-06-01, 7:23 am

am trying to update an access file table contents using osql and am getting
all sort of error
Can anyone help
This is the querry
osql -U aaa -D MyLocalConfig -P synprof97 -Q "update System set
LocalConfigPath = 'C:\DBase\Test\Confi
g' where Ref =
'{B2244A43-CAF7-11D0-8DD6-0000C07E4B0E}'"
I get the following errors, using the same query on SQL db is okay
[ODBC Driver Manager] Driver's SQLSetConnectAttr failed
[ODBC Driver Manager] Driver's SQLSetConnectAttr failed
[ODBC Microsoft Access Driver]Invalid connection string attribute APP
[ODBC Microsoft Access Driver]Invalid connection string attribute WSID
[ODBC Microsoft Access Driver]Invalid connection string attribute APP
[ODBC Microsoft Access Driver]Invalid connection string attribute WSID
[ODBC Microsoft Access Driver]Invalid connection string attribute APP
[ODBC Microsoft Access Driver]Invalid connection string attribute WSID
[ODBC Microsoft Access Driver]Invalid connection string attribute APP
[ODBC Microsoft Access Driver]Invalid connection string attribute WSID
[ODBC Microsoft Access Driver]Optional feature not implemented


Mike Epprecht \(SQL MVP\)

2005-06-01, 8:23 pm

Hi

OSQL is used to communicate with Microsoft SQL Server, no Microsoft Access.

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

"Addcom" <albert.addo@oxinst.co.uk> wrote in message
news:u82DQmpZFHA.3840@tk2msftngp13.phx.gbl...
> am trying to update an access file table contents using osql and am
> getting all sort of error
> Can anyone help
> This is the querry
> osql -U aaa -D MyLocalConfig -P synprof97 -Q "update System set
> LocalConfigPath = 'C:\DBase\Test\Confi
g' where Ref =
> '{B2244A43-CAF7-11D0-8DD6-0000C07E4B0E}'"
> I get the following errors, using the same query on SQL db is okay
> [ODBC Driver Manager] Driver's SQLSetConnectAttr failed
> [ODBC Driver Manager] Driver's SQLSetConnectAttr failed
> [ODBC Microsoft Access Driver]Invalid connection string attribute APP
> [ODBC Microsoft Access Driver]Invalid connection string attribute WSID
> [ODBC Microsoft Access Driver]Invalid connection string attribute APP
> [ODBC Microsoft Access Driver]Invalid connection string attribute WSID
> [ODBC Microsoft Access Driver]Invalid connection string attribute APP
> [ODBC Microsoft Access Driver]Invalid connection string attribute WSID
> [ODBC Microsoft Access Driver]Invalid connection string attribute APP
> [ODBC Microsoft Access Driver]Invalid connection string attribute WSID
> [ODBC Microsoft Access Driver]Optional feature not implemented
>
>



Addcom

2005-06-01, 8:23 pm

Thanks Mike
Do you know to update an access mdb file through a batch file or command
line?
or it is impossible?

"Mike Epprecht (SQL MVP)" <mike@epprecht.net> wrote in message
news:%23MMMOFvZFHA.1152@tk2msftngp13.phx.gbl...
> Hi
>
> OSQL is used to communicate with Microsoft SQL Server, no Microsoft
> Access.
>
> Regards
> --------------------------------
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
>
> IM: mike@epprecht.net
>
> MVP Program: http://www.microsoft.com/mvp
>
> Blog: http://www.msmvps.com/epprecht/
>
> "Addcom" <albert.addo@oxinst.co.uk> wrote in message
> news:u82DQmpZFHA.3840@tk2msftngp13.phx.gbl...
>
>



Cookie Monster

2005-06-23, 8:23 pm

i was looking for something that would do the same thing.

i found this on sourceforge which should do the trick:
http://sourceforge.net/projects/oledbcmd/

*** Sent via Developersdex http://www.droptable.com ***
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com