Home  >  Article  >  Database  >  asp mssql向数据库中保存信息

asp mssql向数据库中保存信息

WBOY
WBOYOriginal
2016-06-07 17:47:111080browse

' mssql向中保存信息

Set conn = Server.CreateObject("ADODB.Connection")
strconn="Provider=SQLOLEDB.1;Persist Sercurity Info=True;User ID=sa;PWD=sa;Initial Catalog=database;Data Source=(127.0.0.1)"
conn.open strconn

sql ="insert into datab(url)values('www.111cn.net')";
conn.execute( sql )
response.Write("保存成功")

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn