Check if you have specified the connection string
VB.NET
dim cn as new SqlConnection('<your connection string>')
’dim cn as new OleDdConnection('<your connection string>')
C#
SqlConnection cn = new SqlConnection('<your connection string>');
OleDbConnection cn = new OleDbConnection('<your connection string>');
Share with