使用 Windows Azure 查询表存储数据
这个问题有两个部分。
有没有办法查看本地存储的数据。 据我了解,本地表存储实际上是在幕后使用 SQLExpress 完成的。 SQLExpress 数据库位于哪里?我可以使用任何查询工具打开它吗? 我需要使用特定帐户吗?
应用程序部署到 Azure 服务后,如何查询数据? Google App Engine 有数据查看器/查询工具,Azure 有类似的东西吗?
This question has 2 parts.
Is there a way to view the data that is stored locally. I understand that local table storage is actually done using SQLExpress behind the scenes. Where is that SQLExpress database located and can I open it using any query tool? Is there a specific account I need to use?
Once the application is deployed to the Azure services, how do I query the data? The Google App Engine has a data viewer / query tool, does Azure have something similar?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
我在 Codeplex 上发现了这个,发现它对于浏览实时存储很有用: http://azurestorageexplorer.codeplex.com/
I found this on Codeplex and found it useful for browsing live storage: http://azurestorageexplorer.codeplex.com/
对于#1,我可以建议您使用我们的产品 Cloud Storage Studio。 您可以从我们的网站找到更多相关信息:/Products/CloudStorageStudio/Default.aspx。
它还具有“查询”功能,以便您可以对表存储执行查询。
For #1, may I recommend that you use our product Cloud Storage Studio. You can find more information about that from our website: /Products/CloudStorageStudio/Default.aspx.
It also has a "query" feature as well so that you can execute queries against your table storage.
我不确定您的第一个问题,但对于第二部分:至少当您使用 ADO.NET 数据服务客户端时,这与使用本地表服务进行开发时相同。 只需使用 Azure 存储帐户的服务根目录即可。 或者,如果您需要(无架构)Azure 表的灵活性,则可以使用 REST 接口。
我不知道有类似 GAE 数据查看器的工具,但自己构建类似的工具并不是很困难。
I'm not sure about your first question, but for the second part: It's the same as when you're developing using the local table service, when you're using the ADO.NET Data Services client, at least. Just use the service root of your Azure storage account. Or you can use the REST interface, if you need the flexibility of the (schema-less) Azure Tables.
I'm not aware of a tool similar to GAE's data viewer, but it's not very difficult to build something like that yourself.
我刚刚找到了#1 的答案。 显然,该数据库位于我的默认 SQLExpress 实例下,其数据库与我的项目同名。 有一些表映射到我的实体,每个表都有映射到我的属性的列。
I just found my answer to #1. Apparently the database is sitting under my default SQLExpress instance with a database that is the same name as my project. There are tables that map to my entities, each with columns that map to my properties.
由于我是一名新用户,并且新用户的每个答案仅限 1 个链接,因此又是一个答案。
在查询 Azure 表存储时,您可能会发现这些链接也很有用:
http:// /msdn.microsoft.com/en-us/library/dd135725.aspx
Since I am a new user and there is a limit of 1 link per answer for new users, hence this one more answer.
You may find these links useful as well when querying against Azure Table Storage:
http://msdn.microsoft.com/en-us/library/dd135725.aspx
您还可以使用 Windows Azure TabeleBrowser 查看特定帐户名称的表中的内容。
You can also use the Windows Azure TabeleBrowser to view what is in the tables of a specific account name.
您可以直接从 Visual Studio 2010 服务器资源管理器查看开发存储中的表和 blob
You can view the tables and blobs in the development storage directly from Visual Studio 2010 Server Explorer