我想知道如何用我的网页设计连接数据库吗? [英] I want to know how to connect a database with my web page design?

查看:182
本文介绍了我想知道如何用我的网页设计连接数据库吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ASP.net应用程序的初学者.我想知道如何将数据库与我的网页设计联系起来?我的本地PC中存在SQL数据库.现在,我想显示主表中参与者列表的代码和名称.

I am a beginner in ASP.net application. I want to know, how to connect a database with my web page design? The SQL data base present in my local PC. Now I want to display the code and name of parties list from master table.

推荐答案

这些是您应遵循的一些链接:-
连接到ASP.NET中的数据库 [数据库连接 [ ^ ]

希望对您有帮助.
祝你好运.
these are some links you should follow:-
Connecting to Databases in ASP.NET[^]
Database Connection[^]

Hope it will help you.
Best of luck.



您可以以与本地计算机相同的方式在LAN(在不同计算机上)上使用SQL Express.只需在连接字符串中提供安装SQL Express的计算机的IP地址和SQL实例名称,如下所示:
Data Source=192.168.0.52\SQLExpress; User ID=sa; Password=YourPassword; Initial Catalog=YourDatabase;
您还需要配置SQL Server以允许远程连接
http://support.microsoft.com/kb/914277 [通过C#访问SQL Server的入门指南 [ ^ ]
使用C#创建SQL Server数据库 [ ^ ]

--Amit
Hi,
You can use SQL Express on LAN(on different machine) in the same way as on local machine. Just give IP address of the machine where SQL express is installed and SQL instance name in the connection string like below:
Data Source=192.168.0.52\SQLExpress; User ID=sa; Password=YourPassword; Initial Catalog=YourDatabase;
You also need to configure SQL Server to allow remote connection
http://support.microsoft.com/kb/914277[^]

Fore more information refer the links below:
Beginners guide to accessing SQL Server through C#[^]
Create a SQL Server Database Using C#[^]

--Amit


这篇关于我想知道如何用我的网页设计连接数据库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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