如何在C Sharp中从SQL数据库填充标签? [英] how do i populate a label from an sql database in c sharp?

查看:71
本文介绍了如何在C Sharp中从SQL数据库填充标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在从事一个项目,该项目涉及将来自sql数据库的计数和总和计算结果呈现给c Sharp中的标签框.

我需要有关如何链接在sql上得到的结果以反映在我的c#软件上的帮助.

这正是我想做的....
我想将来自sql数据库的"SELECT COUNT(*)FROM singleinput"的结果放入C#中的标签中.
在C#中是可能的吗?

请帮帮我.

在此先谢谢您.

解决方案

看看下面的这篇文章,以了解如何在C#中访问sql服务器.

通过C#访问SQL Server的入门指南 [ 在c#


中有可能吗

Hi All,
I am working on a project that involves presenting results of count and sum calculations from an sql database to a label box in c sharp.

I need help on how to link the results i get on sql to reflect on my c# software.

This is exactly what i wanna do....
I wana put the result of "SELECT COUNT (*) FROM singleinput" from an sql database into a label in C#
is that possible in C#

Please help me.

Thanks in Advance.

解决方案

Have a look at this article below to get an idea on how to acess sql server in C#

Beginners guide to accessing SQL Server through C#[^]


thanks Ramalinga Koushik for modifying the question.


hi guys....
this is exactly what i wanna do....
i wana put the result of "SELECT COUNT (*) FROM singleinput" into a label
is that possible in c#


这篇关于如何在C Sharp中从SQL数据库填充标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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