C# Tutorial - Import data from Excel to SQL Server | FoxLearn

C# Tutorial - Import data from Excel to SQL Server | FoxLearn

Fox Learn

4 года назад

85,101 Просмотров

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


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

Simeon Bryukhov
Simeon Bryukhov - 29.08.2023 12:44

thanks your explanation is very helpful

Ответить
kikin117
kikin117 - 10.07.2023 05:19

Hi, ¿How I can do this, but having more excel sheets in the excel file, and each sheet have to import to a table in SQL?, thx

Ответить
Lungelo Mbalane
Lungelo Mbalane - 09.11.2022 10:40

Can anyone please where is this variable declared customerBindingSource customerBindingSource.DataSource = list;

Ответить
MeePhup MeePhu
MeePhup MeePhu - 05.09.2022 05:29

beware Dapper Plus is not free !!!! they will expired with in one month after use this library

Ответить
slashd
slashd - 24.02.2022 01:34

Its faster to just save the Excel file as CSV and in SQL Server: rightclick database > Tasks > Import Flat File > done!

Ответить
Juls Fadriquelan
Juls Fadriquelan - 20.01.2022 04:05

how about the updating the table by importing the new and updated csv file ?
do you have any tutorial on that ? thanks for the reponse

Ответить
Juls Fadriquelan
Juls Fadriquelan - 14.01.2022 08:38

how do i add csv file ?

Ответить
Naga Prasanna Eluri
Naga Prasanna Eluri - 06.01.2022 11:34

Hi, I have tried this it is taking more time to execute dB.BulkInsert line , not stopping . Can you help me

Ответить
Mohanad SAYED ISSA
Mohanad SAYED ISSA - 08.11.2021 13:34

please , i want this project

Ответить
Narin Yalcin
Narin Yalcin - 14.10.2021 03:07

Thank uuuuu soooooo Muchhh !!!!!! u save my life !! :))))

Ответить
spd7693
spd7693 - 12.09.2021 13:09

What if we have to insert an integer in one of the columns? We can't use .toString for those.

Ответить
subhan gamers
subhan gamers - 08.09.2021 20:19

Awesome Video Thank you so much

Ответить
Manerter Manertering
Manerter Manertering - 29.08.2021 07:28

can you make a delete button that delete the imported file in the databse

Ответить
Goverdhan Jayaram
Goverdhan Jayaram - 21.08.2021 13:05

Excellent ! Thank you very much for this video.

Ответить
Sheriff H
Sheriff H - 04.08.2021 12:50

Thank youuuuuuuuuuuu very very much!!!!!!!!!!!!!!!!!!!!!!!!!!!

Ответить
KC R
KC R - 30.05.2021 00:35

thank you for this! very clear tutorial :)

Ответить
Manerter Manertering
Manerter Manertering - 26.05.2021 16:05

What about if i have a foreign key because i create a two different data gridview eith different items but have a foreign key

Ответить
naeem shah
naeem shah - 17.05.2021 03:48

how to mapping sheet column and class variable means any one choose and map both column before show on datagrid just like sql import wizard

Ответить
SKIDDOW *️⃣
SKIDDOW *️⃣ - 04.04.2021 15:54

Nice tuto ❤ But, DAPPER PLUS is not free. Isn't it?

Ответить
Dinaldo Michinge
Dinaldo Michinge - 09.03.2021 17:48

Please can you share de code, i facing trouble on ready object, the method "AsDataSet". I want see the import part. I already was i your web page i saw the code but the import part is cutted.

Ответить
Cromuel Barut
Cromuel Barut - 01.12.2020 10:40

how to do this with phpmyadmin database?

Ответить
Lalit Kumar
Lalit Kumar - 08.11.2020 06:37

Thank You !!

Ответить
Robert Patiño
Robert Patiño - 05.11.2020 15:41

can I also apply for xamarin forms?

Ответить
Agamurat 301
Agamurat 301 - 21.09.2020 02:30

it ignores russian characrters. how to handle that please help m,e

Ответить
Fred_35
Fred_35 - 15.09.2020 17:45

Alguien que haga el mismo video y lo traduzca?

Ответить
maf MAF
maf MAF - 20.07.2020 23:19

an error occured while retrieving the InformationSchemaTable information. See the inner exception for details.

i get this error when i click the import button at the end. i checked every code and any detail may help online but stucked. i need some help.

Ответить
Malaka Witharana
Malaka Witharana - 14.07.2020 09:41

Have a problem with binding source to datagridview in 13.18 seconds you clicked on datagrid view datasource selecting dropdown and selecting “other data sources”. But in my case it wouldn't appear.what should i do to add it?

Ответить
Haruna A Baldeh
Haruna A Baldeh - 23.06.2020 13:38

"An error occurred while retrieving the InformationShemaTable information. See the inner exception for details." This is the I have when I click import to database please some help me out

Ответить
Mister Simple
Mister Simple - 03.06.2020 10:23

Hello Sir, I am using visual studio 2015 and sql server 2019. I tried to connect it to visual studio 2015 and it worked. However, when I try to open new query in visual studio from sql server 2019 connection, "an incompatible sql version was detected" window pops out. Is it true that both of them are incompatible? Thanks. It also appears when i try to right click the table inside it when i try to show table data.

Ответить
Aravind kumar
Aravind kumar - 14.05.2020 15:25

How to map the column name with space. For example if the column name is First name in SQL than how can we map in c# code

Ответить
Zeynel Bozkale
Zeynel Bozkale - 04.05.2020 02:56

Hi ! Thanks for you Tutorrial. This is really awesome...

Ответить
Alejandro Nava-Gomez
Alejandro Nava-Gomez - 01.05.2020 05:58

Hello and thank you for this tutorial, it has been very helpful. I was wondering if you have an example on the same example, but with some validation to avoid duplicate entries. Thank you very much for your work.

Ответить
Ayya Nar
Ayya Nar - 16.04.2020 08:42

What i say about you...Previous Comments will say all and Your the Best FoxLearn.

Ответить
Play Free
Play Free - 01.04.2020 05:38

What shoudl I put to the tableCollection If I want all sheets to be uploaded?

Ответить
nawal chehabi
nawal chehabi - 30.03.2020 01:32

thank you, can't thank u enough <3

Ответить
Đỗ Gia Đăng
Đỗ Gia Đăng - 24.03.2020 06:53

Hi. My DataGridView can not pick up Class Customer after I create it on visual Studio

Ответить
Viky Dog Photo & Video
Viky Dog Photo & Video - 10.03.2020 19:17

HI! Thanks for your tutorial, it's very nice! Could you help me, since I'm from Access and I'm a beginner in C #? I made this project, but instead of using the mdf database I'm using dataset (in my case called "Database"). My excel file has 2 columns (IDComuni and Comune), and in the Dataset I created the "Comuni" table with 2 fields (IDComuni "int32" and Comune). Now the problem is to load this data from the Datagridviewer to the table.

// --- DapperPlusManager.Entity <Comuni> () .Table ("Comuni");
             using (IDbConnection db = new SqlConnection ("? ....?"))
                          {
              db.BulkInsert (list); - //

How can I modify this syntax so that it can load everything in the "Comuni" table? Thank you!

Ответить
Venise Joseph
Venise Joseph - 06.03.2020 17:29

how to add validation if all the imported data already exists in the database ?

Ответить
Nam Vương
Nam Vương - 15.02.2020 07:46

I use visual studio 2010 so i can not add z. Dapper plus like this video. So how can i do this without z. Dapper plus, i want to import excel file to sql server. Fox Learn help me please!

Ответить
Алтанбагана Насанжаргал
Алтанбагана Насанжаргал - 29.01.2020 07:16

DapperPlusManager.Entity<accounts>().Table("Account"); what is this line doing ?

Ответить
Adda kerrar
Adda kerrar - 27.01.2020 13:21

any solution for Import data from Excel to phpmyadmin

Ответить
Shomari Mensah
Shomari Mensah - 01.01.2020 03:18

whats the difference between Dapper ORM and Z.Dapper please

Ответить
Khaleed
Khaleed - 21.12.2019 15:13

sir why Filemode and File access are error in mine??

Ответить
G A
G A - 08.11.2019 11:57

Thank you, Thank you, Thank you, Can not thank you enough.

Ответить