C# 连接字符串中的AllowUserVariables-SQL Server Express
我试图在连接字符串中添加“AllowUserVariables=true”,以便使用C#访问SQL Server Express。但不支持C# 连接字符串中的AllowUserVariables-SQL Server Express,c#,sql,sql-server-express,C#,Sql,Sql Server Express,我试图在连接字符串中添加“AllowUserVariables=true”,以便使用C#访问SQL Server Express。但不支持关键字:“allowuservariables”。引发异常。 如何解决此问题?只有在ms SQL server中,才能运行以下命令: <add name="ConnectionString_LIVE_customer_support" connectionString="server=REMOVED;port=REMOVED
关键字:“allowuservariables”。
引发异常。
如何解决此问题?只有在ms SQL server中,才能运行以下命令:
<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" />