asp.net - using data connection from server explorer in c# -
i use data connections connect sql server 2008 database. search web know how open, close , queries (crud) found nothing.
in first time, open connection. stuck because don't know how connection "object" , use in c# code.
here begining of code :
sqlconnection conn = new sqlconnection(system.configuration.configurationmanager.connectionstrings["connection"].connectionstring);
thanks in advance !
you can't use database server manager. instead include database in solution explorer. still need database in server manager in order use in solution explorer. can add solution explorer right clicking on solution explorer , go add -> new item.
Comments
Post a Comment