cancel
Showing results for 
Search instead for 
Did you mean: 

SAP .Net Connector 2.0: Logon Information

Former Member
0 Kudos
136

Im using VB .Net 2003 and SAP .Net Connector 2.0.

Im able to connect to SAP and displaying data on datagrid. Now, im creating my own logon screen where user key-in their client no, user, password.

My problem is how to validate the user. How to check whether the user, client and password being entered correctly?

Thank you.

regards.

View Entire Topic
Former Member
0 Kudos

Construct a Connection object using the connection parameters entered and call method Open().

Regards,

Guangwei

Former Member
0 Kudos

Thanks Reiner n Guangwei.

What is the difference with Connection and proxy?

I open the connection and dispose it later and Im still able to display data through the sapproxy.

I dont get it. I thought by disposing the connection, the sapproxy should not be working.

Anybody can explain it to me.

Thank you.

Regards.

reiner_hille-doering
Active Contributor
0 Kudos

The connection maintains the connection state, while the proxy maintains the functional aspect. Indeed a proxy without an open connection wouldn't work:

Connection conn = Connection.GetConnection(myDestination);

conn.Open(); // This would throw if connection data in myDestination is bad

...

SAPProxy1 proxy = new SAPProxy1();

proxy.Connection = conn;

proxy.Method1(...);

conn.Dispose(); // Closes connection

proxy.Method1(...); // Will fail

proxy.Connection = null;

proxy.Dispose(); // Doesn't have an effect here. It would also Dispose the assigned connection.

Former Member
0 Kudos

Whats' DBKK stand for? It sounds like a project which i was supposed to join 3 months back....

Former Member
0 Kudos

DBKK stand for Dewan Bandaraya Kota Kinabalu or Kota Kinabalu City Hall.

This City Hall is located in Sabah, Malaysia.

You just miss the fun!

Regards.