Riempire una treeview da un dataset

2 maggio 2008 - Fonte: http://ilpas.blogspot.com/
Dim DSNWind As DataSet
Dim CNnwind As New SqlClient.SqlConnection("DATA SOURCE=servername;USER ID=;PASSWORD=;INITIAL CATALOG=northwind;") '<==== CHANGE HERE
Dim DACustomers As New SqlClient.SqlDataAdapter("SELECT CustomerID, CompanyName, ContactName, Country FROM customers WHERE country = 'Germany'", CNnwind)
Dim DAOrders As New SqlClient.SqlDataAdapter("SELECT CustomerID, OrderID, OrderDate, ShippedDate, ShipVia, Freight FROM orders where customerid in (select customerid from customers where country = 'Germany')", CNnwind)
Dim DAOrderDetails As New SqlClient.SqlDataAdapter("Select * from [Order Details] where OrderID in (SELECT OrderID FROM orders where customerid in (select customerid from customers where country = 'Germany'))",
...

Leggi il seguito »

Funzione per riempire una treeview da un dataset

17 gennaio 2008 - Fonte: http://ilpas.blogspot.com/
Dim DSNWind As DataSet

Dim CNnwind As New SqlClient.SqlConnection("DATA SOURCE=servername;USER ID=;PASSWORD=;INITIAL CATALOG=northwind;")

Dim DACustomers As New SqlClient.SqlDataAdapter("SELECT CustomerID, CompanyName, ContactName, Country FROM customers WHERE country = 'Germany'", CNnwind)

Dim DAOrders As New SqlClient.SqlDataAdapter("SELECT CustomerID, OrderID, OrderDate, ShippedDate, ShipVia, Freight FROM orders where customerid in (select customerid from customers where country = 'Germany')", CNnwind)

Dim DAOrderDetails As New SqlClient.SqlDataAdapter("Select * from [Order Details] where OrderID in (SELECT OrderID FROM orders where customerid in (select customerid from customers where country = 'Germany'))", CNnwind)

DSNWind = New
...

Leggi il seguito »

Mac OS X: Come connettersi ad un server remoto Windows

21 settembre 2007 - Fonte: http://www.space4tutorial.com

Girovando su Internet, mi domandavo dove poter recuperare un client VNC per connettermi ad un server remoto Windows… e casualmente capito sul sito Mactopia della Microzozz (aahhhh……) e a ben vedere, quando i cugini di Redmond si affacciano sul mondo Mac, iniziano anche loro a produrre software fatto bene, anche se non aggiornato con una certa frequenza (non a caso stiamo parlando di Microsoft, quindi è tutto normale ;) .

Cliccando nella sezione ...

Leggi il seguito »