ERROR: CLI open cursor error: [Microsoft][SQL Server Native Client 11.0]TCP Provider: The semaphore timeout period has expired - sas

PROC SQL; UPDATE CLEAN.Unknown_Provs AS A SET ProviderAddress1=(SELECT COALESCEC(Prac1stAddr,Mail1stAddr) FROM HED.tblProviderNPI AS B WHERE A.UnknownFile_ProviderKey=B.NPI) WHERE ProviderAddress1=''; quit;
HED is the libname created for the SQL server database.
How can i fix the error

Related

Error occurs during connection Snowflake to Power BI

When I'm trying to connect Snowflake to Power BI I get an error:
"ODBC: ERROR [HY000] [Microsoft][Snowflake] (4)
REST request for URL https://eda87722.snowflakecomputing.com:443/session/v1/login-request?requestId=9eb99320-1fc6-49ee-859b-0fca3e70638b&request_guid=5f7d40b7-7025-410c-8905-da5b7e7e78cd&warehouse=COMPUTE_WH failed: CURLerror (curl_easy_perform() failed) - code=5 msg='Couldn't resolve proxy name' osCode=9 osMsg='Bad file descriptor'."
Interesting that I'm able to establish the connection on another machine with no issues. But I can't find the reason for such issue.
What I've tried:
Established the connection with vpn on and vpn off - no difference
Checked environmental variables http_proxy and https_proxy (http://proxyserver.internal) - they exist
Checked my access to data in Snowflake - I have access
Reinstalled Power BI
Tried to install Snowflake ODBC driver, but it is not visible in the list of my drivers
Tried to connect to different warehouses in Snowflake - same issue
'Auto resume' option for my warehouse in on
Could you, please, advise what else can I do?
Thank you.

SAS libname odbc prompt not prompting

I am trying to write a libname statement in SAS Enterprise Guide to refer to an existing ODBC connection to a SQL database. This program is shared with others, so coding my user name and password in it is not an option. Ideally I would like to the program to prompt me for a user name and password, but I can't get it to work. Here is what I have tried:
Works (but is not acceptable):
libname libref odbc dsn=DSN_Name uid=User_Name pwd=My_Password;
(where "libref", "DSN_Name", "User_Name", and "My_Password" are my actual values)
Does not work:
a) libname libref odbc dsn=DSN_Name;
result: ERROR: CLI error trying to establish connection: [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user ''.
ERROR: Error in the LIBNAME statement.
b) libname libref odbc dsn=DSN_Name prompt=yes;
result: ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified : [Microsoft][ODBC Driver Manager] Invalid connection string attribute
ERROR: Error in the LIBNAME statement.
c) libname libref odbc prompt=yes;
result: ERROR: CLI error trying to establish connection: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
specified : [Microsoft][ODBC Driver Manager] Invalid connection string attribute
ERROR: Error in the LIBNAME statement.
plus a bunch of other such combos. I feel like I am missing something, but what? Are there other options which don't involve me writing my password in and inevitably forgetting to delete it? Thank you!

SAS - Access SAS dataset from separate server

Scenario:
I run SAS programs from Sasfusion server abc123.
I run regular SAS programs with proc contents, proc prints, proc exports, etc with no issue.
I was just requested to access a SAS dataset in location on a separate server zyx123 (not sure if it is Sasfusion or not)
I thought this would be something simple like putting in a libname statement.
libname z '\path to the folder\' server=zyx123;
proc contents data = z.requesteddataset;
run;
Is it possible to even do the above?
I get the following errors:
ERROR: Libref TEST is not assigned.
ERROR: Error in the LIBNAME statement.
ERROR 23-7: Invalid value for the SERVER option.
The LIBNAME option SERVER= is used to access to data sets on a machine with SAS/SHARE licensed running a SAS session in which Proc SERVER is executing.
See the SAS/SHARE User's Guide, LIBNAME documentation:
LIBNAME Statement
In a client session, associates a libref (a shortcut name) with a SAS library that is located on the server for client access. In a server session, predefines a server library that clients are permitted to access.
…
SERVER=<server-node.>server-name | __port-number
specifies the location and identity of the SAS/SHARE server session that administers the SAS library.
You should request additional information about the remote server from you network / SAS administrator.
Not sure about your specific ERROR messages logged -- the log for an unsuccessful libname (on my machine) looks like:
12 libname foo 'c:\temp' server=#######.######;
ERROR: Attempt to connect to server #######.###### failed.
ERROR: A communication subsystem partner link setup request failure has occurred.
ERROR: The connection was refused.
ERROR: Error in the LIBNAME statement.

Connect to Athena using SQL workbench

I am trying to connect to Athena using SQL workbench. I followed all the instructions from page 15 to 19 mentioned in this PDF file:
https://s3.amazonaws.com/athena-downloads/drivers/JDBC/SimbaAthenaJDBC_2.0.7/docs/Simba+Athena+JDBC+Driver+Install+and+Configuration+Guide.pdf
If I use the default athena bucket name, I get this error:
S3://aws-athena-query-results-51346970XXXX-us-east-1/Unsaved
[Simba]AthenaJDBC An error has been thrown from the AWS SDK
client. Unable to execute HTTP request: No such host is known
(athena.useast-1.amazonaws.com) [Execution ID not available]
For any other bucketname I get this error:
s3://todel162/testfolder-1
[Simba]AthenaJDBC An error has been thrown from the AWS SDK
client. Unable to execute HTTP request: athena.useast-1.amazonaws.com
[Execution ID not available]
How do I connect to Athena using JDBC client?
Using copy-paste had an issue with the string on page 16:
jdbc:awsathena://AwsRegion=useast-1;
It should have a - like this...
jdbc:awsathena://AwsRegion=us-east-1;
Once I corrected this, I was able to connect.

DMS Source connection issue

Error Details: [errType=ERROR_RESPONSE, status=1022506,
errMessage=Failed to connect Network error has occurred, errDetails=
RetCode: SQL_ERROR SqlState: HYT00 NativeError: 0 Message:
[unixODBC][Microsoft][ODBC Driver 13 for SQL Server]Login timeout
expired ODBC general error.
I am getting this while creating DMS source. I have created a firewall inbound rules also. Target successfully tested.
My goal is migrate on premises SQL server db to aws sql instance, which is installed in aws-EC2.
Anyone please help me.
Thanks in Advance.