简体   繁体   中英

Need information on the connections for sql used in asp.net C#

I'm totally new to asp.net C#. I need information on how to make SQL connections. I google it and got some of the information on connecting to database. I need the explanation such as what exactly SqlConnection con does and what exactly SqlCommand cmd means.

And the commands such as

con.Open()
DataSet ds = new DataSet(cmd,con)
SqlDataAdapter da = new SqlDataAdapter()
da.Fill(ds)
con.Close()
// etc. 

Where do i find the explanation on this commands? Also please help me with all the commands which i would need to learn to make connections with SQL. Could you please help me out with this. Thanks in advance.

Here is a complete and simple tutorial about ADO.Net.

Good work!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM