怎么解决问题?谢谢!
Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0234: The type or namespace name 'SQL' does not exist in the class or namespace 'System.Data' (are you missing an assembly reference?)Source Error: Line 1:  <% @ Page Language="C#" %>
Line 2:  <% @ Import Namespace="System.Data" %>
Line 3:  <% @ Import Namespace="System.Data.SQL" %>
Line 4:  <Script Language="C#" Runat="Server">
Line 5:  public void Page_Load(Object src,EventArgs e)
 Source File: F:\Peter\ASPxNet\UserName.aspx    Line: 3 

解决方案 »

  1.   

    Line 3:  <% @ Import Namespace="System.Data.SQL" %><% @ Import Namespace="System.Data.SQLClient" %>名称空间错误。对应的OLEDB空间是System.Data.OleDB
      

  2.   

    <% @ Import Namespace="System.Data.SQL" %>改成:<% @ Import Namespace="System.Data.SqlClient" %>
      

  3.   

    <%@ import namespace="system.data.sqlclient" %>
      

  4.   

    <% @ Import Namespace="System.Data.SqlClient" %>
      

  5.   

    错误太多,那位大虾能贴个数据库的程序范例a 
    duoxie Compilation Error 
    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS1009: Unrecognized escape sequenceSource Error: Line 7:  {
    Line 8:      //联结语句
    Line 9:      string MyConnString = "Driver={Microsoft Access Driver (*.mdb)}; DBQ=F:\Peter\Peter.mdb;";
    Line 10:     string strComm1 = "select * from UserName";
    Line 11:     string strComm2 = "select * from Diary";
     Source File: F:\Peter\ASPxNet\Default.aspx    Line: 9 
      

  6.   

    <%@ Page Language="VB" Debug="true" %>
    <%@ import Namespace="system.data" %>
    <%@ import Namespace="System.Data.sqlclient" %>
    <%@ import Namespace="System.Data.OleDb" %>
    <script runat="server">    dim myConnectionString as string = "server=localhost;Initial Catalog=banking;User Id=sa;password=;"
        
         Dim myConnection As New sqlConnection(myConnectionString)
        
        
        
        
           sub getdata(obj as object, e as eventargs)
        
        
           dim objcmd as sqlcommand=new sqlcommand("select * from tblUsers",myConnection)
        
        
           dim objreader as sqldatareader
    ..................
      

  7.   

    如果是ACCESS,则STRING不一样,