簡體   English   中英

我的c#windows表單應用程序和azure

[英]my c# windows form application and azure

我有一個azure數據庫,它連接到我的c#應用程序,我使用App.config來創建連接字符串。 當我運行我的程序它變得非常慢,但當我連接到本地SQL服務器時它非常快。 如何快速在我的應用程序上進行天藍色連接?

我的App.Config

<?xml version="1.0"?>
<configuration>
  <configSections>
  </configSections>
    <connectionStrings>
  <clear />
  <add name="fudz" connectionString="Data Source=[my server];Initial Catalog=[databasename];Persist Security Info=True;User ID=[my user name];Password=[my password];Encrypt=true;TrustServerCertificate=False;Connection Timeout=30;"/>
</connectionStrings>
<startup useLegacyV2RuntimeActivationPolicy="true"><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1"/></startup></configuration>

它可能是您的計算機和Azure數據庫之間的網絡延遲。 您可以使用某些網絡工具(如pingtracert等)來查看網絡延遲。 然后,您可以查看提高網絡連接速度(通常是通過ISP)。

您還可以選擇最接近您運行應用程序的位置的Azure托管

Azure位置 - https://azure.microsoft.com/en-us/regions/?cdn=disable

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM