Yet Another Forum.NET
»
ASP.NET, C# and SQL
»
.NET and SQL Server DB Discussion
»
Sql connection string problems
|
|
 Rank: YAF Forumling
Joined: 7/4/2008 Posts: 6
|
Can someone please help me as I have created a program in Microsoft visual Studio that I want to connect to a SQL server Express database. the problem that I am having is that when I try to instantiate the connection string I get the following error message 'Form1.SqlMovcon1' denotes a 'field' where a 'class' was expected'.
I cant understand where am going wrong because I drag a connection that represents the database connection string to the the windows form but when I try to create an object theat represents the connection this is when I get the above error.
Any help would be very much appreicated
|
|
|
 Rank: YAF Forumling
Joined: 8/15/2008 Posts: 1
|
SQL Native Client ODBC Driver Standard security Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword; Are you using SQL Server 2005 Express? Don't miss the server name syntax Servername\SQLEXPRESS where you substitute Servername with the name of the computer where the SQL Server 2005 Express installation resides. Trusted Connection Driver={SQL Native Client};Server=myServerAddress;Database=myDataBase;Trusted_Connection=yes; Equivalent key-value pair: "Integrated Security=SSPI" equals "Trusted_Connection=yes"
|
|
|
| Users browsing this topic |
|
Guest (2)
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
YAFPro Theme Created by Jaben Cargman (Tiny Gecko)Powered by YAF 1.9.3 RC1 |
YAF © 2003-2008, Yet Another Forum.NETThis page was generated in 0.045 seconds.