Hello,

because of I’ve read already any page about SAPDB and ODBC but found no solution I try to get help here…

All I need is to connect to the SAPDB with VB.NET …

This is what I tried for:

Imports System.Data
Imports System.Data.Odbc
Imports Microsoft
Imports Microsoft.VisualBasic

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim MyConString As String = "DRIVER={SAP DB (Unicode)};SERVER=localhost;DATABASE=MYDB;UID=ADMI N;PASSWORD=ADMIN;"

'Connection
Dim MyConnection As New OdbcConnection(MyConString)
MyConnection.Open()
End Sub
End Class


But I get ever an error 28000 user/pw should be wrong…

However anything is right and with other software (DM2, SQL Studio, BlitzMax)I can connect to the DB.

I read about I may also use MAXDB ODBC to connect to – but any mirror I tried to DL I get an Error 404 …


With MS Access 2003 I also can’t connect to the SAP DB – this would be alternate if VB.NET would really be impossible.



It can’t be so difficult to do a simple connect, can it?



Thanks in advance,

Andre