Facing an error while creating users in MSSQL server (in aws) < Error: unable to read user [platform-test].[user]: mssql: 'STRING_AGG' is not a recognized built-in function name.> #21
< Error: unable to read user [platform-test].[user]: mssql: 'STRING_AGG' is not a recognized built-in function name.>
Note: Able to create in database but getting the above error. Please give your inputs.
Hi, Sharing the script. Please let me know any findings. MSSQL version = 13.0.1601.5
terraform { required_providers { mssql = { source = "betr-io/mssql" version = "0.1.0" } } } provider "mssql" { debug = "true" }
resource "mssql_login" "example" { server { host = "xxx.xxx.xxx.xxx" login { username = "mssql_admin" password = "Mynewpassword" } } login_name = "test" password = "Hello" }
resource "mssql_user" "example" { server { host = "xxx.xx.xxx.xx" login { username = "mssql_admin" password = "Mynewpassword" } } username = "test" roles = ["db_owner"] database = "platform-test" login_name = mssql_login.example.login_name }
Error
< Error: unable to read user [platform-test].[user]: mssql: 'STRING_AGG' is not a recognized built-in function name.> Note: Able to create in database but getting the above error. Please give your inputs.
Thanks and Regards, Ishan Yadav