AllowUserVariables in connection string - SQL Server Express

旧城冷巷雨未停 提交于 2021-01-29 03:21:20

问题


I am trying to add "AllowUserVariables=true" in my connection string to access SQL Server Express using C#. But an Keyword not supported: 'allowuservariables'. exception is thrown. How can I resolve this?


回答1:


Only in ms SQL server, you can run this command:

<add name="ConnectionString_LIVE_customer_support" connectionString="server=REMOVED;port=REMOVED;User Id=REMOVED;password=REMOVED;Persist Security Info=True;database=customer_support;Sql Server Mode=True;Allow User Variables=True" providerName="MySql.Data.MySqlClient" />


来源:https://stackoverflow.com/questions/40875923/allowuservariables-in-connection-string-sql-server-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!