# Rename Table

Renames an MsSQL table.


---

### ⬅️**INPUT**

| **Parameter** | **Type** | **Required** | **Description** |
|-----------|------|----------|-------------|
| `ConnectionSettings` | [`PAWMsSqlConnectionSettings`](/doc/pawmssqlconnectionsettings-sPYSdWCaH8) | ✅Yes     | Connection information |
| `FromTableName` | `String` | ✅Yes     | Existing table name |
| `ToTableName` | `String` | ✅Yes     | New table name |


---

### ➡️**OUTPUT**

| **Parameter** | **Type** | **Description** |
|-----------|------|-------------|
| `IsRenameTableSuccessful` | `Boolean` | Returns "**True**" if the operation succeeds, "**False**" if it fails. |
| `RenameTableMessage` | `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**". |