Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mesmacosta/cloudsql-sqlserver-tooling
Scripts with the goal to enable easy usage of some SQLServer operations.
https://github.com/mesmacosta/cloudsql-sqlserver-tooling
automation database developer-tools gcloud gcloud-cli gcloud-sdk sqlserver terraform
Last synced: 3 months ago
JSON representation
Scripts with the goal to enable easy usage of some SQLServer operations.
- Host: GitHub
- URL: https://github.com/mesmacosta/cloudsql-sqlserver-tooling
- Owner: mesmacosta
- License: mit
- Created: 2020-04-29T19:50:42.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T22:36:00.000Z (over 4 years ago)
- Last Synced: 2024-04-21T14:11:56.524Z (9 months ago)
- Topics: automation, database, developer-tools, gcloud, gcloud-cli, gcloud-sdk, sqlserver, terraform
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudsql-sqlserver-tooling
Scripts with the goal to enable easy usage of some SQLServer operations.
## INIT database
```bash
./init-db.sh
```## Creating Schemas and Tables in SQLServer
```bash
./connect-db.sh
```
Provide your password when prompted, then execute:
```bash
use "test-db";
CREATE SCHEMA MY_SCHEMA;
CREATE TABLE MY_SCHEMA.MY_TABLE (name INT, address TEXT);
exit
```
If you receive errors please run:
```bash
sudo pip install mssql-cli --ignore-installed six
```
To update the sql server driver used by gcloud.## Clean up SQLServer Schemas and Tables
```bash
./cleanup-db.sh
```## Delete the SQLServer database
```bash
./delete-db.sh
```