|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : Help me please ! ( vraiment besoin d'aide !) ( asp ) [ Archives ASP & ASP.NET / AU SECOURS !!!! ] (zapgat)
Informations & options pour cette discussion
mardi 8 juillet 2003 à 09:08:32 |
Help me please ! ( vraiment besoin d'aide !) ( asp )

zapgat
|
ZapGat Bonjour a vous, voila j'ai un petit souci. Novice dans le domaine de l'asp, j'aurais besoin d'etablir une connexion sur un serveur sql pour remonter la liste des personnes présentent a l'instant T dans l'entreprise ou je travaille ! Je n'arrive pas a faire ca correctement, ci joint le debut du code, avec le select. Mon adresse mail du travail : f.gatti@ars-industries.fr . Merci a tous ceux qui voudront bien m'aider, et, allez, aux autres aussi :-) ---------------------------------------------------------------------- <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> <TITLE>Pres</TITLE> </HEAD> <BODY> <% Application("cstId") = 999 Application("TypeTerm") = 8 %> <% sLocalClient = "XXX" sServeur = "serveur" sUid = "login" sPwd = "mdp" sOSAbase = "nom_de_base" sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase Set cnx = Server.CreateObject("ADODB.Connection") cnx.Open "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) ", sChaineConnect , 1 , 1 %> <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> <TR> <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> </TR> <TR VALIGN=TOP> <% %> <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=cnx("Nom")%></FONT></TD> <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=cnx("Nom")%></FONT></TD> <% %> </TR> </TABLE> </BODY> </HTML> -------------------------------------------------------------------- Voili ! Merci d'avance !
|
|
|
mardi 8 juillet 2003 à 14:06:04 |
Re : Help me please ! ( vraiment besoin d'aide !) ( asp )

nickadele
|
Essaie ceci, j'ai pas testé mais c'est un truc dans le genre
> <HTML> > <HEAD> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> > <TITLE>Pres</TITLE> > </HEAD> > <BODY> > <% > Application("cstId") = 999 > Application("TypeTerm") = 8 > %> > <% > sLocalClient = "XXX" > sServeur = "serveur" > sUid = "login" > sPwd = "mdp" > sOSAbase = "nom_de_base" > sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase > Set cnx = Server.CreateObject("ADODB.Connection") > cnx.Open sChaineConnect Sql = "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) "
Set adoPrimaryRS = Server.CreateObject("ADODB.Recordset") adoPrimaryRS.Open , cnx , 1 , 1 > > %> > <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> > <TR> > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> > </TR> > <TR VALIGN=TOP> > <%while not adoPrimaryRS.Eof > %> > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Nom")%></FONT></TD> > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Matricule")%></FONT></TD> > <%adoPrimaryRS.MoveNext Wend > %> > </TR> > </TABLE> > </BODY> > </HTML>
Nickadele
------------------------------- Réponse au message : -------------------------------
> ZapGat > > Bonjour a vous, voila j'ai un petit souci. Novice dans le domaine de l'asp, j'aurais besoin d'etablir une connexion sur un serveur sql pour remonter la liste des personnes présentent a l'instant T dans l'entreprise ou je travaille ! > > Je n'arrive pas a faire ca correctement, ci joint le debut du code, avec le select. Mon adresse mail du travail : f.gatti@ars-industries.fr . Merci a tous ceux qui voudront bien m'aider, et, allez, aux autres aussi :-) > > > > ---------------------------------------------------------------------- > > > <HTML> > <HEAD> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> > <TITLE>Pres</TITLE> > </HEAD> > <BODY> > <% > Application("cstId") = 999 > Application("TypeTerm") = 8 > %> > <% > sLocalClient = "XXX" > sServeur = "serveur" > sUid = "login" > sPwd = "mdp" > sOSAbase = "nom_de_base" > sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase > Set cnx = Server.CreateObject("ADODB.Connection") > cnx.Open "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) ", sChaineConnect , 1 , 1 > > %> > <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> > <TR> > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> > </TR> > <TR VALIGN=TOP> > <% > %> > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=cnx("Nom")%></FONT></TD> > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=cnx("Nom")%></FONT></TD> > <% > %> > </TR> > </TABLE> > </BODY> > </HTML> > > -------------------------------------------------------------------- > > > Voili ! > > Merci d'avance !
|
|
|
mardi 8 juillet 2003 à 14:07:24 |
Re : Help me please ! ( vraiment besoin d'aide !) ( asp )
|
mercredi 9 juillet 2003 à 10:11:55 |
Re : Help me please ! ( vraiment besoin d'aide !) ( asp )

zapgat
|
ah super sylmpa a toi , je vais tester ca immediatement ZapGat
------------------------------- Réponse au message : -------------------------------
> Essaie ceci, j'ai pas testé mais c'est un truc dans le genre > > > <HTML> > > <HEAD> > > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> > > <TITLE>Pres</TITLE> > > </HEAD> > > <BODY> > > <% > > Application("cstId") = 999 > > Application("TypeTerm") = 8 > > %> > > <% > > sLocalClient = "XXX" > > sServeur = "serveur" > > sUid = "login" > > sPwd = "mdp" > > sOSAbase = "nom_de_base" > > sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase > > Set cnx = Server.CreateObject("ADODB.Connection") > > cnx.Open sChaineConnect > Sql = "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) " > > Set adoPrimaryRS = Server.CreateObject("ADODB.Recordset") > adoPrimaryRS.Open , cnx , 1 , 1 > > > > %> > > <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> > > <TR> > > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> > > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> > > </TR> > > <TR VALIGN=TOP> > > <%while not adoPrimaryRS.Eof > > %> > > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Nom")%></FONT></TD> > > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Matricule")%></FONT></TD> > > <%adoPrimaryRS.MoveNext > Wend > > %> > > </TR> > > </TABLE> > > </BODY> > > </HTML> > > Nickadele > > > ------------------------------- > Réponse au message : > ------------------------------- > > > ZapGat > > > > Bonjour a vous, voila j'ai un petit souci. Novice dans le domaine de l'asp, j'aurais besoin d'etablir une connexion sur un serveur sql pour remonter la liste des personnes présentent a l'instant T dans l'entreprise ou je travaille ! > > > > Je n'arrive pas a faire ca correctement, ci joint le debut du code, avec le select. Mon adresse mail du travail : f.gatti@ars-industries.fr . Merci a tous ceux qui voudront bien m'aider, et, allez, aux autres aussi :-) > > > > > > > > ---------------------------------------------------------------------- > > > > > > <HTML> > > <HEAD> > > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> > > <TITLE>Pres</TITLE> > > </HEAD> > > <BODY> > > <% > > Application("cstId") = 999 > > Application("TypeTerm") = 8 > > %> > > <% > > sLocalClient = "XXX" > > sServeur = "serveur" > > sUid = "login" > > sPwd = "mdp" > > sOSAbase = "nom_de_base" > > sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase > > Set cnx = Server.CreateObject("ADODB.Connection") > > cnx.Open "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) ", sChaineConnect , 1 , 1 > > > > %> > > <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> > > <TR> > > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> > > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> > > </TR> > > <TR VALIGN=TOP> > > <% > > %> > > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=cnx("Nom")%></FONT></TD> > > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=cnx("Nom")%></FONT></TD> > > <% > > %> > > </TR> > > </TABLE> > > </BODY> > > </HTML> > > > > -------------------------------------------------------------------- > > > > > > Voili ! > > > > Merci d'avance ! >
|
|
|
mercredi 9 juillet 2003 à 10:13:22 |
Re : Help me please ! ( vraiment besoin d'aide !) ( asp )

zapgat
|
pas de prob , je corrige tout de suite !
encore merci , teste ca ce matin, te tiens au courant ! ZapGat
------------------------------- Réponse au message : -------------------------------
> Oups, petite faute ;o) > > adoPrimaryRS.Open Sql, cnx , 1 , 1 > > Nickadele > >
|
|
|
mercredi 9 juillet 2003 à 11:24:36 |
Re : Help me please ! ( vraiment besoin d'aide !) ( asp )

zapgat
|
snif, message d'erreur :
Microsoft OLE DB Provider for ODBC Drivers erreur '80040e21'
Ce pilote ODBC ne prend pas en charge les propriétés demandées.
/intranet/presence/tes.asp, ligne 25
ligne0 <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> <TITLE>Pres</TITLE> </HEAD> <BODY> <% Application("cstId") = 999 Application("TypeTerm") = 8 %> <% sLocalClient = "XXX" sServeur = "ars" sUid = "bert" sPwd = "" sOSAbase = "ESA" sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase Set cnx = Server.CreateObject("ADODB.Connection") cnx.Open sChaineConnect Sql = "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like
Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) "
ligne 25 : Set adoPrimaryRS = Server.CreateObject("ADODB.Recordset") adoPrimaryRS.Open Sql, cnx , 1 , 1 %> <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> <TR> <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> </TR> <TR VALIGN=TOP> <%while not adoPrimaryRS.Eof %> <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Nom")%></FONT></TD> <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Matricule")%></FONT></TD> <%adoPrimaryRS.MoveNext Wend %> </TR> </TABLE> </BODY> </HTML>
ZapGat
------------------------------- Réponse au message : -------------------------------
> Oups, petite faute ;o) > > adoPrimaryRS.Open Sql, cnx , 1 , 1 > > Nickadele > >
|
|
|
mercredi 9 juillet 2003 à 12:00:32 |
Re : Help me please ! ( vraiment besoin d'aide !) ( asp )

nickadele
|
en fait il s'agit de cette ligne : adoPrimaryRS.Open Sql, cnx , 1 , 1
Faut que tu regardes les propriétés de la méthode Open ce sont les parametres 1, 1 qui pause problème
Nickadele
------------------------------- Réponse au message : -------------------------------
> snif, message d'erreur : > > Microsoft OLE DB Provider for ODBC Drivers erreur '80040e21' > > Ce pilote ODBC ne prend pas en charge les propriétés demandées. > > /intranet/presence/tes.asp, ligne 25 > > > ligne0 > <HTML> > <HEAD> > <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=windows-1252"> > <TITLE>Pres</TITLE> > </HEAD> > <BODY> > <% > Application("cstId") = 999 > Application("TypeTerm") = 8 > %> > <% > sLocalClient = "XXX" > sServeur = "ars" > sUid = "bert" > sPwd = "" > sOSAbase = "ESA" > sChaineConnect = "Driver={SQL Server};Server=" & sServeur & ";Uid=" & sUid & ";Pwd=" & sPwd & ";Database=" & sOSAbase > Set cnx = Server.CreateObject("ADODB.Connection") > cnx.Open sChaineConnect > Sql = "SELECT PERS.NOM_PRENOM AS Nom, HISTO.MATRICULE AS Matricule FROM HISTO INNER JOIN PERS ON HISTO.MATRICULE = PERS.MATRICULE WHERE (((HISTO.DATE) Like > > Date()) AND ((HISTO.H_DEBUT)<>'.00') AND ((HISTO.FLAG_DEB)<>'OKM') AND ((HISTO.H_FIN)='.00')) " > > ligne 25 : Set adoPrimaryRS = Server.CreateObject("ADODB.Recordset") > adoPrimaryRS.Open Sql, cnx , 1 , 1 > > %> > <TABLE BORDER=1 BGCOLOR=#ffffff CELLSPACING=0><FONT FACE="Arial" COLOR=#000000><CAPTION><B>Liste des personnes présentent dans l'entreprise</B></CAPTION> > <TR> > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Nom</FONT></TH> > <TH BGCOLOR=#c0c0c0 BORDERCOLOR=#000000 ><FONT SIZE=2 FACE="Arial" COLOR=#000000>Matricule</FONT></TH> > </TR> > <TR VALIGN=TOP> > <%while not adoPrimaryRS.Eof > %> > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Nom")%></FONT></TD> > <TD BORDERCOLOR=#c0c0c0 ><FONT SIZE=2 FACE="Arial" COLOR=#000000><BR><%=adoPrimaryRS("Matricule")%></FONT></TD> > <%adoPrimaryRS.MoveNext > Wend > %> > </TR> > </TABLE> > </BODY> > </HTML> > > > > > > > > ZapGat > > > ------------------------------- > Réponse au message : > ------------------------------- > > > Oups, petite faute ;o) > > > > adoPrimaryRS.Open Sql, cnx , 1 , 1 > > > > Nickadele > > > > >
|
|
|
Cette discussion est classé dans : help, aide, please, asp, vraiment
Répondre à ce message
Sujets en rapport avec ce message
PLEASE HELP ME sinon je serais licensié [ par chourou ]
bonjour je suis nouveau en ASP .NET et en ASP tout cours j'ai développé une application en VB .net et il y a un module web (des pages ASP .net) qui do
Vraiment besoin de votre aide en ASP [ par canasson ]
Bonsoir.Tout d'abord, toutes mes félicitations pour ce site, son Webmaster et tous ceux qui y contribue.Alors en essayant de faire simple, je dois déb
Besoin d'aide pour un Treeview en ASP.NET [ par shadowgirl ]
Salut à tous,J'aurais besoin d'aide, je commence à peine à coder en .NET et je voudrais faire un treeview en ASP.NET avec une base de données.Si quelq
Besoin d'aide [ par lator ]
Bonjour a tousJe suis nouveau, et pour tout dire je ne connais rien a l'ASP pour le moment d'ou ma venue sur le forum. J'explique, je suis en BTS info
demande d'aide [ par lsi971 ]
Bonjours et Merci, Voila je ne connais
connexion des requetes access à l'aide d'asp [ par fays_genie ]
J'utilise dreamweaver dans mon projet et je me suis bloqué dans la connexion des requetes. voila je vous demande de pouvoir me communiquer tout code
Asp.net Ajax [ par kabdal ]
Bjr, je cherche l'aide d'un d'entre vous qui a travaillé déja sur asp.net ajax, donc mon problème est: je veux placer un composant combobox dans un co
urgent besoin d'aide [ par janineinfo ]
bonjour tt le monde j ss une debutante en asp.net et j vx bien des cours d asp.net en francais et aussi la connexion avec une base de données par exp
Besoin d'aide [ par PunkDude424 ]
Salut, je doit faire un site pour povuoir évaluer les compétences dans un certain domaine des employés d'une compagnie....je travaille en asp et les q
ASP, requêtes mise à jour. de l'aide!!! [ par sbenan ]
Salut tout le monde, SVP si quelqu'un peut m'aider à résoudre ce problème. J'ai cherché partout sur internet et forum mais sans aucune solution.Le pro
Livres en rapport
|
Téléchargements
Logiciels à télécharger sur le même thème :
|