Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 连接字符串中的AllowUserVariables-SQL Server Express_C#_Sql_Sql Server Express - Fatal编程技术网

C# 连接字符串中的AllowUserVariables-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=true”,以便使用C#访问SQL Server Express。但不支持
关键字:“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" />