on 07-24-2008 2:07 PM
Hi All,
TO retrieve data from my MaxDB database, I would like to connect to MaxDB database through Excel. Does anyone have a idea how to connect and retrieve? I am using VBA programming generate few things.
Help greatly appreciated.
Thanks and Rgds,
Pradeep
Pradeep,
Can you pl. Post the approch and steps you took inorder to acheive the retrieve data into excel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With cnLTC
.ConnectionString = "DRIVER=MaxDB;" _
& "SERVER=" & sServername & ";" _
& "DATABASE=LTC_DB;" _
& "UID=ADMIN;" _
& "PWD=ADMIN;"
.CursorLocation = adUseClient
.Open
End with
Won't it work?, i guess it would!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradeep,
how about using ODBC?
Excel even provides a frontend (menu DATA -> import external Data) to access data in e.g. ODBC databases.
best regards,
Lars
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect.. that really helped me 75%!!
One more help..
If i have two tables and one field from a table is a referential key to another table. How can we import proper data during import in Excel? COz when i tried to retrieve System ID then in the table entry we have 6 which references to ABC for example. When i import it collects 6 but not ABC.
Thanks and Rgds,
Pradeep
Man .. from your "expert areas" (...Programming,ORACLE,MSSQL...) I would have assumed that you won't have problems with that...
You've two tables and you want get out connected data from it?
Use the force and the power of the mighty JOIN...
I don't know if you're writing SQL yourself or just using the 'import a table' functionality.
In the later case it might be a good idea to create a view for the join.
regards,
Lars
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.