Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [PHP] funzione odbc
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
tata1283
dottoressa!!!

User info:
Registered: Oct 2002
Posts: 495 (0.06 al dì)
Location: Albino (BG)
Corso: Informatica
Anno: 3
Time Online: 5 Days, 17:07:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Question [PHP] funzione odbc

Ciao!

Sono alle prese con qst funzione odbc:

resource odbc_primarykeys ( resource id_connessione, string qualifica, string proprietario, string tabella )

perchè ho bisogno di sapere qual'è la primary key di una certa tabella di un database access 97.

Il problema è che non riesco a capire string qualifica e string proprietario cosa vogliano come parametri.
String qualifica credo sia il nome del mio DSN, string proprietario dovrebbe essere il proprietario del db ma mettendo quello non funziona.

Qualcuno mi sa spiegare il perchè?
Se sbaglio qlcs?

Questo è il link alla pagina di documentazione della funzione.
http://se.php.net/manual/it/functio...primarykeys.php

Grazie mille per l'aiuto!

06-08-2007 19:50
Click Here to See the Profile for tata1283 Click here to Send tata1283 a Private Message Find more posts by tata1283 Add tata1283 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
KarmaKOMA
-- Antani plus --

User info:
Registered: May 2003
Posts: 3643 (0.44 al dì)
Location: MILANO UND MUNCHEN (CENTER)
Corso: -- Ma_Stic@zzi?? --
Anno: Degree of Digital Com.
Time Online: 10 Days, 1:25:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [PHP] funzione odbc

Originally posted by tata1283
Ciao!

Sono alle prese con qst funzione odbc:

resource odbc_primarykeys ( resource id_connessione, string qualifica, string proprietario, string tabella )

perchè ho bisogno di sapere qual'è la primary key di una certa tabella di un database access 97.

Il problema è che non riesco a capire string qualifica e string proprietario cosa vogliano come parametri.
String qualifica credo sia il nome del mio DSN, string proprietario dovrebbe essere il proprietario del db ma mettendo quello non funziona.

Qualcuno mi sa spiegare il perchè?
Se sbaglio qlcs?

Questo è il link alla pagina di documentazione della funzione.
http://se.php.net/manual/it/functio...primarykeys.php

Grazie mille per l'aiuto!


In realtà andava postato credo in tech... cmq

http://www.phpdig.net/ref/rn63re1334.html

(1,"2", "3", "4");

1)$db=stringa di connessione
2)Nome del db
3)Proprietario (chi ha creato)
4)Nome tabella

Ma la cosa che mi incuriosisce è il motivo per cui stai usando questa funzione...non hai accesso all'sql di creazione della tabella? lì c'è definito tutto...perchè usare tale funzione quindi??

__________________
"SeQuAlCoSaMiVaStOrToLoRaDdRiZzOaCaLcIiNcUlo".
**************************************
“Datemi il controllo sul denaro di una nazione e non mi preoccuperò di chi ne fa le leggi”. [Barone M.A. Rothschild]

"Life isn't like a bowl of cherries or peaches, it's more like a jar of Jalapenos: what you do today, might burn your ass tomorrow...!?! "

07-08-2007 08:56
Click Here to See the Profile for KarmaKOMA Click Here to See the Blog of KarmaKOMA Click here to Send KarmaKOMA a Private Message Visit KarmaKOMA's homepage! Find more posts by KarmaKOMA Add KarmaKOMA to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
tata1283
dottoressa!!!

User info:
Registered: Oct 2002
Posts: 495 (0.06 al dì)
Location: Albino (BG)
Corso: Informatica
Anno: 3
Time Online: 5 Days, 17:07:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho trovato che questa funzione con Access 97 non funziona per via di un bug.

Quindi grazie comunque ma devo trovare il modo di fare in un altro modo.

Mi serve perchè con un mio compagno stiamo creando uno script per importare un database da access 97 a postgres e qst database è formato da 130 tabelle e dobbiamo far sì che qst importazione sia automatica.

Comunque risolveremo in un altro modo (forse l'abbiamo già trovato).
Grazie lo stesso!

07-08-2007 17:53
Click Here to See the Profile for tata1283 Click here to Send tata1283 a Private Message Find more posts by tata1283 Add tata1283 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yeah
.grande:maestro.

User info:
Registered: Nov 2003
Posts: 1644 (0.20 al dì)
Location: Cologno Monzese
Corso: Informatica Magistrale
Anno: II
Time Online: 12 Days, 21:36:41 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Secondo me allora fai prima usando ASP / VBScript :)

__________________
?

07-08-2007 18:40
Click Here to See the Profile for yeah Click here to Send yeah a Private Message Find more posts by yeah Add yeah to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
KarmaKOMA
-- Antani plus --

User info:
Registered: May 2003
Posts: 3643 (0.44 al dì)
Location: MILANO UND MUNCHEN (CENTER)
Corso: -- Ma_Stic@zzi?? --
Anno: Degree of Digital Com.
Time Online: 10 Days, 1:25:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by tata1283
Ho trovato che questa funzione con Access 97 non funziona per via di un bug.

Quindi grazie comunque ma devo trovare il modo di fare in un altro modo.

Mi serve perchè con un mio compagno stiamo creando uno script per importare un database da access 97 a postgres e qst database è formato da 130 tabelle e dobbiamo far sì che qst importazione sia automatica.

Comunque risolveremo in un altro modo (forse l'abbiamo già trovato).
Grazie lo stesso!


utilizza c# e creati un programma che giri da console...la cosa è banale. Se poi ha interesse a farlo su due macchine diverse (ip A e ip B), ti crei una applicazioncina che sfrutti le socket.
Per scrivere codice ti consiglio MONO se sei su linux (ma dubito...visto che citi a(L)ccess) oppure

http://msdn.microsoft.com/vstudio/express/

che va molto bene, se sei su winzoz. Qui invece c'è una procedura non automatizzata per fare quello che vuoi te:

http://www.developer.com/open/article.php/631251

...buona programmazione!!!! :D

__________________
"SeQuAlCoSaMiVaStOrToLoRaDdRiZzOaCaLcIiNcUlo".
**************************************
“Datemi il controllo sul denaro di una nazione e non mi preoccuperò di chi ne fa le leggi”. [Barone M.A. Rothschild]

"Life isn't like a bowl of cherries or peaches, it's more like a jar of Jalapenos: what you do today, might burn your ass tomorrow...!?! "

09-08-2007 09:52
Click Here to See the Profile for KarmaKOMA Click Here to See the Blog of KarmaKOMA Click here to Send KarmaKOMA a Private Message Visit KarmaKOMA's homepage! Find more posts by KarmaKOMA Add KarmaKOMA to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:43.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.053 seconds (55.28% PHP - 44.72% MySQL) con 22 query.