在SQL Server中通过Asp.net插入数据 [英] Inserting Data through Asp.net in Sql Server

查看:69
本文介绍了在SQL Server中通过Asp.net插入数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在sql server中有一个带有5个字段的表.
1)Skill_id int主键(身份)
2)Parant_Skill_Id int自参考密钥(外键)
3)Skill_Level int
4)Skill_Name varchar
5)Skill_Description varchar

我们正在存储3级数据.所以这里Skill_Level计算等级的数量.
如何通过Asp.Net插入数据.

您能尽快帮助我吗?


谢谢.

Hi,

I have one table with 5 field in sql server.
1) Skill_id int primary Key(Identity)
2) Parant_Skill_Id int Self Referencial Key(Foreign Key)
3) Skill_Level int
4)Skill_Name varchar
5)Skill_Description varchar

We are storing 3 level data. So here Skill_Level count number of level.
How can I Insert Data through Asp.Net.

Can You Help me as soon as possible.


Thanx in Advance.

推荐答案

访问 ^ ]链接


几分钟的Google搜索即可轻松解决此问题.


我没有给您代码,因为它对以后的运行没有帮助.
检查这些:

http://forums.asp.net/t/1193643.aspx/1?How+To+Connect+to+SQL+using+C+and+SELECT+INSERT+UPDATE+ [通过C#访问SQL Server的入门指南 [使用ASP.NET访问数据 [
This question can be easily solved by few minutes of google search.


I am not giving you the code, because it will not help you in future run.
check these out:

http://forums.asp.net/t/1193643.aspx/1?How+To+Connect+to+SQL+using+C+and+SELECT+INSERT+UPDATE+[^]

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

Accessing Data with ASP.NET[^]

and try to do it yourself. If you stuck somewhere then come again, will help you for sure.

hope it helps :)


使用ObjectDataSource和数据绑定控件
using ObjectDataSource and Data-Binding Control


这篇关于在SQL Server中通过Asp.net插入数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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