Where to place Connection String of SQL Server (hosted on Azure) in Web Forms Website
I am trying to use Microsoft Azure to host an ASP.NET Web Forms website, and connecting an SQL Server database (also hosted on Azure) to it.
- I created the SQL Server database and have added a table to it, using Microsoft SQL Server Management Studio
- I have published the website, and it is currently hosted on Azure.
- When I created the website, I linked the above SQL database to it. So the database table displays in 'Server Explorer' in Visual Studio when I open my website.
My problem now is that I don't know how to retrieve (SELECT) data from the database table, and display it on the website.
On Azure portal, I found the Database connection strings (ADO.NET (SQL authentication)), but I don't know where I need to copy and paste this connection string within my project.
Can someone please help me and advise me how to proceed?
Thanks a lot in advance!
FYI Released: Microsoft OLE DB Driver for SQL Server
Hi ADO is undeprecated. There is a new release of ADODB driver for SQL Server. It supports SQL Server from 2012 to 2017 and Azure also. Follow the link: https://blogs.msdn.microsoft.com/sqlnativeclient/2018/03/30/released-microsoft-ole-db-driver-for-sql-server/0 votes1 answerJosé Mª Fueyo7 days ago
Server and Localhost database access problem
Hi. I have an asp.net web site on our internal server. And I have a program that is using localhost sql server database. I want to access these localhost database when I open the web page on my computer.0 votes0 answersSüleyman İbrahimbaş1 month ago
Logged in windows user is different than a domain user has SQL access
I have to use fixed Domain user in connection string to connect to SQL server. But the logged user for windows is different. Is there any solution . this is requirement of our project. Please help .0 votes0 answersAsmita Kudale1 month ago
Error connection to SQL Server 2014 via dotnet
I'm new into using Automations and dotnet, so i'm trying to learn (if I don't explain correct ). I'm trying to connect from NAV 2016 to an external SQL Server 2014 to read and post data to this.0 votes2 answersMads Morre6 months ago
sql server tcp connection timed out
i have installed SQL server 2016 on a VPS that is running Win server 2016, i have enabled TCP/IC conectivity and made inbound rules for ports 1433,1434 and SQLSERV.exe.0 votes2 answersReza Deabae6 months ago
Connection String for a Hosted Database (Domain/Web hosting Provider) --- Windows Forms
I have domain name, and host account with a service provider. I want to host a sql server database through the service provider. I'm developing a windows forms application that I want to access this database. Whats the way to go with this situation?0 votes2 answersOageng Escobar Baruti7 months ago
Error with ODBC Connection
I am getting error as below: ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified I have installed the ODBC driver to connect to SQL server.0 votes1 answeruser8 months ago
How to create automatic connection string and attach database
Hi I made a program in visual c# 2013 and aql 2012.i want to create connection string that automatically use and setup in a system with sql express.and so automatically attach database.how can i do????please help me0 votes2 answersEhsan Arian8 months ago
System.ArgumentException: Keyword not supported: 'provider'
Hi , kindly assist.. am trying to import data from excel to sql database. am using excel 2016. am getting the following error " "System.ArgumentException: Keyword not supported: 'provider"0 votes1 answerjohn kanyora8 months ago
trouble to run my app when installing on another system
I have trouble to run my app when installing on another system the language is c# and I used DataAdapter and drag table to form to connect to db. when I Install on another system it gives sql server error :0 votes1 answerunknown8 months ago
- Load more posts