阅读背景:

如何具体检查SQL数据库是否已打开? - VB.NET 2012 MVC 4

来源:互联网 
    Function SQLSelect() As ActionResult

    Dim theconnection As New SqlConnection("Data Source=(localdb);Database=test_drive_database;")
    Dim queryString As String = "SELECT * FROM ColorTable"
    Dim command As New SqlCommand(queryString)
    command.CommandTimeout = 15
    command.CommandType = CommandType.Text

    'Printing Out the SQL Result

    Return ViewData("command")

End Function
    Function SQLSelect() As ActionResult

    D



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: