在Vb 2012中如何在excel中导入数据并保存到sql。 [英] In Vb 2012 How To Import data in excel and save to sql.

查看:134
本文介绍了在Vb 2012中如何在excel中导入数据并保存到sql。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是初学者,想学习编程

i尝试将excel中的数据导入数据gridview并保存到sql。

我有1个按钮浏览,文本框位置文件,数据gridview,按钮保存和更新。

i使用visual studio 2012 / vb 2012和sql server。

我必须输入什么编码。

I am beginner and want to learn programming
i try import data in excel to data gridview and save to sql.
I Have 1 button browse, textbox location file, data gridview, button save and update.
i using visual studio 2012/ vb 2012 and sql server.
what coding i must type.

推荐答案

在查找满足您需求的代码之前,您需要开始学习VB.Net。一旦你学习/理解基础知识,这些任务就很容易编码。



查看以下教程 -

VB。净

VB.Net编程教程 [ ^ ]



VB.NET教程和源代码
[ ^ ]

http://howtostartprogramming.com/ vb-net / [ ^ ]



SQL Server

SQL Tutorial [ ^ ]

SQL Server教程 [ ^ ]



如果您已经了解基础知识,请查看以下文章,该文章可指导您完成任务。

Visual Basic示例应用程序 [ ^ ]



如果你知道或有一些想法关于这些文章中涉及的主题,您可以在这里找到答案 -

创建来自VB.Net的Excel应用程序 [ ^ ]



如何导入从Excel到DataGridView的数据
[ ^ ]

将数据从Excel导入到SQL Server [ ^ ]

使用C#和VB.Net 将数据从DataGridView插入(保存)到Windows窗体(WinForms)应用程序中的数据库 [ ^ ]



如果您在羞辱时遇到任何问题,请回到这里询问任务错误的代码和错误的详细信息。



希望,它有帮助:)
You need to start learning VB.Net prior to look for the code for your requirement. These kind of tasks are pretty easy to code once you learn/understand the basics.

Check following tutorials-
VB.Net
VB.Net Programming Tutorial[^]

VB.NET Tutorial and source code
[^]
http://howtostartprogramming.com/vb-net/[^]

SQL Server
SQL Tutorial[^]
SQL Server Tutorial[^]

If you already know the basics then look at the following article, which may guide you to get your task done.
Visual Basic Sample Applications[^]

If you know or have some idea on the topics covered in these articles then you can find your answer here -
Creating an Excel Application from VB.Net[^]

How to Import data from Excel to DataGridView
[^]
Import Data from Excel to SQL Server[^]
Insert (Save) Multiple rows from DataGridView to Database in Windows Forms (WinForms) Application using C# and VB.Net[^]

If you face any problem while implimenting, come back here and ask the question with the faulty code and error details.

Hope, it helps :)


这篇关于在Vb 2012中如何在excel中导入数据并保存到sql。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆