Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADO.net and VB.NET connection errors
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00616414
Message ID:
00616431
Vues:
26
>Does any one knows why this portion of code will generate the following error,
>
>strconn = "Initial Catalog=Soutiens;Data Source=CBCINC-SERVER;User ID=administrator;password=;"
>

I looks like you are having a problem opening your connection. Here is some C# code that I use to open a connection:
SqlConnection sobeConn = new SqlConnection("Data Source=localhost;Integrated Security=SSPI;" + "Initial Catalog=Sobe");
sobeConn.Open();
SqlDataAdapter sobeDA = new SqlDataAdapter("SELECT * FROM Links", sobeConn);
Note that I am using Integrated (Windows) security. You should double check that the database exists, the server name is correct, and the user/password. Is the user in the roles setup for that database?

-Dave
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform