SQL Server with C# Windows Forms App

SQL Server with C# Windows Forms App

Industrial IT and Automation

3 года назад

30,856 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@lorenzogaruglieri7046
@lorenzogaruglieri7046 - 02.01.2024 12:13

it's possible see subtitles?

Ответить
@mohammadhadial-asadi9583
@mohammadhadial-asadi9583 - 06.06.2023 14:13

Bro i wanna to convert the project that creating by C# windows form and sql server
To App

Ответить
@jabescript
@jabescript - 23.11.2022 18:46

This is exactly what I was looking for and this is one of the most comprehensive video I have ever watched. I can't thank you enough.

Ответить
@hernanruiz756
@hernanruiz756 - 20.08.2022 23:16

Thanks so much! There aren't many quality c# videos out there, specially pointing out best practices

Ответить
@makigero27
@makigero27 - 10.08.2022 08:45

Good explanations, too usefull.... very thank's for Chile

Ответить
@babakiani
@babakiani - 05.08.2022 19:07

App.config is not part of the solution file in .NET 6 so this piece needs to be added to read the app.config

string connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["DatabaseConnectionString"].ConnectionString;

Ответить
@shokunbiibraheem41
@shokunbiibraheem41 - 21.06.2022 12:41

I'm having this error Microsoft.Data.SqlClient.SqlException: 'A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)'

Ответить
@emreturhan4997
@emreturhan4997 - 09.05.2022 19:42

Dude, I have question for you. I have project right now and I made Forms and SQL Server 2019 connections. I can send source code of Forms but how can I send SQL (tables, query etc) files. I can' t solve this problem.

Ответить
@jayd1030
@jayd1030 - 26.03.2022 17:14

nice video man

Ответить
@sdsouto3437
@sdsouto3437 - 22.03.2022 02:18

I can't thank you enough. Everything one needs to start creating an app - front end and back - with a nod to best practices. It is all explained so precisely. Thank you for taking the time to create this. It is very appreciated!

Ответить
@jacktheripper571
@jacktheripper571 - 12.03.2022 10:00

Hello sir, im getting an error, ssl error:0. I tried everything on internet but nothing has worked.

Ответить
@user-ls3zd8zf2o
@user-ls3zd8zf2o - 08.12.2021 19:08

thank u so much great explanation

Ответить
@masoodmd6727
@masoodmd6727 - 16.10.2021 21:50

hello there i am using the same code as yours but i am getting runtime error in configurationManager and (ConnectionString), could you please assist why i am getting this exception, thanks and best regards,

below is my code...

using System;
using System.Data.SqlClient;
using System.Configuration;
using System.Windows.Forms;

namespace SensorSystem
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btnSave_Click(object sender, EventArgs e)
{
// string connectionString = "Data Source=(LocalDB)\\MSSQLLocalDB;Initial Catalog=SensorSystem;Integrated Security=True";

string connectionstring = configurationManger.ConnectionStrings["DatabaseConnectionString"].ConnectionString;
// below method is not good for inserting data, there is risk of SQl INJECTION
// string sqlQuery = "INSERT INTO SENSOR (SensorName, SensorType) VALUES (" + "'" + txtSensorName.Text + "'" + "," + "'" + txtSensorType.Text + "'" + ")";

// USING PARAMETERS TO INSERT DATA IS A GOOD METHOD
string sqlQuery = "INSERT INTO SENSOR (SensorName, SensorType) VALUES (@sensorname,@sensortype)";
SqlConnection con = new SqlConnection(connectionString);

Ответить
@michaelseitanakis330
@michaelseitanakis330 - 01.08.2021 00:21

Thank you for this video. I'm taking a database class that just teaches the database theory and SQL. This assumes the perfect amount of knowledge to quickly create a Microsoft Forms App.

Ответить