Dear All,
Just I am trying to connect HANA server through OLDEB connection in VB6, getting error following error when excute SQL statement.
OLEDB Conntion is successed
error at SQL statment Excution time
Error Screenshot : http://goo.gl/SrdBO
Code :
Sub hana_connection()
Dim CONN As ADODB.Connection
Dim comm As New ADODB.Command
Dim rs As New ADODB.Recordset
Dim StrSql As String
Set CONN = New ADODB.Connection
StrSql = "Provider=SAPNewDBMDXProvider.1;Data Source=192.168.99.129;"
StrSql = StrSql & " User ID=system;Password=Passw0rd;Extended Properties='SFC_INSTANCE_NUM=79';"
StrSql = StrSql & "Database=EFASHION_TUTORIAL;Mode=Read|Write"
CONN.Open StrSql
'CONN.CursorLocation = adUseClient
With comm
.ActiveConnection = CONN
.CommandText = "select * from EFASHION_TUTORIAL.OUTLET_LOOKUP"
.CommandType = adCmdText
End With
With rs
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.LockType = adLockOptimistic
.Open comm
End With
End Sub
any one tested it? SAP is supported HANA trhough OLEDB?
HANA studio supports JDBC Connection, so what about OLEDB for Microsoft platform
kindly help on this
My main intention is to develop Excel add on like bulk data insert ![]()
Thanks & Regards
Rao
Edited by: Ganesh on Nov 7, 2011 3:11 PM