主题:救命啊~~请帮忙看一看~ 很急,在线等~~~!
<%@ Page Language="VB" ContentType="text/html" ResponseEncoding="gb2312" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%@ Import Namespace="System.Data" %>
<%@ Import NameSpace="System.Data.SqlClient" %>
<script laguage="VB" runat="server">
sub page_load(sender as Object,e as EventArgs)
Dim myConnection As SqlConnection
//Dim myCommand As SqlCommand
// Dim ds as DataSet
//'1.connect to sql server
myConnection = New SqlConnection( "server=localhost;database=wbsite;uid=sa;pwd=13922384498" )
myConnection.Open()
la1.text="Connection Opened!"
//'2.Create a table
myCommand = New SqlCommand( "CREATE TABLE [test] ([id] [int] IDENTITY (1, 1) NOT NULL ,[name]
[char] (10) COLLATE Chinese_PRC_CI_AS NULL ,[sex] [char] (10) COLLATE Chinese_PRC_CI_AS NULL
)", myConnection )
myCommand.ExecuteNonQuery()
la2.text="New table created!"
</script>
</body>
</html>
这是文件的全部代码,帮忙看看那里错了~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<%@ Import Namespace="System.Data" %>
<%@ Import NameSpace="System.Data.SqlClient" %>
<script laguage="VB" runat="server">
sub page_load(sender as Object,e as EventArgs)
Dim myConnection As SqlConnection
//Dim myCommand As SqlCommand
// Dim ds as DataSet
//'1.connect to sql server
myConnection = New SqlConnection( "server=localhost;database=wbsite;uid=sa;pwd=13922384498" )
myConnection.Open()
la1.text="Connection Opened!"
//'2.Create a table
myCommand = New SqlCommand( "CREATE TABLE [test] ([id] [int] IDENTITY (1, 1) NOT NULL ,[name]
[char] (10) COLLATE Chinese_PRC_CI_AS NULL ,[sex] [char] (10) COLLATE Chinese_PRC_CI_AS NULL
)", myConnection )
myCommand.ExecuteNonQuery()
la2.text="New table created!"
</script>
</body>
</html>
这是文件的全部代码,帮忙看看那里错了~~~~