macos 在 Mac 上使用 Azure SQL 服务?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3283897/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using Azure SQL Services from a Mac?
提问by Erik Paulson
Azure SQL Services looks pretty cool, and I'd like to use it as a hosted database. I set myself up with a starter web edition database, and after clicking through a million and five EULAs, I got to a console and created a database. It gave me a connection string for ODBC, and for ADO.NET.
Azure SQL 服务看起来很酷,我想将它用作托管数据库。我为自己设置了一个入门网络版数据库,在点击了一百万零五个 EULA 后,我进入了一个控制台并创建了一个数据库。它给了我一个用于 ODBC 和 ADO.NET 的连接字符串。
I'm using a Mac, with 10.6. What are my options?
我使用的是 10.6 的 Mac。我有哪些选择?
Ideally, I'd find something like Sequel Pro or Querious that works with ODBC. Failing that, is there a web console or something?
理想情况下,我会找到像 Sequel Pro 或 Querious 这样的与 ODBC 配合使用的东西。如果没有,是否有网络控制台或其他什么东西?
I suppose there's always DBI::Shell in perl.
我想在 perl 中总是有 DBI::Shell。
Is there anything better than installing Windows 7/VS2010 in VMWare?
有什么比在 VMWare 中安装 Windows 7/VS2010 更好的吗?
回答by Kyle
You may like SQLPro for MSSQL(mac app store).
您可能喜欢MSSQL 的 SQLPro(Mac 应用商店)。
The app has a few neat features such as:
该应用程序具有一些简洁的功能,例如:
- Auto-completion and syntax highlighting.
- Azure database support (also supports federation).
- Tabbed based interface.
- Support for executing multiple queries at once.
- Quick access to tables, columns and more.
- Stored procedure execution.
- 自动完成和语法高亮。
- Azure 数据库支持(也支持联合)。
- 基于选项卡的界面。
- 支持一次执行多个查询。
- 快速访问表、列等。
- 存储过程执行。
Disclaimer: I'm the developer of this app. I built it because I wanted a tool for accessing MSSQL databases without running a windows virtual machine. I use this tool on a daily basis now and am continually adding updates and new features to it.
免责声明:我是这个应用程序的开发者。我构建它是因为我想要一个无需运行 Windows 虚拟机即可访问 MSSQL 数据库的工具。我现在每天都在使用这个工具,并不断向它添加更新和新功能。
回答by sMiLo
Use Visual Studio Code with mssql extensionto connect and query data on Azure SQL database.
使用带有 mssql 扩展的 Visual Studio Code连接和查询 Azure SQL 数据库上的数据。
回答by JeffreyABecker
SQL Azure provides a standard TDS stream so any program which can connect to a local sql server could connect given the right connection string. See http://www.connectionstrings.com/sql-azure. Also take a good hard look at if you even need a fully relational database. If you dont, Azure Table Storagemight be a good answer.
SQL Azure 提供了一个标准的 TDS 流,因此任何可以连接到本地 sql server 的程序都可以在给定正确的连接字符串的情况下进行连接。请参阅http://www.connectionstrings.com/sql-azure。如果您甚至需要一个完全关系数据库,也要仔细研究一下。如果不这样做,Azure 表存储可能是一个不错的答案。
回答by jake
I'm successfully using OpenLink's SQL Server Lite Driver v6.0to connect to SQL Azure through Mac OS X Lion.
我成功地使用OpenLink 的 SQL Server Lite Driver v6.0通过 Mac OS X Lion 连接到 SQL Azure。
回答by Zac
Navicat Lite no longer exists
Navicat Lite 不再存在
If you want something like Sequel Pro, I'd suggest Navicat Lite. It connects to my SQL Azure instances just fine, and the Lite version is free. It's a native OSX client, so there isn't any funky UI going on. The Lite version excludes some things like visual query building, but overall is very useful.
如果你想要像 Sequel Pro 这样的东西,我建议你使用Navicat Lite。它可以很好地连接到我的 SQL Azure 实例,并且 Lite 版本是免费的。它是一个原生的 OSX 客户端,所以没有任何时髦的 UI。Lite 版本排除了一些诸如可视化查询构建之类的东西,但总体而言非常有用。
回答by Joseph Idziorek
回答by Joseph Idziorek
回答by Stephen Kruger
If you want a free option, and just need a commandline interface, you can install freetds. I found a great page on it here, it got me in and running without spending money.
如果你想要一个免费选项,并且只需要一个命令行界面,你可以安装 freetds。我在这里找到了一个很棒的页面,它让我在不花钱的情况下进入并运行。
https://martinrichards.tumblr.com/post/28488121620/connecting-to-sql-azure-using-freetds
https://martinrichards.tumblr.com/post/28488121620/connecting-to-sql-azure-using-freetds
I would note however, remeber you need to whitelist your PUBLIC IP on the Azure Console SQL server firewall (what you get when you google "what is my IP"). Remember that Azure is sitting out in the cloud, so you need to whitelist the IP it sees
但是,我要注意的是,请记住,您需要在 Azure 控制台 SQL 服务器防火墙上将您的公共 IP 列入白名单(当您在 google 上搜索“我的 IP 是什么”时会得到什么)。请记住,Azure 位于云中,因此您需要将它看到的 IP 列入白名单
回答by Doobi
I'd suggest you look at using oData.
我建议你看看使用oData。
It's a RESTful protocol, and there is already an official objective-C SDK: http://www.odata.org/developers/odata-sdk
它是一个RESTful协议,并且已经有一个官方的objective-C SDK:http: //www.odata.org/developers/odata-sdk