28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. In a command line, run the following:<br />

hdbuserstore.exe set : <br />

The server, port, user name and password are now stored in the user store. The key is a string you use to refer<br />

to this set of connection information.<br />

2. Use the key to reference a connection to a particular system. Always precede the key with an @, for example,<br />

@mykey.<br />

Use the key in the following ways:<br />

○ In the connection string, use the key for the SERVERNODE parameter, and do not include a user name<br />

and password, for example:<br />

SERVERNODE={@mykey};DRIVER={hdbodbc};<br />

○ In creating a DSN, enter the key (for example, @mykey) for the server and port.<br />

○ In testing your connection (by running odbcreg -t hdbodbc), use the key (for example, @mykey) for<br />

the server and port. If the connection is successful, you get something like this:<br />

The response includes a sample connection string using the key.<br />

Related Links<br />

Testing the ODBC Installation [page 357]<br />

You can test the installation of the ODBC driver and your ability to connect by using the odbcreg tool, which<br />

is part of the ODBC installation.<br />

14.1.2 Testing the ODBC Installation<br />

You can test the installation of the ODBC driver and your ability to connect by using the odbcreg tool, which is<br />

part of the ODBC installation.<br />

1. Open a command window.<br />

2. Start the odbcreg tool by enter a command in the form: odbcreg -t hdbcodbc (for 64-bit driver) or<br />

odbcreg32 -t hdbcodbc32 (for 32-bit driver).<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Using Database Client Interfaces<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 357

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!