sql server 数据库导入之后怎样使网页链接到数据库呢
发布网友
发布时间:2022-04-29 17:58
我来回答
共1个回答
热心网友
时间:2023-10-27 05:40
不知道你是用哪种程序语言来连接sql server数据库呢?
你需要了解有关ODBC数据连接技术的相关知识。
有关C#的连接数据库代码如下:
1
2
3
4
SqlConnection sqlCon= new SqlConnection();
sqlCon.ConnectionString="Data Source=.\\SQLEXPRESS;Database=studb;<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa";
//<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=(这里填你的连接密码),若用windows身份认证登陆将<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa改为
//intergrated security=true
热心网友
时间:2023-10-27 05:40
不知道你是用哪种程序语言来连接sql server数据库呢?
你需要了解有关ODBC数据连接技术的相关知识。
有关C#的连接数据库代码如下:
1
2
3
4
SqlConnection sqlCon= new SqlConnection();
sqlCon.ConnectionString="Data Source=.\\SQLEXPRESS;Database=studb;<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa";
//<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=(这里填你的连接密码),若用windows身份认证登陆将<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa改为
//intergrated security=true
热心网友
时间:2023-10-27 05:40
不知道你是用哪种程序语言来连接sql server数据库呢?
你需要了解有关ODBC数据连接技术的相关知识。
有关C#的连接数据库代码如下:
1
2
3
4
SqlConnection sqlCon= new SqlConnection();
sqlCon.ConnectionString="Data Source=.\\SQLEXPRESS;Database=studb;<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa";
//<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=(这里填你的连接密码),若用windows身份认证登陆将<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa改为
//intergrated security=true
热心网友
时间:2023-10-27 05:40
不知道你是用哪种程序语言来连接sql server数据库呢?
你需要了解有关ODBC数据连接技术的相关知识。
有关C#的连接数据库代码如下:
1
2
3
4
SqlConnection sqlCon= new SqlConnection();
sqlCon.ConnectionString="Data Source=.\\SQLEXPRESS;Database=studb;<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa";
//<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=(这里填你的连接密码),若用windows身份认证登陆将<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa改为
//intergrated security=true
热心网友
时间:2023-10-27 05:40
不知道你是用哪种程序语言来连接sql server数据库呢?
你需要了解有关ODBC数据连接技术的相关知识。
有关C#的连接数据库代码如下:
1
2
3
4
SqlConnection sqlCon= new SqlConnection();
sqlCon.ConnectionString="Data Source=.\\SQLEXPRESS;Database=studb;<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa";
//<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=(这里填你的连接密码),若用windows身份认证登陆将<a href="https://www.baidu.com/s?wd=Uid&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1dBnHTkmh79uAD1PhFbPvF-0AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBtLPjRsrHnYnjT3n1fkPWDvPHc" target="_blank" class="-highlight">Uid</a>=sa;Pwd=sa改为
//intergrated security=true