I have a question about how to connect the database to my website. I have a server on Web Hosting Canada, and I just create a database through cPanel of this server but I don't know how to connect it to my website on the server. Sorry for maybe asking a silly question, I am really new to web dev (just learned for two weeks, know some HTML, css, javascript and node.js). And what else languages I need to learn? I watched a lot of tutorials, but they are all using node.js to build a local server. I think it is different from my situation. Please help, Thanks!
Related
I have a basic reactjs application which has a form that I want on submit, should store the value of input elements(text-boxes, selects and radio buttons), to store the data to the database in azure SQL DB. The react app (front-end only yet) is deployed using the Azure App service.
I have been looking for ways on how to approach this, but the more i explored the more i got confused. The official documentation suggests using tedious, and some sources recommend using express with sequelize, and a few more.
I'm looking for a direction on how to approach this. I, being a beginner in this, am open to suggestions or if someone can direct me to a source that might be of some help.
It sounds like you want to directly connect Azure SQL Database from the front-end of your ReactJS App in a browser. There is a similar SO thread How to connect to SQL Server database from JavaScript in the browser? had been answered for this scenario. But it's impossible for working in modern browsers, because the solution using ActiveXObject only works in the old IE browser.
So a backend server using express for NodeJS or other framework in other language is necessary to get the data submitted from the frontend page of ReactJS page and store to Azure SQL Database using tedious for NodeJS or other ORM framework for other language.
For Node.js, please refer to the offical tutorial Node.js Driver for SQL Server to know how to operate SQL Server at the Node backend.
I have a Server 2012 R2 that I connect through via RDC however we need to have this server be able to access the internet. When I try to access an internal site this seems to work fine. However when I try to access a simple webpage, I cannot get through to any outside site such as bing.com, yahoo.com or google.com.
I'm very new to server administration so any help would be greatly appreciated. I may not understand it (yet) completely though so please bear with me.
FWIW: The overall goal is to have this server run scripts that I write (or have already written) that pull data from various sites. This data is then transformed and uploaded to our databases for analysis.
Thanks in advance and again, please forgive my server administration ignorance.
I would check the settings on the firewall between your server machine and the internet. Can you reach external web sites from a browser running on the server machine?
Note: Exposing a server to the internet is a perilous thing to do.
I'm very new to Sync Framework, Still exploring different possibilities. Here is my Scenario.
We need to have an application (SQL Server and ASP.Net) which is hosted on our web server. Users can register and interact with it online. Another Copy of the application will be installed on our Client's Intranet server. Users can be registered over LAN on this server.
A third copy of the Application (SQL Express) will be installed on various laptops and windows 7 tablets. Users will use the application remotely without connectivity to LAN or internet. Once the device is back in network, it will sync data with the LAN server and LAN Server will sync to the Internet server.
I intend to do this using WCF services and Sync Framework for the sake of security, however I'm open for suggestions. Can someone please suggest me the correct way of doing this and point me to some tutorials samples to do this. I've been struggling with samples available online (mainly this one http://code.msdn.microsoft.com/Database-SyncSQL-Server-e97d1208) for a while and still have no success ..
Feel free to shoot any questions and I will answer them as best as I can.
have a look at this link and ignore/substitute the Azure specific stuff with SQL Server...it has a good discussion on the WCF specific components... Walkthrough of Windows Azure Sync Service Sample
My ISP restricts access to my SQL database hosted there. I can not remotely connect to the database. I would like to set up a local database for development and then be able to publish it. (My isp also does not have front page extensions, so I can not use the one click publish) Does anyone know of any tutorials on how I could accomplish what I want?
I was able to locate a possible solution here: http://weblogs.asp.net/scottgu/archive/2006/12/22/recipe-deploying-a-sql-database-to-a-remote-hosting-environment-part-1.aspx.
Thanks deltree for trying to decipher what I was wanting.
I have a web site that needs to talk to two different databases, one is oracle, the other is SQL server. The web site is being hosted on mac server 10.5. What would be the easiest way to get my web page talking to these two databases? PHP? JDBC? Perl? Something else? So far I haven't gotten anything to work.
Most frameworks such as Django/Rails etc should talk with two databases. The fact that it's a Mac Server is probably largely irrelevant. You should pick a language/framework and ask the appropriate questions about talking to two database engines.