HI everyone
i have created a form in c#. This form is connected with the database. i want to add data with the help of button. for example if i click on add button the data should add in my database.
any one please help me.
thanks
jismtu
0
Newbie Poster
Recommended Answers
Jump to PostYou will need to use a ConnectionString and SqlCommand.
Create a new connection string in the project properties, under Settings. Give it a name, type = string and Value something like this:
server=YourServerName;database=DatabaseName; Integrated Security=SSPI;
or
server=YourServerName;database=DatabaseName; Username=username; Password=password;
Once you have the connection string, …
All 3 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
jismtu
0
Newbie Poster
jatin24
21
Junior Poster in Training
ddanbe
commented:
Good explanation.
+13
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.