SAP HANA Studio R Integration for Windows - sql

How do I integrate SAP HANA Studio with Rserve in Windows? I want to run R code on SQL Script with other SQL statements. I do not have access to Linux on my job and I am currently using Windows.

You have this backwards.
There are two different integration scenarios for SAP HANA and R:
HANA -> R (via RServe)
R -> HANA (via ODBC or JDBC)
None of these scenarios involves HANA Studio as a part of the integration.
The first type of integration really is a setup task for the HANA administrator. Once the connection between the RServe and the HANA server is set up correctly, developers can build calculation models and procedure based on R code in the HANA development environment.
For the second type of integration R simply is a database client to SAP HANA and gets data via RODBC or RJDBC. No need to have access to the Linux (HANA) server for this. All you need is the client software installed on your local computer to connect to HANA.

Related

How to connect toad, SQL developer and SSMS using ODBC?

I need to connect oracle and SQL server databases using ODBC by the following application.
Toad
SQL Developer
SSMS
CMD
Is there a way to connect these applications thru ODBC. If yes could you please help me with this.
I have already created DSN for both oracle and SQL, but other steps are unknown since I don't if I can connect these applications to a database using ODBC
I think you are misunderstanding and mixing things.
Toad is a product of Quest Software, an IDE ( Integrated Development Environment ) based on OCI. The best known version is the one which is designed to interact with Oracle databases..
SQL Developer is also an IDE, though less powerful than Toad, but
free. It is based on Java and it can connect to Oracle, MySQL, Postgres .
SSMS is SQL Server Management Studio , which is the client IDE to interact with Microsoft SQL Server.
CMD is also know as the command prompt for windows which it does't make any sense in this context.
If you want to connect Oracle to SQL Server you have two options:
Oracle HS or Heterogeneus Services
SQL Server Linked Server

What protocol does SAP HANA studio use in order to communicate with a HANA database?

I would just like to know how HANA Studio communicates with a HANA DB? What kind of protocol does it use? Does it use JDBC or SQLDBC?
SAP HANA Studio uses JDBC for the majority of all communication with a SAP HANA server.
Features like the sapstartsrvc connection for starting/stopping the system or the landscape management use http-based protocols.

Requirements to run SQL Server on other computers

Suppose that I've created a project using MS SQL Server.
Now if somebody asks me to run my application on their brand new PC, should I install the entire SQL Server management studio on their computer? Or are there any other choices?
Please note that I just want to run my app (.exe template) not to debug it or anything else.
If your application is intended for standalone use on a PC, you can include the redistributable version of SQL Server Express in your installer. It's a limited but functional version of SQL server intended to be included with application programs like yours free of charge.
https://www.microsoft.com/en-us/sql-server/sql-server-editions-express
If your application program is designed for either shared or standalone use, and you have time to polish up your installer, you can ask your users whether they want to use a shared SQL Server instance. That will let you skip the installation of SQL Server Express when it's not necessary.
No they don't need SQL server or management studio , however they a database driver to access the server. ADO, ODBC and JDBC are the types of drivers you would look at. This depends on the language you wrote your application in and the connection string.
You clients would use the server's address and connect to it using the driver which is specified in a connection string. See the examples below:
.Net Framework Data Provider For SQL Server:
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;
SQL Server Native Client 11.0 OLE DB Provider:
Provider=SQLNCLI11;Server=myServerAddress;Database=myDataBase;Uid=myUsername;
Pwd=myPassword;
If you application only connect to the database that you have a two-tier client server architecture. For the server to be reachable it needs to be on a network or network endpoint that the clients(people running your software) can see. The server needs to be on as well(your comments).

SAP Hana One : Unable connect with Hana Studio

I have created a SAP Hana One Instance for SPS11. But i never get any username or password to connect with SAP HANA Studio? Can someone help to connect SAP Hana One instance with SAP Hana Studio.
Do you have SAP Logon Pad installed on your local PC.
If you can see the SAP system in the local SAP Logon Pad, you can see the same SAP systems in SAP HANA Studio.
Please check how you can configure the saplogon.ini for SAP HANA Studio in Eclipse IDE here.
Probably the referenced saplogon.ini file is empty. You can copy and paste the file populated with SAP systems in your environment.
I had the problem so that I could not see any SAP systems and had to manually configure for all SAP systems to logon. The solution will help you too to logon with SSO
When you install SAP HANA server, you need to create a SYSTEM superuser. You can connect from HANA Studio using that credential.
To connect to a hana db you need to know the Hostname and Instancenumber of the hana db.
For hana 2 systems the port of the nameserver on system db is
313
On this server you can use the view M_SERVICES in the SYS_DATABASE schema to see the sql ports of the indexservers of your tenant dbs

How can I monitor all SQL commands that go through a ODBC User DSN

How can I monitor all SQL commands that go through a ODBC User DSN?
the datasource is using the SQL Server native Client 10.0 driver.
I have an access app with hundreds of confusingly complex reports. Over the last 3 years We have ported the app to ColdFusion and MS Sql server and one of the reports has some inconsistencies with the access version of the app.
I've tried tracing the code through in the access app to discern exactly what is going on but I've been unable to figure it out. The access app uses an ODBC user DSN with the SQL Server native Client 10.0 driver. Is there some way I can monitor the datasource and see all the sql commands that are executed over that channel?
Setup a SQL Server profile trace and capture the command being executed on the server. I assume you are using MSSQL as the backend?
https://expressprofiler.codeplex.com
It's free profiler in case you use SQL Server Express version.