Задайте вопросЗадайте вопрос
 

ОтвеченоImport excel file and parse data in windows azure

Ответы

  • 1 июля 2009 г. 17:11BrentDaCodeMonkey Медали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
  • 2 июля 2009 г. 3:48Yi-Lun LuoMSFT, МодераторМедали пользователяМедали пользователяМедали пользователяМедали пользователяМедали пользователя
     Отвечено
    Hello, we do not recommend you to use SDS today. The new RDBMS model (relational data model) will be available in the near future, and the current ACE model will be deprecated. I would suggest you to wait for the RDBMS model of SDS. While I cannot assure you at this time, but the new SDS is likely to be capable of most features the desktop SQL Server. So you may be able to import the data to SDS just like importing data to normal SQL Server.

    Anyway, to use local storage, as you already found on http://social.msdn.microsoft.com/Forums/en-US/windowsazure/thread/593c5bc1-6e80-4b31-87d6-113d4cb72ca5/, you just write something like this:

    ILocalResource locRes = RoleManager.GetLocalResource("tempStorage");
    string rootPath = locRes.RootPath;

    Then rootPath will point to a folder in your local storage, and you can use standard .NET I/O methods to work with it.

    "tempStorage" is the name of the local storage. You define it in the csdef file:

      <WebRole name="WebRole" enableNativeCodeExecution="false">
        <InputEndpoints>
          <!-- Must use port 80 for http and port 443 for https when running in the cloud -->
          <InputEndpoint name="HttpIn" protocol="http" port="80" />
        </InputEndpoints>
      <LocalStorage name="tempStorage"/>
      </WebRole>

    But be aware that local storage should only be used to store temporary data that is only used in the current request. The data is only visible to the current instance of the current role. For example, you have two instance of the web role, and the data is stored in instance1's local storage. In this case, instance2 will not be able to access the data, even if it is the same web role. So if the next request from the same client goes to instance2, and you try to get the data from local storage, it will fail. For any data that should be accessable across requests, we recommend you to store it in blob.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.

Все ответы