Hi there timk25 and welcome to DaniWeb!. First try changing the connection statement from:
String conn_String =
"server=localhost;database=contacts_db;uid=sa;pwd=sqlsecret";
To
String conn_String = "Data Source=localhost;Initial Catalog=contacts_db;User Id=sa;Password=sqlsecret;";
Then tell me what happens....hope that helps :)
majestic0110
Nearly a Posting Virtuoso
1,328 posts since Oct 2007
Reputation Points: 256
Solved Threads: 72
Jx_Man
Nearly a Senior Poster
3,329 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444