Using UNIX SAS to ascertain Netezza DISTRIBUTE_ON key - sas

Is anybody able to provide some SAS 9.1.3 code for ascertaining the DISTRIBUTE_ON key of a particular Netezza table?
have tried using the guidance here but the table comes back empty..

There is a nzsql command called \d which will retrieve the distribution keys on the table. Check the NZ Database User Guide.
Regards,
Venk

Related

Connect to Azure Data Lake Storage Gen 2 with SAS token Power BI

I'm trying to connec to to ADLS Gen 2 container with Power BI, but I've only found the option to connect with the key1/2 from the container (active directory is not an option in this case).
However, I don't want to use those keys since they are stored in Power BI and it can be seeing for the people who will have the .pbix file.
Is there anyway to connect to the ADLS Gen 2 from Power BI using Shared Access Signature (SAS)? so I can control only read access to what is really needed?
Thanks
As far as I know, the only way is to use the Storage Key, however I don't think the Key can be read or seen by the user after the Storage Data Source is applied and saved. It can be changed, but the Key itself is shown as dotted secret.
You can do it ;-)
I've tested it with Parquet files but CSV format should work as well. In PBI Desktop:
Select your source file type
Construct your whole file path with Advanced option. This will give you an opportunity to provide more than one part of the whole path.
Replace "blob" part of the URL with "dfs".
Paste your SAS token to the second text box
You should be ready to rock.

Connecting Looker to SAS

Does anyone know if you can connect Looker directly to a SAS table/server? or would you use a work-around to upload the SAS data to a SQL server, then connect Looker to that?
The SAS dataset (analogous to a table) is in a proprietary, binary format. If you have SAS Access to OleDb or ODBC, I would upload the table from SAS and not bother using a SAS format.
You must have SAS Access to upload the dataset from SAS, however, otherwise you are facing how to read a SAS dataset outside of SAS issue. Let us know what you have, in terms of software, so we can help guide a solution.

Get statistics on data inserts, updates in SAS log using pass through sql connecting to Teradata

I am using SAS EG to connect to teradata to read/write destination tables. I am using pass through sql to connect to teradata. Since , this is explicit sql in SAS, i am not able to see details in logs such as record inserts to a table, updates(how many records got updated etc). Is there a way to get such information in sas logs? I know it is possible in data steps in sas but with above request i am not able to do so. Thanks for your help.
Options SASTRACE helps and you can try
options sastrace=',,,d' sastraceloc=saslog nostsuffix;;
More info what the option logs and how you can effectively use SAS Trace with Teradata connections can be found in "Troubleshooting SAS and Teradata Query Performance Problems", Jeffrey D. Bailey, 2010.
The documentation for SASTRACE option is found at:
http://support.sas.com/documentation/cdl/en/acreldb/63647/HTML/default/viewer.htm#a000433982.htm

Pentaho Kettle sql uid

I need to load data from a csv to database. Those tables also used by application code, and table primary keys are generated by hibernate uid.
How do I create these primary key uid from kettle?
I appreciate any help.
Thanks,
Sam
Use the "Generate Random Value" step - this can generate uuids etc.

How to query a DB table from C++

I have C++ code, and from it I need to access the DB and make a query in table (with name NECE_TABLE, which has 2 columns - IntID and Status).
Here I need to get "status" column value from DB table (NECE_TABLE) using the IntID from C++ code.
Any help will be greatly helpful. Thanks in advance
Your question is very vague, but in summary you need to:
Use an appropriate client library supported by your database to connect to that database using some user credentials with appropriate permissions for SELECTing from your table
Execute a SQL select to fetch the data you want
There's some confusion as to which database you're using.
If you're using Oracle, you can use the OCCI client library to connect to the database and execute SQL statements. See section 2 of the linked document, where it describes connecting to a database and executing SQL queries.
Take a look at this link - it's a simple tutorial on how to get started with MySQL and C++. You say you are using vanilla SQL in your tags, but the two should be compatible as long as you stick to the more basic queries.