SunQuest
 
           MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 3rd, 2003, 12:04 PM
yossi26 yossi26 is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 1 yossi26 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Problem with ASP & MySql

HI ,
I have mysql driver . i cant setting DSN because my hosting provider dosent support.

so i try to set dsn-less and its make me a problem with recordset

my code look like this:
set con=server.CreateObject("adodb.connection")
con.Open "driver={MySQL Driver}; server=myserver;uid=myuid;pwd=*******;database=*** *****;"
rs.Open "test",con,3,3
rs.AddNew
rs.Fields ("id") =Request("text1")
rs.Fields ("name") =Request("text2")
rs.Update
rs.Close
set rs=nothing
con.Close
set con=nothing

and i get this message:
Microsoft OLE DB Provider for ODBC Drivers error '80040e21'

ODBC driver does not support the requested properties.

Please Help!!
Yossi.

Reply With Quote
  #2  
Old February 5th, 2003, 07:51 PM
ramz ramz is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Juiz de Fora - MG- Brazil
Posts: 93 ramz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Send a message via ICQ to ramz Send a message via MSN to ramz
Try this:

Dim con, SQL

Set con = Server.CreateObject("ADODB.Connection")
con.Open "driver={MySQL Driver}; server=myserver;uid=myuid;pwd=*******;database=***
*****;"
SQL = "INSERT INTO test (id, name) VALUES ('" & Request("text1") & "','" & Request("text2") & "')"
con.Execute(SQL)

con.Close
Set con = Nothing
Set SQL = Nothing
__________________
Regards,
Ramiro Varandas Jr.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Problem with ASP & MySql


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway