Forum 

Forum AspNuke.it - Il tuo Portale OpenSource in ASP

Configurazione su www.1asphost.com

Autore Messaggio
lavoro

Eliminato
Eliminato
0 Discussione



Profilo - lavoro
28 novembre 2003 alle 03:33:23 Profilo - lavoroInvia un messaggio privato Rispondi quotando
Qualcuno sa dirmi come posso configurare il sito su questo spazio free [url]http://www.1aspost.com ]/[url] mi da il seguente errore

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.

/handicapscuola/aspnuke/setup.asp, line 283
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
28 novembre 2003 alle 09:09:30 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Leggendo le FAQ di 1asphost, recitano testualmente:
Per evitare l'errore di query del tuo database, devi inserirlo nella cartella DATABASE che ha i permessi di scrittura.....
Quindi, al momento del setup, controlla che l'indirizzo a cui punta il setup sia più o meno questo:
/database oppure se hai inserito il portale in una cartella di nome ASPNUKE, sarà /aspnuke/database

Ciauzz DJ
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

http://aspnuke208.somee.com/Default.asp

lavoro

Eliminato
Eliminato
0 Discussione



Profilo - lavoro
01 dicembre 2003 alle 07:02:19 Profilo - lavoroInvia un messaggio privato Rispondi quotando
Modificato il 01 dicembre 2003 alle 07:07:44

vado su una sezione e leggo i seguenti messaggi
Before using the ADO Objects to access your database you need to load them into memory from the ADODB library. For ASP this is different than in VisualBASIC. To load the ADO Objects you are going to use into memory you must first declare the variable names with the Dim statement. Then use the Set statement and Server.CreateObject function to create them.

Example:

Dim Conn, RS 'Declares the Conn (Connection) and RS (Recordset) variables

Set Conn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")

By: Matthew Holder


*******************************************************

Once you have made your database objects, next you must connect to a database and open table or run a query on a table. The table or query will get your RecordSet, a set of records that matches a special set of rules. These records may be updated, or you can add new records to the table that the record set was queried from, if it was queried from one table.

To connection to a database you need to give the ADO's Connection object a DSN. In the case of DomainDLX that would be a DSN string that returns a DSN-Less connection. (confusing huh?) Well, we do this by calling the Open method.

ADODB.Connection.Open DSNString

To continue from the Starting Point page we would do the following to open a database:

DSNStatement = "DRIVER=Microsoft Access Driver (*.mdb);DBQ="
DSNStatement = DSNStatement & Server.MapPath("/USERNAME/database/mydatabase.mdb")
Conn.Open DSNStatement

Now, your database is opened, you just need to open or query a table... This is a little trickier. A little SQL knowledge will help here. Here we will use SELECT * (to select any field) FROM Table (from the table Table) WHERE (((Table.Field)='Value') AND ((Table.Field2)='Value2')) (where the Field from Table = Value and the Field2 from Table = Value2). This will explain querying. The only time when you will use WHERE is when you want to query a select set of record where certain rules apply and in ( ) you place those rules. Once your table is selected and your rules set and put in a string you need to call the Open method for the Recordset object.

ADODB.Recordset.Open SQLCommand, ActiveConnectoin, CursorType, LockType, Options

Example:

SQLStatement = "SELECT * FROM Table WHERE "
SQLStatement = SQLStatement & (((Table.Field)='Value) AND ((Table.Field2)='Value2'))
RS.Open SQLStatement, Conn, 3, 3
'These options will open the database for writing while allowing others to still read it.

djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
01 dicembre 2003 alle 10:58:24 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Ti rispondo qui, per evitare un doppione, ho installato un AspNuke di base su 1asphost a questo URL:
http://aa.1asphost.com/djveleno/aspnuke/default.asp
e ho inserito un articolo in merito all'installazione, e una news che pubblicizza l'articolo, non ho trovato alcuna problematica, mi riservo di continuare nel test inserendo in seguito alcuni mod aggiuntivi.

Ciauzz DJ
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

http://aspnuke208.somee.com/Default.asp

Log in

Login
Password
Memorizza i tuoi dati:

Cerca

 

Sostieni AspNuke

Un piccolo gesto per aiutarci a mantenere AspNuke.it online

Promo

MusicWebItalia.it
Video Testi Traduzioni Spot Colonne sonore Accordi e Spartiti gratis.

Visitatori

Visitatori Correnti : 89
Membri : 0 offline Anna

Iscritti

 Utenti: 18940
Ultimo iscritto : glauco
Lista iscritti
Messaggi privati: 3373 Commenti: 2210 Immagini: 39 Downloads: 144 Articoli: 49 Pagine: 101 Siti web: 558 Notizie: 180 Sondaggi: 11 Preferiti: 5684879 Post sui forum: 51195 Libro degli ospiti: 4 Eventi: 7

Versioni

Temi