问题
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