snowflake is SaaS but why we need to install snowsql
Heading
=======
You are right, Snowflake is SaaS, you can use it via a browser and there is no need to install SnowSQL.
SnowSQL is a 'cli' interface targeting users that don't have browser access. E.g. if you are running Linux without GUI, then you will need SnowSQL to use Snowflake.
Related
I need to regularly export Kiwi-tcms data to MongoDB. Kiwi-tcms is installed on my local Windows 7 using Docker Toolbox. I see that Kiwi-tcms stores data in MariaDB, how can I connect to MariaDB? Is there any Kiwi-tcms API that I can use to export data?
Try the commands on this page:
http://kiwitcms.org/blog/atodorov/2018/07/30/how-to-backup-docker-volumes-for-kiwi-tcms/
In particular, I use the dumpdata command a lot on Windows 10 and I end up with a JSON formatted text file with the DB contents.
This is an API, see tcms-api package on PyPI. Documentation how to use it is online.
in my alfresco-global.properties file it says:
db.url=jdbc:postgresql://localhost:5432/${db.name}
I want to know how to access this database in the browser?
The default PostgreSQL client application is psql. If you can't install this or if you want to use a GUI client, the PostgreSQL community maintains a list of GUI clients.
Every client either asks you for credentials or will present you a form where you can enter them.
The JDBC URL from your question is
jdbc:postgresql://localhost:5432/${db.name}
My guess is that db.name is equal to alfresco. So the complete JDBC URL would be
jdbc:postgresql://localhost:5432/alfresco
If you have installed Alfresco only your local computer, this would be the JDBC URL to use with a client that uses JDBC. If you have installed Alfresco on a different computer, you would have to replace localhost with the host name of this computer.
To connect to alfresco data base you can use any Postgresql client, by the way, alfresco install pgAdmin client.
To use this client you shoud open {alfresco_install_directory}/postgresql/bin/pgAdmin3, add new server and type database credentials(host, port ...) from alfresco-global.properties.
Edit
This is an example of configuration, you can find all what you need in alfresco-global.properties.
In case you have made the default installation(postgresql), you cant.
If you have switched the database to mysql you could use something like php admin or similar. Hope it helps.
I am attempting to automate the installation of SQL Server 2016 Express.
I have a chef cookbook to install SQL Server Express using the chocolatey package.
The same command as a chef resource
chocolatey_package 'sql-server-express' do
action :install
options '--cachelocation c:\temp\choco'
end
Equivalent PowerShell command
choco install sql-server-express --cachelocation c:\temp\choco
If I install SQL Server Express normally with the install wizard, I can authenticate and create / modify databases no problem.
If I install SQL Server Express with chocolatey / chef, I am not able to create or modify databases.
The error when trying to create a new database
CREATE DATABASE permission denied in database 'master'
The error when trying to modify an existing database
The server principal "Foo\Bar" is not able to access the database "foobar" under the current security context
I've tried logging in as the 'sa' user. mixed authentication is not enabled, and I can't enable it.
How can I get chocolatey installations of SQL Server Express users the same as a normal installation?
After many days I discovered the problem. Run chocolatey as a local administrative user, not SYSTEM.
Why:
The chocolatey package will not install if the command is executed over WinRM due to limitations of the WinRM protocol.
The common work around is to run chef/chocolatey in a scheduled task.
Unfortunately, scheduled tasks run as the SYSTEM user. The result is that MSSQL will only allow the SYSTEM user to run administrative commands.
The solution is to run chocolatey inside a scheduled task as a local system account (not SYSTEM). Or use RDP to log into the system and run the chocolatey command directly (not over winrm).
An example of how to run chef test kitchen as a (non SYSTEM) elevated user
transport:
name: winrm
elevated: true
elevated_username: vagrant
elevated_password: vagrant
I am actually trying to build an windows application and I need to maintain a database ("Not local") on cloud where can I actually maintain? I tried using phpmyadmin but it was to create a local db.
You can use SSH in conjunction with a database admin software such as Sequel pro for OSX or MySQL Workbench (http://www.mysql.com/products/workbench/) for other operating systems.
The most secure way typically would be to connect to the remote database server via SSH. Both these programs have that option available.
So you'd use the ssh key you'd use to SSH into the server, so tunnel into the database via SSH also.
I'm starting out on creating PowerShell scripts for my company. I'm new the the platform and I plan on creating scripts for AD tasks
If im creating scripts for AD should I be able to run the script on any machine in the domain or does the script have to be run on a machine that is the active directory server?
I don't mind running the script on the server but for testing and creating I would rather run it on my desktop for development and testing
any incite on this?
Assuming you're using the activedirectory powershell module, then the only requirement is that the machine you're running the script on has this module installed.
This module is a windows feature "Remote Server Administration Tools > Role Administration Tools > AD DS and AD LDS Tool > Active Directory Module for Windows Powershell."
On a server OS, this can be simply added as a feature through Server Manager
On a client OS, you will first need to install the Remote Server Administration Tools (RSAT) from Microsoft download centre. Once that is installed, you then install the feature through "Turn Windows Features on or off"
Additionally, if your script has a dependency on this module, you can also place the following line at the top of your script
#Requires -Module activedirectory
Then if you try to run this script on a machine without the activedirectory module, it'll produce an error saying the module is missing. It'll also cause the activedirectory module to be imported if it's not already been imported which is useful on powershell. Refer to about_Requires for more information on the #Requires statement