views:

125

answers:

4

Is there such a thing as a shell-based command-line client for Microsoft's Jet database engine?

Something similar to SQLite 3.x (sqlite3.exe) for SQLite.

+1  A: 

This may suit:

Cscript.exe is a command-line version of the Windows Script Host that provides command-line options for setting script properties.

With Cscript.exe, you can run scripts by typing the name of a script file at the command prompt. Like Microsoft Internet Explorer, Windows Script Host serves as a controller of Windows Script compliant scripting engines, but Windows Script Host has very low memory requirements. Windows Script Host is ideal for both interactive and non-interactive scripting needs, such as logon scripting and administrative scripting.

Windows Script Host supports scripts written in VBScript or JScript.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/wsh_runfromcommandprompt.mspx?mfr=true

Remou
Mmm, not really what I was looking for. I am aware of cscript, although I go with python + pywin32 + ado for that.
Christopher Mahan
I was going to answer with VBScript, which is about as close as you're going to get to scripting Jet/ACE database interaction from the commandline.
David-W-Fenton
+1  A: 

Will PowerShell be suitable? Fellow MVP Richard Siddaway has started a very interesting series of blog postings on using PowerShell and Access. You can ignore the Office 2010 tag on his blog postings. Also note that I know nothing about PowerShell.

Tony Toews
Interesting. 15 characters minimum.
Christopher Mahan
Christopher What do you mean by "15 characters minimum"?
Tony Toews
Christopher wanted to post the comment "Interesting" but comments have to be at least 15 characters long.
David-W-Fenton
David, ahhh, thanks. I've hit that too before.
Tony Toews
+1  A: 

Something like osql with the right data provider? http://msdn.microsoft.com/en-us/library/aa214012(SQL.80).aspx

Maroloccio
Very interesting...
Christopher Mahan
+1  A: 

http://www.softpedia.com/progDownload/Access-Query-Analyzer-Download-107679.html

Tom Miller
Interesting, I'll check that out.
Christopher Mahan