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.

enter image description here

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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -