You need to escape the backslash before the instance name:
orCode:dataConnection.ConnectionString = "User ID = jsitz; Password= labR2o6; Data Source = DELL\\SQLEXPRESS; Initial Catalog = [Learning_DB]";
Code:dataConnection.ConnectionString = @"User ID = jsitz; Password= labR2o6; Data Source = DELL\SQLEXPRESS; Initial Catalog = [Learning_DB]";




Reply With Quote