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
sybase_conn.ConnectionString = "Provider=Sybase.ASEOLEDBProvider.
2;DSURL='file://c:\sybase\ini\sql.ini?SQL_MIDOFF_OPC1';Data
Source='myServer';Initial Catalog=myDatabase;User
Id=username;Password=password"
sybase_conn.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.
On May 20, 12:04 am, KeidrickP <[email protected]> wrote:
> I would also recommend using the .net login controls.
> Instead of just regular text boxes.
>
> http://msdn.microsoft.com/en-us/library/ms178329.aspx
>
> On Tue, May 19, 2009 at 8:50 AM, The_Fruitman
>
>
>
> <[email protected]> wrote:
>
> > The programming logic remains the same no matter what database you're
> > connecting to.
>
> >http://www.google.com/search?hl=en&q=connect+to+database+in+vb.net&aq...
>
> > The connection string can be found here:
> >http://connectionstrings.com/sybase-adaptive
>
> > On May 18, 11:04 pm, jt_2009 <[email protected]> wrote:
> >> Hi I am new to vb.net.
>
> >> I am creating a login form and require the form to validate the
> >> username and password from a sybase ASE database. I was wondering if
> >> anyone here knows how to do that?
>
> >> Thank you . I am doing this using VS 2005.
>
> --
> Keidrick Pettaway
>
> http://kpettaway.com