Microsoft SQL Server
Squid は Microsoft SQL Server database に接続し、Squid application の data source として使用できます。
Microsoft SQL Server は relational database management system です。Squid を使用すると、Microsoft SQL Server database と integrate し、他の database connector の data と join することもできます。
Microsoft SQL Server database を Squid と統合するには、次の step を完了します。
- Squid Console を開き、Snowflake と使用する application を選択します。
- Connectors tab をクリックし、次に Available connectors をクリックします。
- Microsoft SQL Server connector を選択します。
- 次の configuration information を入力します。
- Connector ID - 簡潔で connector の識別に役立つ ID を選択します。
- Database endpoint - port number を含む database host。
- Microsoft SQL Server username
- Microsoft SQL Server password - password を private に保つには、Squid Secrets に保存します。
- Schema - 接続する schema の name。指定しない場合は default の
dboschema が使用されます。 - Database name - 接続する database の name。
- SSL configuration(必要な場合)

connection information を入力したら、Test connection をクリックして connection が正しく構成されていることを確認します。
Database の保護
default では security rule が必要です。production environment では、security rule なしで connector への access を許可しないことが不可欠です。database data の保護について詳しくは、security rules documentationを参照してください。
Datatype Mapping
次の table は、Microsoft SQL Server と Squid 間の datatype mapping を示します。
| Microsoft SQL Server Type | Squid Type |
|---|---|
| bigint | number |
| binary | string |
| boolean | boolean |
| char | string |
| date | date |
| datetime | date |
| datetime2 | date |
| datetimeoffset | date |
| decimal | number |
| float | number |
| image | string |
| int | integer |
| json | map or array |
| money | number |
| nchar | string |
| ntext | string |
| numeric | number |
| nvarchar | string |
| real | number |
| smalldatetime | date |
| smallint | integer |
| smallmoney | number |
| text | string |
| time | string |
| tinyint | integer |
| uniqueidentifier | string |
| varbinary | string |
| varchar | string |
| year | number |
Squid で Microsoft SQL Server data を操作する方法については、Client SDK documentationを参照してください。