Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: How to create a HANA Database?

$
0
0

Dear Mr.Kin Ng,

 

if you would like to connect your sap hana cloud platform with sap hana studio, you should follow this link:

http://scn.sap.com/community/developer-center/cloud-platform/blog/2013/07/16/using-hana-modeler-in-sap-hana-cloud

 

for creating table in SAP HANA please take care of the following:

 

1- create a schema and save it as (MYSCHEMA.hdbschema)

Example:

schema_name="MYSCHEMA";

 

2- then create a table and save as (table.hdbtable)

Example:

table.schemaName = "MYSCHEMA";

table.tableType = COLUMNSTORE ;

table.description = "my first table";

table.columns = [

{name = "orderID" ;sqlType = NVARCHAR ;nullable = false ;length = 10 ;},

{name = "OrderItem" ;sqlType = NVARCHAR ;nullable = false ;length = 10 ;},

{name = "ProductId" ;sqlType = NVARCHAR ;nullable = false ;length = 10 ;},

{name = "Quantity" ;sqlType = NVARCHAR ;nullable = false ;length = 5 ;},

{name = "QuantityUnit" ;sqlType = NVARCHAR ;nullable = false ;length = 5;}

];

 

table.primaryKey.pkcolumns = ["orderID"];

 

then you will get your table created>>

 

enjoy with SAP HANA

 

best regards,

Murhaf Khaled


Viewing all articles
Browse latest Browse all 9269

Trending Articles



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