Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL Server 'STRING_AGG' is not a recognized built-in function name. #247

Open
caceresjayder opened this issue Jan 20, 2025 · 0 comments
Open

Comments

@caceresjayder
Copy link

Describe the bug
I'm using a SQL Server instance with version 12.0.6024 and i'm getting an error:

SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]'string_agg' is not a recognized built-in function name. (Connection: sistema_sal, SQL: select idx.name as name, string_agg(col.name, ',') within group (order by idxcol.key_ordinal) as columns, idx.type_desc as [type], idx.is_unique as [unique], idx.is_primary_key as [primary] from sys.indexes as idx join sys.tables as tbl on idx.object_id = tbl.object_id join sys.schemas as scm on tbl.schema_id = scm.schema_id join sys.index_columns as idxcol on idx.object_id = idxcol.object_id and idx.index_id = idxcol.index_id join sys.columns as col on idxcol.object_id = col.object_id and idxcol.column_id = col.column_id where tbl.name = N'_LOGG' and scm.name = schema_name() group by idx.name, idx.type_desc, idx.is_unique, idx.is_primary_key)

To Reproduce
php artisan migrate:generate --connection="legacy_system" --squash --default-index-names --default-fk-names --skip-log --with-has-table --skip-proc --skip-views

Expected behavior
Created Migrations from SQL Server database

Details (please complete the following information):

  • DB: SQL Server
  • DB Version: 12.0.6024
  • Laravel Version: 11
  • PHP Version: 8.3
  • Migrations Generator Version:
    "kitloong/laravel-migrations-generator": "^7.0", - v7.0.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant