asp连接数据库问题
程序正常的,一直在用,今天突然出现这么一个情况,asp.net的程序连接数据库正常,但asp的程序连接数据时确一直提示连接超时。这是什么原因,有没有哪个大哥遇到过?
asp怎么连接。操作时不一样的
Dim Conn, rs
Set Conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Conn.Open "Provider=SQLOLEDB.1;Connect Timeout=5;Persist Security Info=False;User ID=sa;password=1234;Initial Catalog=web;Data Source=SDYX"
ASP的连接方式
Dim UdwCnn As New SqlConnection(jvConnectString)
UdwCnn.Open()
Dim GDCom As New SqlCommand
UdwCnn.Close()
End_rbody_63640534//-->
对我有用[0]
丢个板砖[0]
引用
举报
管理
TOP
tjficcbw
(津津)
等 级:
3
#5楼 得分:10回复于:2010-03-01 20:03:00
VBScript code:
MM = "driver={SQL server};server=(local);uid=sa;pwd=sa;database=cbt;"
set con=server.createobject("adodb.connection")
con.open MM
Dim Conn, rs
Set Conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
Conn.Open "Provider=SQLOLEDB.1;Connect Timeout=5;Persist Security Info=False;User ID=sa;password=1234;Initial Catalog=web
相关问答:
我想打印数据库里面读取出来的多条数据内容,实现批量打印
先导入excel或者word,然后在打印
或者购买web打印控件
使用acitvex打印。如果不需要选择属性,设置属性,就不需要商业的了。
<style media= ......
function CheckOpwd(){//验证用户名
var pwd=document.all.txtOpwd;
var div1=document.getElementById("divPwd");
if (pwd.value=="")
{
......
<?xml version="1.0"?>
<root>
<status>433</status>
<msg>这个是汉字</msg>
<serialno>123</serialno>
</root>
如何用ASP读取 status值 ......
asp.net批量上传图片最好有源码,在线等!!!!!!!
源码很长的。
参考
C# code:
HttpFileCollection files = HttpContext.Current.Request.Files;
if (files.Count <= 1)
{
......
发给我一份 280535258@qq.com 谢谢 要分可以说 多少都行
参考::!!!!
前台
<%@ Page language="c#" Codebehind="Domain.aspx.cs" AutoEventWireup="false" Inherits=&q ......