Click here to Skip to main content
15,913,685 members
Home / Discussions / Database
   

Database

 
QuestionNull reference exception when trying to use DataAdapter Update Pin
webbsk19-Jul-06 8:56
webbsk19-Jul-06 8:56 
AnswerRe: Null reference exception when trying to use DataAdapter Update Pin
Rabbit1726-Jul-06 3:53
Rabbit1726-Jul-06 3:53 
QuestionMicrosoft Access mdb files (OleDb) Pin
RaduCiumag19-Jul-06 4:27
RaduCiumag19-Jul-06 4:27 
AnswerRe: Microsoft Access mdb files (OleDb) Pin
Rob Graham19-Jul-06 5:12
Rob Graham19-Jul-06 5:12 
GeneralRe: Microsoft Access mdb files (OleDb) Pin
RaduCiumag19-Jul-06 8:26
RaduCiumag19-Jul-06 8:26 
GeneralRe: Microsoft Access mdb files (OleDb) Pin
Rob Graham19-Jul-06 10:05
Rob Graham19-Jul-06 10:05 
GeneralRe: Microsoft Access mdb files (OleDb) Pin
RaduCiumag19-Jul-06 19:04
RaduCiumag19-Jul-06 19:04 
NewsBatch scripting for MS Access / Excel databases Pin
imhogan18-Jul-06 23:31
imhogan18-Jul-06 23:31 
Hi,
recently I needed a tool to run SQL scripts against a Microsoft Access database. I found OleDbCmd on Sourceforge.net (http://sourceforge.net/projects/oledbcmd/[^] which did the trick.

However it had a number of shortcomings, so I extended it somewhat and have released my updates through sourceforge.net as version 1.0. These usage notes should explain the extent of the updated application:

----------------------------------------------------------------------------------------------------------------
Purpose:

This program allows you to execute SQL commands against an OleDB Database
- eg a Microsoft Access database, an Excel spreadsheet, etc. This can be a
powerful adjunct to LGX Report (see www.freereporting.com) as it allows
database creation to be scripted rather than manually creating a database
with Microsoft Access. Another useful free tool to load data into your
database is Microsoft's LogParser 2.2 - search their site for the latest
download location for this tool.

Usage:

OleDBCmd [/help] [/ver] [/connect=<oledb connect="" string=""> | /file=filename] ...
[/create] [/script=<sql script="" filename=""> | /cmd="sql command" ...
[/quiet] [/CSV] /nohead] [/starComments]

Parameters:

/help Print the usage details and exit.

/ver Print the version and license details.

/connect Specifies the OleDB connection string for the database, eg
'Provider=Microsoft.Jet.OLEDB.4.0; Data Source=test.mdb'

/file Specifies a file name, the provider will be set to
Microsoft.Jet.OLEDB.4.0. Both .mdb and .xls files are
handled.

/create The program will attempt to create the database.

/script Specifies a script file for the SQL commands to be
read from. Note, commands may span multiple lines and
must be terminated with a semi-colon. Remark lines must
start with -- following any leading whitespace.

/cmd Specifies a single SQL command to execute.

Note, if neither the /script nor /cmd arguments are given
commands are read from the console - comment processing
is not performed.

/quiet Suppresses command echo and status messages. Only SQL
output is written to the console.

/CSV SQL results are output in CSV format rather than the default
TSV format.

/nohead Excludes the header row from the results.

/starComments Allows embedded and multi-line comments using /* ... */ format.

----------------------------------------------------------------------------------------------------------------

As noted above, I found this useful in conjuction with the free web reporting tool - LGX Report (http://www.freereporting.com/[^]) as I can then design databases using Enterprise Architect from http://www.sparxsystems.com.au/[^] and generate the script to create the database and run it with OleDbCmd.

Hope this is useful to others out there looking to leverage free and low-cost tools to build solutions quickly.

Regards,
Ian.


Ian Hogan - Consultant
THINKronicity Pty Ltd
http://THINKronicity.com.au/[^]
QuestionSelect statment Pin
Amarni18-Jul-06 21:14
Amarni18-Jul-06 21:14 
AnswerRe: Select statment Pin
Colin Angus Mackay18-Jul-06 22:18
Colin Angus Mackay18-Jul-06 22:18 
GeneralRe: Select statment Pin
Amarni18-Jul-06 22:56
Amarni18-Jul-06 22:56 
GeneralRe: Select statment Pin
Subramaniam s.V.18-Jul-06 23:42
Subramaniam s.V.18-Jul-06 23:42 
GeneralRe: Select statment Pin
Paddy Boyd19-Jul-06 1:00
Paddy Boyd19-Jul-06 1:00 
QuestionUnable to Configure SQL MAIL Pin
k_bhawna18-Jul-06 20:45
k_bhawna18-Jul-06 20:45 
AnswerRe: Unable to Configure SQL MAIL Pin
Eric Dahlvang19-Jul-06 3:38
Eric Dahlvang19-Jul-06 3:38 
Questionupdate a dataBase Table with a dataSet Table [modified] Pin
cosmindp18-Jul-06 7:23
cosmindp18-Jul-06 7:23 
AnswerRe: update a dataBase Table with a dataSet Table Pin
Not Active18-Jul-06 8:39
mentorNot Active18-Jul-06 8:39 
GeneralRe: update a dataBase Table with a dataSet Table Pin
cosmindp18-Jul-06 8:46
cosmindp18-Jul-06 8:46 
QuestionDataGrids counter Pin
hamidreza_buddy18-Jul-06 6:55
hamidreza_buddy18-Jul-06 6:55 
AnswerRe: DataGrids counter Pin
Paul Conrad18-Jul-06 11:20
professionalPaul Conrad18-Jul-06 11:20 
QuestionBulk insertion of data in sql server Pin
montu337718-Jul-06 5:32
montu337718-Jul-06 5:32 
AnswerRe: Bulk insertion of data in sql server Pin
sampathkumarg19-Jul-06 8:31
sampathkumarg19-Jul-06 8:31 
QuestionHow to find consecutive days without weekends or holidays? Pin
lsugirljte18-Jul-06 5:32
lsugirljte18-Jul-06 5:32 
AnswerRe: How to find consecutive days without weekends or holidays? Pin
Eric Dahlvang19-Jul-06 8:25
Eric Dahlvang19-Jul-06 8:25 
AnswerRe: How to find consecutive days without weekends or holidays? Pin
Michael Potter19-Jul-06 9:59
Michael Potter19-Jul-06 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.