Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyword not supported: initial catalog

Tags:

c#

i searched the web and stack too, find some topic but none of them solve the problem and problem : i can't connect to database with the error "Keyword not supported: initial catalog" enter image description hereMy so plain code!

enter image description here

Evil Error enter image description here

like image 594
Omid Avatar asked Mar 12 '23 12:03

Omid


1 Answers

You have a new line between "Initial" and "Catalog". Replace it with a space, or consider using a SqlConnectionStringBuilder to construct the connection string programatically.

like image 174
yaakov Avatar answered Mar 15 '23 23:03

yaakov