我如何将我的注册详细信息连接到sql server服务器 [英] how i can connect my registration details to sql server server

查看:74
本文介绍了我如何将我的注册详细信息连接到sql server服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我现在正在进行连接,现在我想通过注册将数据库与sqlserver连接,用户可以通过该注册输入数据,并将其插入sqlserver中的数据库.
并且有什么需要添加连接的类文件

sir now i m doing my connectivity and now i want to connect my data base with sqlserver with my registration through which a user enter the data and it will inserted to my data base in sqlserver.
and is there is any neeed to add class file for connection

推荐答案

我认为您需要学习为初学者使用ADO.NET [
I think you need to learn ADO.net[^] concepts to perform CRUD operations. You can read this article as well:

Using ADO.NET for beginners[^]

And yes you can use a separate class file for connection, but I would prefer to use Web.config file to write the connection strings as it is in XML form and can be edited after published code.

hope it helps :)


这篇关于我如何将我的注册详细信息连接到sql server服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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