Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

HANA MDX provider popup when connecting to HANA

$
0
0

I have an excel application which uses HANA MDX provider to connect to SAP HANA database to fetch some data. I have saved the credentials in a sheet and using connection strings to connect to HANA. But, the provider is opening a prompt popup everytime a connection happens. How to prevent the below popup if it already has connection details i.e. instead of asking user to click ok , it automatically connects without prompt?

 

Untitled.png

 

My code to connect to HANA is this:-

 

With Sheets(sheet).ListObjects.Add(SourceType:=0, Source:=Array( _

        "ODBC;DRIVER=" + provider + ";CS=" + databaseschema + ";SERVERNODE=" + server + ";Persist Security Info=False;" + getAuthentication + ";APP=" + app + ";" _

        ), Destination:=Range(Sheets(sheet).Cells(row, column).Address)).QueryTable

        .commandText = commandText

        .RowNumbers = False

        .FillAdjacentFormulas = False

        .PreserveFormatting = True

        .RefreshOnFileOpen = False

        .BackgroundQuery = True

        .RefreshStyle = xlInsertDeleteCell

        .SavePassword = False

       .SaveData = True

        .AdjustColumnWidth = False

        .RefreshPeriod = 0

        .ListObject.displayName = displayName

        .PreserveColumnInfo = False

        On Error Resume Next

        .Refresh BackgroundQuery:=False

    End With


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>