Torna al Thread

Public Sub CreaConnessione() 'controllo se in locale ho le tabelle Server = "localhost\SQLEXPRESS" Try dbconnection = New SqlConnection("Data Source=" & Server & ";Initial Catalog=festaman2;Integrated Security=True") Catch ex As Exception 'System.Data.SqlClient.SqlException MsgBox("non trovo il server") End Try 'Server = "wxp04579\SQLEXPRESS" 'dbconnection = New SqlConnection("Data Source=" & Server & ";Initial Catalog=dbname;Integrated Security=True") End Sub
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5