# MsSql To Localdata

Reads data from an MsSQL table and saves it to Local Data.


---

### :arrow_left:**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `ConnectionSettings` | [`PAWMsSqlConnectionSettings`](/doc/pawmssqlconnectionsettings-sPYSdWCaH8) | ✅Yes     | Connection information |
| `TableName` | `String` | ✅Yes     | Table name  |
| `Filter`  | `String` | ❌No      | WHERE condition |
| `ColumnNames` | `String` | ❌No      | Column names |
| `LocalDataName` | `String` | ✅Yes     | Local Data name |
| `AppendIfExists` | `Boolean` | ❌No      | Append if it exists |


---

### :arrow_right:**OUTPUT**

| **Name** | **Data Type** | **Description** |
|------|-----------|-------------|
| `IsMsSqlToLocalDataSuccessful` | `Boolean` | Returns "**True**" if the operation succeeds, "**False**" if it fails. |
| `MsSqlToLocalDataMessage` | `String`  | Returns the error information received if the operation fails. |


---

### :arrow_down:**MISC**

| **Parameter** | **Type** | **Default** | **Description** |
|-----------|------|---------|-------------|
| `ThrowException` | `Boolean` | ❌No     | Specifies whether an exception is thrown when the operation fails. The default value is "**No**". |