Connect to Snowflake using odbc in c# [closed] - odbc

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 4 years ago.
Improve this question
I am trying to connect to Snowflake using odbc connection. I have created a user DSN in odbc data source administrator on windows. When I am trying to connect through odbc in c#, its giving me an error that data source name not found and no default driver specified. Can anyone give me an example of connection string needed for same and how I could fix this error. I am using Visual Studio for development.

Visual Studio IDE is 32-bit.
The original User DSN was set up with a 64-bit ODBC driver for Snowflake.
The solution was to install and set up a DSN with a 32-bit ODBC driver for Snowflake.

Related

rstudio server and access of remote databases [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
I understand that several users can use an rstudio server. usually when we work locally we are already connected the to our databases (sql server) via active directory. How would this work in the server scenario. Would users have to enter credentials? I think one can also deploy plumber apis. How can they issue credentials to the remote database please? Thanks.
It probably depends if your solution is a free or a pro server. If pro, then better ask RStudio for sure.
For free server, some hints to answer something in case it helps you.
Docs are available here about that:
ODBC pro drivers: https://docs.rstudio.com/pro-drivers/installation/ there is a point for MS server
You can specify databases in odbc config file or just use odbc::odbc function inside R
Then credentials can be passed in odbc package. You can prompt for pwd interactively, see here for instance (in this case on an oracle db).
For credentials related to AD auto connect, I don't know, for me, users needs to identify to the database individually. It depends, first question is maybe: is your server configured to use the AD?
For plumber apis, unsecure ones are easily done but securing it yourself (jwt token or other IDs) without Rstudio pro seems not so easy.

Publish r shiny application in intranet [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am trying to build a Rstudio/Shiny App and post it in our intranet so that everyone else in our office could see it. I am a windows person, and the instructions online about how to setup a shiny server within Linux environment is a bit difficult for me. Is there an easy way that I can could accomplish this goal without messing up with Linux. Even if I have to do so, is there an easy way to just have my webpage available to people within our company, not everyone on the internet. Thanks!
You can use shinyapps.io and add a password authentication by using, for example, shinymanager Link here.
If you have a computer that's always on, you can run R on it and run the command shiny::runApp(host="0.0.0.0", port="xxxx")". You can experiment a bit with the port in xxxx.
You will have to know the computer's ip-address. You can then direct your colleagues to http://<ip-address>:<xxxx>, where you replace <ip-address> and <xxxx> with the respective ip-address and port. You might have to unblock the port in Windows Firewall.
If you do not have a computer available that is always turned on, you can actually install R onto a network drive, install required packages on the network drive, and then have users run R from the network drive and run the app themeselves.

Connecting R studio to IBM Netezza database using ODBC connection [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I need to connect to Netezza DB through R studio. I checked some pages already, the answers weren't clear. I don't know much about ODBC drivers and stuffs.
I have this folder that has bunch of dll and .jar files.
C:\Program Files (x86)\IBM Netezza ODBC Driver\jre.
Do i have to download any drivers and are there any specific R packages to install for this.
I did this with RODBC package.
First, make sure ODBC connection is set up in ODBC Data source Administrator(Windows system).
Install RODBC package in R studio.
library(RODBC)
myconn <-odbcConnect("ODBC_connection_name", uid="user", pwd="pass")
q_df <- sqlQuery(myconn,"select * from table", believeNRows=FALSE)
By default only 256 rows is imported. Set believeNRows=FALSE will import all the rows

JOOQ with ASP.NET and SQL Server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
Does jooq work with ASP.net and SQL Server? If yes, can someone show what does the code look like?
jOOQ appears to be a Java library, so out of the box I would say no, it would not work out ASP.NET.
SQL Server is listed on their website at the present time so, I would say it is supported .
Perhaps Entity Framework would work for you?
jOOQ officially supports SQL Server 2008 and 2012. Being a Java library, .NET is currently not officially supported. In the future, a formal .NET port might be on the roadmap, but is not a priority right now.
Some jOOQ users have reported to have successfully used jOOQ with IKVM. Details can be seen in this thread on the jOOQ User Group.

Is there an easy way to copy files between servers using aptana? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I have two Ubuntu servers. One is my development box, the other is a production system. They are not identical, though. Most notably, the MySQL server is on a remote server from the production one whereas on the dev system it's on localhost. Basically this means that I can mostly use a clone of the dev system, but if I just sync the filesystem the production system breaks.
Also, I am using Aptana (highly recommended, BTW). Up until recently, I had a local copy of my development system as a project, but I just had to reformat. I am not using a local project anymore, but instead I am using SFTP to connect with my Dev system and I am just editing files on there. Up until now, I have just been SCPing only files that need updating to the production server from my local project, but I kind of like not having one. I can restore it if necessary, though.
My question (short form): Is there an easy way using Aptana to copy files from one remote system to another?
Tim,
Currently you have to use local project (could be reconstructed from one remote) to synchronize two remote servers.
To enable auto-upload on local changes, in Project Explorer or App Explorer in context menu select Deploy/Deployment Settings, then check "Automatically sync my changes with the remote site".
This is all for Aptana Studio 3.
Cheers,
Max

Resources