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.
SqlConnection : http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection%28v=vs.110%29.aspx
SqlCommand : http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand%28v=vs.110%29.aspx
Check this site : Connect ASP.NET WebSite to SQL Database
How to establish database(SQL) Connection using c#?
Thanks.
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.