Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim SqlCn As New SqlConnection SqlCn.ConnectionString = "Data source = (local);" & "Initial Catalog = test;" & "Integrated Security = True;" SqlCn.Open() MessageBox.Show("连接成功!") End Sub End Class
在Sqlcn。Open()提示:
未处理Sqlexception 在建立与服务器的连接时出错。在连接到 SQL Server 2005 时,在默认的设置下 SQL Server 不允许进行远程连接可能会导致此失败。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)大虾好,做的网站放上来需要大家支持一下,如何做好一个网站 http://www.feimasoft.com飞马桑拿软件|美容SPA软件|沐足软件|
帮我改改 我总觉得有问题 Type ID number As Single score As Integer name As String * 6 End Type Dim personl As ID, i% Private Sub Command1_Click() i = 0 &nbs ......