prisma: MSSQL Prisma: ConnectorError { user_facing_error: None, kind: QueryError(Utf8)
Bug description
Kinda premise is here: https://github.com/prisma/prisma/discussions/7475
In short: Introspected via prisma already existing database on localhost (which was created via .bak file earlier with MS SQL Server Studio), tried to make a basic query/graphql type for start via example and now receiving error while querying
Invalid `prisma.people_List.findMany()` invocation:\n\n\n Error occurred during query execution:\nConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(Utf8) })
Prisma information
generator client {
provider = "prisma-client-js"
previewFeatures = ["microsoftSqlServer"]
}
datasource db {
provider = "sqlserver"
url = env("DATABASE_URL")
}
model people_List {
id_People Int @id @default(autoincrement())
Surname String @db.VarChar(30)
Name String @db.VarChar(30)
**[A lot of other columns] too lazy to describe**
}
Environment & setup
- OS: Windows 10 [RU]
- Database: MSSQL
- Node.js version: 15.8
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 43 (23 by maintainers)
Yeah, ran a query now with an updated (aka reinstalled)
@prisma/client
andprisma
to 25.0 version and now I’m not receiving error and can receive Char string. About mutations… well, maybe will write/test later, now a bit busyOh, wait, got the script of creating table (columns), though I guess it will be empty
You mean Collation (encoding)? Kinda it was automatically (I guess) set on installing MS SQL Server and MS SQL Server Studio. But I suppose it can be changed at least via MS SQL Server Studio with right-clicking and setting parameters of collation of the database