Hi,
I started developping an application that uses SQL Server
(VB6)
I can connect, retrieve data using SQL queries, ...
I use ADO (msado15.dll) ActiveX to connect (DSN-less) so I don't have to create a ODBC connection...
How can I add data into the tables of my database ?
I've tried it with
objconn.execute "insert into mytable (field1, field2) values (1,'text')"
but it doesn't work ?
Is this way of adding data correct ? Or is there an easier way ? ---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------------------------------------------
Peter Van Eeckhoutte
peter.ve@pandora.be
*:->* Did this post help? Click below to let me know !
I started developping an application that uses SQL Server
(VB6)
I can connect, retrieve data using SQL queries, ...
I use ADO (msado15.dll) ActiveX to connect (DSN-less) so I don't have to create a ODBC connection...
How can I add data into the tables of my database ?
I've tried it with
objconn.execute "insert into mytable (field1, field2) values (1,'text')"
but it doesn't work ?
Is this way of adding data correct ? Or is there an easier way ? ---------------------------------------------------------------------
I have not failed, I've just found 10,000 ways that don't work
---------------------------------------------------------------------
Peter Van Eeckhoutte
peter.ve@pandora.be
*:->* Did this post help? Click below to let me know !