How to connect to SQL Server from C#
To connect to SQL Server from C#.NET, you need to create a connection string such as below:
private SqlConnection connection;
private string connectionStrin g =
@"Server=(local );Database=Embe dding_SQL_Test; User ID=sa;Password= 123";
connection = new SqlConnection( connectionStrin g );
Next, you use the SqlConnection object created above to...
Leave a comment: