|
karthic Wanderer
Joined: 28 Aug 2001 Posts: 86 Location: USA
|
Posted: Fri Aug 29, 2003 2:17 am
connected to mysql, problem occur |
Here's a list of what i do..
#var conn ""
#VAR Conn %comcreate( "ADODB.Connection")
#call @conn.open("myodbc3-test")
#echo @conn.connectionstring
#var everyone %concat( "blah blah", "blah blah.. this sql statement works")
#echo @everyone
#var rs @comm.execute(@everyone)
#echo this is the end
that is what i do, this is the ooutput
Provider=MSDASQL.1;Data Source=myodbc3-test;Extended Properties="DSN=myodbc3-test;DESC=MySQL ODBC 3.51 TEST DSN;DATABASE=test;SERVER=localhost;UID=root;PASSWORD=;PORT=3306;OPTION=3;STMT=;"
(this is the sql statement. that i put above)
this is the end
that is the output..
since i got the connection string, i can only assume, it connected
any reason, that inst inserting into the database?
the database, and table, exists, currectly... when i copy and paste that sql string, directly to mysql console, it works...
thanks |
|
|
|
Charbal GURU
Joined: 15 Jun 2001 Posts: 654 Location: USA
|
Posted: Fri Aug 29, 2003 2:42 am |
#var rs @comm.execute(@everyone)
That should be @conn to be consistent with the rest of the script. |
|
|
|
karthic Wanderer
Joined: 28 Aug 2001 Posts: 86 Location: USA
|
Posted: Fri Aug 29, 2003 2:46 am |
fix that, no change.. that call command was possed to be another way to write the exec command right above it (duplicate result)
|
|
|
|
karthic Wanderer
Joined: 28 Aug 2001 Posts: 86 Location: USA
|
Posted: Fri Aug 29, 2003 3:04 am |
found problem.. it was that i have to connect in every script..
i got disconnected from the database |
|
|
|
|
|