简体   繁体   English

连接字符串中的 AllowUserVariables - SQL Server Express

[英]AllowUserVariables in connection string - SQL Server Express

I am trying to add "AllowUserVariables=true" in my connection string to access SQL Server Express using C#.我试图在我的连接字符串中添加“AllowUserVariables=true”以使用 C# 访问 SQL Server Express。 But an Keyword not supported: 'allowuservariables'.Keyword not supported: 'allowuservariables'. exception is thrown.抛出异常。 How can I resolve this?我该如何解决这个问题?

try "Allow User Variables=True" 尝试“允许用户变量= True”

Link 链接

仅在 ms SQL 服务器中,您可以运行此命令:

<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" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM