Hi just an update:
I've coded this:
Private Sub login_button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles login_button.Click
Dim sybase_conn As New OleDb.OleDbConnection
sybaseconn.ConnectionString = "Provider=Sybase.ASEOLEDBProvider.2;DSURL='file://c:\sybase\ini\sql.ini?SQLMIDOFFOPC1';Data Source='myServer';Initial Catalog=myDatabase;User Id=username;Password=password"
sybaseconn.Open()
MsgBox("Database is now open")
sybase_conn.Close()
MsgBox("Database is now closed")
But I get this error:
An unhandled exception of type 'System.Security.SecurityException' occurred in System.Data.dll
Additional information: Request for the permission of type 'System.Data.OleDb.OleDbPermission, System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
!--removed tag-->
Enter your message below
Sign in or Join us (it's free).