laravel-id-generator icon indicating copy to clipboard operation
laravel-id-generator copied to clipboard

SQLSTATE[42000]: [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Could not find stored procedure 'describe'. (SQL: describe table_name)

Open gtiger165 opened this issue 4 years ago • 1 comments

I get some error when try to check unique id, it says need stored procedure 'describe', I just trying a simple example in your documentation.

$config = ['table' => table_name, 'length' => 16, 'prefix' => 'HIP'.date('Ym')]; return IdGenerator::generate($config);

gtiger165 avatar Feb 11 '21 08:02 gtiger165

i think i already found the issues, 'describe' command is available in MYSQL so SQL Server has different stored procedures within it. Maybe you can add support to SQL Server as well.....don't hesitate to correct me if I'm wrong.

gtiger165 avatar Feb 11 '21 08:02 gtiger165