All Forums >> [Scripting] >> WSH & Client Side VBScript >> Help neede in using VBScript to display table content neatly in a HTML page Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Original message moved by dm_4ever Reason : hello,
I am working on a system whose backend is db2 inside linux server. while the client part is working in windows. Currently i use telnet to connect to server and get the table details by using sql queries in $db2.... I require a vb script to display the desired database table content in a HTML page I use the db2 odbc driver for connectivity kindly help ...
Thanks for the response, here are the details ----------------------------------------- TABLE DETAILS
Database Name: Members Table Name: Contacts
Name Contact Number ------ -------------------- abc 123 def 321 xyz 213
----------------------------------------- Currently i use ODBC driver for DB2 to connect to this database using the following parameters Under System DSN: Data Source Name: bas Database: Members Hostname: 188.9.0.17 Port Number: 3319 Protocol: TCP/IP ------------------------------------------ The application is written in C and is an old software system,so the database access is not that dynamic. The front end of the application is running on windows while the server side + database is running in Linux. I would like to know, using this ODBC connection how can i display the content of the table Contacts in a HTML table using vbscript. And i should be able to update the table with latest value when i click the refresh button..... ------------------------------------------ Is it possible to display the database table content using vbscript ?? Can you give me a start. I have used Visual studio express, to create it using datagrid but its a heavy application.
Kindly help in giving me a start. A small piece of code for database connectivity using vbscript via ODBC will do, if this request is difficult to accomplish .
while it's fairly easy to connect to an ODBC DSN, get a recordset, and display it as an HTML table -
and not impossible to integrate such code into an .HTA, the "update the table with latest value when i click the refresh button" part of your specs will be much more difficult to implement in VBScript (not worth the trouble, in my opinion). So I'd stick to VS.