简体   繁体   English

帮助将条目插入到Azure DB

[英]helping inserting entries to Azure DB

Im just starting out using Azure and i have minimal experience with SQL, so I'm a little confused. 我刚开始使用Azure,而我对SQL的经验很少,所以我有些困惑。 I set up my Azure Webapp to pull from a Git repository on bitbucket. 我将Azure Webapp设置为从bitbucket的Git存储库中提取。 I successfully linked those two together, and pushes made to bitbucket update my site. 我成功地将这两个链接在一起,并推动bitbucket更新了我的网站。 What I am having trouble doing is linking my database on Azure to this site, so that I can make data entry forms and insert that info as records onto this database. 我遇到的麻烦是将Azure上的数据库链接到此站点,以便我可以制作数据输入表单并将该信息作为记录插入到此数据库中。 Im just starting out simple to learn the basics. 我只是从简单开始学习基础知识。 I have a table names Users with the elements, id(which is set up as IDENTITY so it sequentially creates a unique id number), username, password, and email. 我有一个名为Users的表,其中包含id(设置为IDENTITY,因此它会顺序创建一个唯一的id号),用户名,密码和电子邮件。 I can pull the info from the HTML document and everything just fine, but how do I correctly link my DB and its tables using HTML, js, and azure? 我可以从HTML文档中提取信息,一切都很好,但是如何使用HTML,js和azure正确链接数据库及其表? Ill post any additional info that will be necessary, i dont even know where to begin on this really. 病态发布任何其他必要的信息,我什至不知道从哪里开始。

Ill also add im using Visual Studio for creating tables and entities and most DB management. 病态还使用Visual Studio添加im来创建表和实体以及大多数数据库管理。

Thanks in advance. 提前致谢。

How to access your database depends on the database you are using and the server side programming language. 如何访问数据库取决于您使用的数据库和服务器端编程语言。 From the tags you used in your question I assume you are using the mysql database provided by clear db through the Azure Management Portal. 根据您在问题中使用的标签,我假设您正在使用Azure数据库通过Azure管理门户提供的mysql数据库。 You can not access your database right from JS. 您不能直接从JS访问数据库。 As you are using VS I guess you are using asp.net on the server side. 当您使用VS时,我想您正在服务器端使用asp.net。 If using asp.net this article might help: https://msdn.microsoft.com/en-us/library/ms178371%28v=vs.100%29.aspx 如果使用asp.net,则本文可能会有所帮助: https : //msdn.microsoft.com/zh-cn/library/ms178371%28v=vs.100%29.aspx

If you created a ms sql database through the SQL Database service in MS Azure you also need to check the firewall settings to allow access from your app. 如果您通过MS Azure中的SQL数据库服务创建了ms sql数据库,则还需要检查防火墙设置以允许从您的应用访问。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM