[英]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?我该如何解决这个问题?
仅在 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.