Login failed for user 'XXXX'. Reason: Not associated with a trusted SQL Server c

kccja Messages postés 1 Date d'inscription mardi 22 avril 2003 Statut Membre Dernière intervention 22 avril 2005 - 22 avril 2005 à 16:11
rekik_mehrez Messages postés 3 Date d'inscription dimanche 12 novembre 2000 Statut Membre Dernière intervention 27 février 2006 - 27 févr. 2006 à 14:09
[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'XXXX'. Reason: Not associated with a trusted SQL Server connection.

J'ai le message ci dessus lorsque j'essaye de me connecter à la base SQL.

Ma page Asp est la suivante.

<%
Set conn = Server.CreateObject("ADODB.Connection")
' chaine de connexion
connstring = "driver={SQL Server};" & "server=TOTO;uid=XXXX; pwd=XXXX; Mabase"
' ouverture de la connexion
conn.open connstring
' traitement
%>
J'ai pourtant vérifier le paramètre de sécurité de mon serveur SQL2000 la case Authentification sélectionné est bien "SQL Server and Windows".

Help SVP

kccja
A voir également:

3 réponses

moco1234 Messages postés 14 Date d'inscription jeudi 21 août 2003 Statut Membre Dernière intervention 2 mai 2005
30 avril 2005 à 21:05
http://support.adobe.com/devsup/devsup.nsf/docs/53766.htm
try this web you will get the answer of your problem

tu peux aussi suivre c est instruction qui pourrons resoudre ton problem
bonne chance :-)
The problem you describe typically occurs when a Microsoft SQL Server installation is configured to use only Windows authentication and not SQL Server authentication. To solve the problem, perform the following steps:
<OL>
<LI>Start SQL Server Enterprise Manager (Start, Programs, Microsoft SQL Server, Enterprise Manager).
<LI>Navigate to the SQL Server system in the Microsoft Management Console (MMC) treeview pane by selecting Console Root, Microsoft SQL Servers, SQL Server Group, <sql server> (or <local>); right-click the server; and select Properties from the context menu.
<LI>In the SQL Server Properties dialog box, select the Security tab.
<LI>In the Security section, make sure that Authentication is set to "SQL Server and Windows" and not "Windows only," as the figure at Figure shows. If necessary, change the selection and click OK
</LI>
<LI>moco1234</LI></OL>
0
rekik_mehrez Messages postés 3 Date d'inscription dimanche 12 novembre 2000 Statut Membre Dernière intervention 27 février 2006
27 févr. 2006 à 13:24
j'ai rencontré cette problème et j'ai pu le resolu heureusement:
1-aller ouvrir SQL Server Enterprise Manager
2-right clic on local windows (sous le console root)
3-select propriété
4-dans le section security choisir sql server and windows
5-restart now your sql server
merci hallebh tunisie
0
rekik_mehrez Messages postés 3 Date d'inscription dimanche 12 novembre 2000 Statut Membre Dernière intervention 27 février 2006
27 févr. 2006 à 14:09
Veuillez utiliser ce code sous ASP.NET si vous êtes sûr qui tu as choisi le mode sqlserver et windows


string
strRequete = "SELECT * FROM CHAUFFEUR ";


static string
strConnexion = "data source=internet;initial catalog=pfe_tds;user id=enis;password=enis";
oConnection.Open();


SqlDataAdapter oAdapter=new SqlDataAdapter(strRequete,oConnection);


DataSet odataset =
new DataSet("CHAUFFEUR");


oAdapter.Fill(odataset,"CHAUFFEUR");


DataView Source =
new DataView(odataset.Tables[0]);


DataGrid1.DataSource = Source;


DataGrid1.DataBind();

bon courage [mailto:hal_habib@yahoo.fr hal_habib@yahoo.fr] Tunisie tatouine
0
Rejoignez-nous