Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 13

Discussione: Mysql & Aruba

  1. #1
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786

    Mysql & Aruba

    Salve,

    Ho questo codice:

    codice:
       Set Rs = Server.CreateObject("ADODB.Recordset")
       Sql = "SELECT * FROM User"
       Rs.Open Sql, Conn ,3,3
    che mi ritorna questo errore:

    ADODB.Recordset error '800a0e7d'

    Connessione chiusa o non valida in questo contesto. Impossibile utilizzarla per eseguire l'operazione.
    come mai ?

    grazie !
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Te lo dice: Conn l'hai aperta?

    Roby

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786
    grazie !

    solo che ora ho un'altro problema

    codice:
    Sql = "DELETE FROM User WHERE ID = 1" 
    Conn.Execute(Sql)
    Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

    [TCX][MyODBC]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* From User Where ID = 1' at line 1
    come mai ?
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  4. #4
    MySql credo voglia specificato l'asterisco:

    codice:
    Sql = "DELETE * FROM User WHERE ID = 1" 
    Conn.Execute(Sql)
    Provare paura per un qualcosa che ti possa capitare nel futuro non ti evita quell'evento,ti fa soltanto vivere un presente sbagliato!

  5. #5
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786
    mi da questo errore

    [TCX][MyODBC]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* From User Where ID = 1' at line 1
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  6. #6
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    codice:
    Sql = "DELETE FROM [User] WHERE ID = 1" 
    Conn.Execute(Sql)
    Roby

  7. #7
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786
    ritorna questo errore:


    Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

    [TCX][MyODBC]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[User] WHERE ID = 1' at line 1

    come mai ?
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  8. #8
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Scrivi user con la lettera minuscola.

    Roby

  9. #9
    Utente di HTML.it
    Registrato dal
    Dec 2002
    Messaggi
    1,786
    fatto, inoltre ho anche rinomitato la tabella, ma l'errore persiste

    Microsoft OLE DB Provider for ODBC Drivers error '80040e09'

    [TCX][MyODBC]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[user] WHERE ID = 1' at line 1
    ti posto tutta la pagina asp:


    codice:
       Response.Buffer = True
    
       Dim Conn
       Set Conn=Server.CreateObject("ADODB.Connection")
            Conn.ConnectionString = "Driver={mySQL};Server=**.***.***.**;Port=3306;Database=Sql*****_1;Uid=Sql*****;Pwd=********;"
            Conn.Open
    
           
       Sql = "DELETE FROM [user] WHERE ID = 1" 
       Conn.Execute(Sql)
    [Scambio Links a Tema] Contattatemi in Privato x + Info.

  10. #10
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Prova:

    codice:
    ConnectionString = "Driver={mySQL};Server=**.***.***. **;Port=3306;Database=Sql*****_1;Uid=Sql
    *****;Pwd=********;"
    Conn.Open ConnectionString
    Roby

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.