I need to connect database engine through SQL Server Authentication and want to disable connectivity through Windows Authentication. Only wanna connectivity through SQL Server, if this is possible then how to proceed further?
Dear all,I am having trouble connecting my asp.net pages to a sql server database.I have the database running in visual studio and i can query it using the sql pane.My problem is that i don't know where to put the ADO.net query string or what it should look like.Does visual studio provide a wizard for doing this?Also is it possible to use CSS to change ASP.NET tags, i.e. asp:LabelAny help would be appreciated.Cheers
Im trying to connect IBM U2 XML Database using my ms.net Server explorer.but server not itself getting detected.
Prerequisites :i have installed the following things in my system 1. U2 on my machine and created databaes and tables. 2. IBM Database Add-ins for Vs.net 2005
below are the following steps im trying to connect IBM U2 Xml Database
1.Server Explorer ->Addconnection Datasource : IBM DB2,IDS and U2 servers
2.in server tab its not showing my server which created using U2
I'm setting up a simple SSRS implementation for a non-profit organization, using two servers hosted at a data center. The first server has SQL Server Standard Edition and Reporting Services installed. I've designed and deployed a number of useful reports on this server.
I was hoping to isolate this first server by installing IIS and SSRS on the second server, have users browse from the Internet to that second server (over SSL, of course), and have all reports served up from databases (and, presumably, the report server database) on the first server.
During the installation of SSRS on the second server, however, I'm being prompted to specify the service account. According to the help text:
"Reporting Services. Service accounts are used to configure a report server database connection. Choose a domain user account if you want to connect to a report server database on a remote SQL Server instance. If you are using a local report server database, you can use a domain user account or Local System to run the service."
I believe I want to configure SSRS to connect to a report server database on a remote SQL Server instance; therefore, it appears that I need to enter a domain user account. The only problem is, neither server belongs to a domain; they are members of a simple two-server workgroup.
Does SSRS, configured to connect to a report server database on a remote SQL Server instance, require a domain? Does what I'm hoping to accomplish require a domain? Creating a two-server domain seems like overkill for this implementation, doesn't it?
I appreciate any comments and suggestions. Thanks!
We are in web site development company,Previously we don't have proxy configuration, after implementing Proxy , we have an issue to connect a remote database.
The error pops "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. Error 53".
I want to migrate DB from sybase to SQL server 2012 and i am using SSMA for it. Till yesterday it was working fine. Today when i try connecting sybase i am getting below error.
Unable to find specified provider.Error occurred while establishing connection to Sybase server. If you have 64-bit connectivity components installed on the machine, you can run 64-bit version of SSMA application whose shortcut can be found under the Programs menu. Or you can install the 32-bit connectivity libraries form Sybase product media or download it from Sybase web site.
I apologize if this is not the correct forum for this posting. Looking at the descriptions, it appeared to be the best choice.
I am running Windows XP Pro SP2. I have installed the SQL Native Client for XP. However, when I try to add a new data source through ODBC Connection Manager, SQL Native Client is not listed as an option. I have followed this procedure on three other systems with no problems. What would be causing the SQL Native Client to not show up in the list of available ODBC data sources?
hi, how to connect the database for first time iam working for a website in that i have a form. how to connect the form to the database. throw enterprice managment thanks
Hi im new to ASP.NET.. can anyopne pelase tell me how to make database connectivity with sql server 2000.i need to insert data into sqlserver2000 database from an ASP.NET Web form. please provide me with a asample code.thank you
I am using SQL SERVER 2000 and asp.net How shoul i connect using OLEDB provider?. In connection string, i am giving Provider=SQLOLEDB.1,datasource . It's giving error in conn.open() that login failed for database. i am also poroving username and password in connection string, so i want code for the same. awaiting for reply...
I'm using Visual Studio 2005 and want to connect my C# application to a SQL mobile database. So far I have added one via Project->Add component and can create tables and manipulate fields.
Howver I can't manage to manipulate it via my code. All I seem to be able to access is a <database name>DataSet object and I cant see how that helps. Do I need to import any new libraries? I'm familiar with datasets with VBA so was expecting something similar.
We are trying to setup a role based security access within our client software so that users have read only access to the database. Right now we are not able to connect to the database. This is a blocking issue for us on the project right now
I'm trying to connect to a database to carry out a simple task but my connection keeps returning the error Login failed for user 'myComputerNameASPNET'. I can use the same connection string to connect from both a desktop app and a web service. I can even connect using the same code while in debug and stepping through the code line-by-line. And yet when I run the web page normally I get the above error. Why is this? I've tried several connection strings but they all return either the above error or "Not associated with a trusted connection".
Recently I had hosted a web site, and I had tested a database connectivity to check. After giving the connectivity to the database it had given me the following error:
Server Error in '/' Application.
The connection name 'masarad_jagdishConnectionString1' was not found in the applications configuration or the connection string is empty.
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:1. Add a "Debug=true" directive at the top of the file that generated the error. Example: <%@ Page Language="C#" Debug="true" %>or:2) Add the following section to the configuration file of your application:<configuration> <system.web> <compilation debug="true"/> </system.web></configuration>Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario. Stack Trace:
[InvalidOperationException: The connection name 'masarad_jagdishConnectionString1' was not found in the applications configuration or the connection string is empty.] System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString(String connectionStringName) +3047985 ASP.data_aspx.__BuildControlSqlDataSource1() +81 ASP.data_aspx.__BuildControlContent1(Control __ctrl) +106 System.Web.UI.CompiledTemplateBuilder.InstantiateIn(Control container) +12 ASP.masterpage_master.__BuildControlContentPlaceHolder1() +105 ASP.masterpage_master.__BuildControlform1() +196 ASP.masterpage_master.__BuildControlTree(masterpage_master __ctrl) +106 ASP.masterpage_master.FrameworkInitialize() +45 System.Web.UI.UserControl.InitializeAsUserControlInternal() +31 System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +2028700 System.Web.UI.Page.get_Master() +48 System.Web.UI.Page.ApplyMasterPage() +18 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint My connection in the web config file given is correct. I check the test connection is was also successful My web site link is as follow http://www.masarada.com/hardware.aspx after opening the site click on the hyperlink:-database. kindly help me in this regard. B.Jagdish Rao
Hi All, I am a beginner in ASP.NET and trying to access sql database from using C# language thru ASP.NET . I hv tried with below code but could not able to make out. connection = new SqlConnection("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=ServerName;"); connection.Open(); dataadapter = new SqlDataAdapter("select * from customers", connection);dataset = new DataSet(); dataadapter.Fill(dataset, "table1"); DataGrid1.DataSource = dataset; DataGrid1.DataMember = "table1";
Am getting the error - System.Data.SqlClient.SqlException: Login failed for user 'ServerNameASPNET'. Please help.
I am using java applications to connect to my MS SQL Server database.I am using ODBC for database connectivity.If i am running my java applications in a remote PC and try to connectto database server, unless i login to theserer, i am unable to connect to database.If a login to database server with it's username and password, thenthe database is getting connected.It is not correct to login to database server for databaseconnectivity.what is the solution for this?
Dear SSIS experts, I was wondering if there's such a thing that we could assign the database connection on the fly dynamically? so that I save the connection string or the database name somewhere and SSIS reads it on load time or something.. Thank you
A couple of days ago I installed SQL Server 2005 developer. To pave the way for this I removed SQL Server 2000 and 2005 Express. Since then I've been unable to connect from any of my applications or websites in Visual Studio 2005 to either:- my new 2005 Developer database engine- my colleagues 2005 developer database engine. My colleague can connect to my databases from his visual studio on his machine. I am receiving unspecified OleDb errors.Anyone else had this happen? Anyone know where I should start looking? I've uninstalled all .Net frameworks and re-installed 1.1 and 2.0.Many thanks, Sam
Hi, A third party development company is creating a third party application for us in PHP and uses a MYSQL database. The app is an extension of our website which is developed in .NET and uses a MSSQL 2005 database. There are some cases where the two databases require connectivity since a few fields need to relate. We are having issues connecting the two databases on the server and after reading some forums have identified it to be a configuration issue.
I was wondering if anyone could be of any help in solving this issue, or lead us in the right direction (i.e. where to begin, forums, etc.). Here is a description and some questions from our developer:
--------------------------- We are trying to get a PHP application (.php pages running on the webserver which is the same physical machine as the MS SQL server) to connect to the database (MS SQL server). In order to facilitate this, php.ini was configured in the following manner:
mssql.secure_connection = ON extension=php_mssql.dll
We ensured that IIS/Windows was setup properly too: System32 and php both contain ntwdblib.dll ver 2000.80.194.0 enable pipe name protocol [Default was disable] enable TCP/IP IP1 [Default was disable]
MS SQL Server is set to Windows AND SQL server authentication (Mixed mode).
When the PHP application attempts to connect to the database by using: mssql_connect('localhost', '<userid>', '<password>')
produces this error message: Login failed for user 'MAILIUSR_<computername>'. (severity 14)
Why doe this occur? Why is this IUSR userid being used? the userid we sent in with PHP was a sql userid that we know works (we use it with .NET, and to connect to the database remotely). Also, why is it using the MAIL domain? In anycase, shouldn't this IUSR userid work? it's a valid windows account, and mixed mode authentication is allowed.
------------------------- Any assistance would be greatly appreciated!
We recently had a problem were a webserver lost connection to sql 2000 database after we put in a new router. When we failed back to old router it was able to connect to database again. It is using a non standard port 2125 to connect to sql database. Why would a new router cause connection problems to a database.
hai, I am working on ASP.NET 2003 with SQLServer2000. My application requires to be connected to the Database which is there in my Headoffice. My SQLServerName is "MyDBServerTestDB" Database Name is "WebTO", UserID="******" and Password="******" My Remote Server IP Address is "192.168.1.2" and its Static IP is "58.93.61.235" I have specified the Connection string for my Remote Server as "Provider=SQLOLEDB.1;Server=58.93.61.235TestDB;UID=******;PWD=******;Database=WebTO" (or) "Provider=SQLOLEDB.1;Server=58.93.61.235TestDB,1433;UID=******;PWD=******;Database=WebTO" (1433 is the Port number of the Remote SQLServer) but it is giving the error " SQL Server does not exist or access denied". if i execute the same application at my Headoffice (Remote Server) by changing the Connection string as "Provider=SQLOLEDB.1;Server=192.168.1.2TestDB;UID=******;PWD=******;Database=WebTO" then, it is working fine. Can anyone tell me where i went wrong or what i have to specify in my Connection string so that i can access my Remote Database Server. Thanks in Advance, Srinivas.
Hi, I'm using SQL Express to run DotNetNuke on my own Windows 2003 server. DotNetNuke(DNN) copies a database on to the server from it's installation files and during the installtion process it fills the database with starter data. That process works fine.
But the minute I attach to the database in SQL Server Management Studio Express (MSE), my web app loses connectivity to the database. When browsing to the default.aspx, I see the following message: Error Installing DotNetNuke Current Assembly Version: 04.03.05 ERROR: Could not connect to database specified in connectionString for SqlDataProvider
(don't be fooled by the error message, Dot Net Nuke was fully installed and working before I attached to it with Management Studio Express)
Does anyone know the trick to getting the asp.net app talking to the database again? I'm using Windows Authentication. I have verified that Management Studio Express is what is messing up my connection. Any help is appreciated.
I have already become aware that I must disconnect from the database (in Management Studio Express) for the web app to connect properly. I have already tried that. Same error. So far for me, it seems that simply attaching to the database with Management Studio Express breaks my database connectivity.
Hi: I m in new in ASP.net and can't connect sql server db with ASP.net.I write exact code.but it give error in connection string and server error some time.I found that error is in web.config file.can any one have running project of asp.net with sqlserver db.. if any one have then mail the project at this mail address.. ray_boby@hotmail.com
I am using webforms for ASP .NET which has code in C#. My database is running on SQL Server 7. Whats the best way to connect to database. I have tried ODBC connection through myConnection=new SqlConnection(ConfigurationSettings.AppSettings["dsn"]);but it gives me an error that can not connect to the SQL Server 2005 or it does not allow remote connections though it is running SQL Server 7 and not SQL Server 2005. Thanks in advance.
I am trying to connect to my dev Sql server instance remotely from my developer edition and I get the following error
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server, Error: -1)
i Made sure that the following are complete
# [Link] Enable the TCP/IP protocol using the Surface Area Configuration Utility # [Link] Make sure the TCP/IP protocol is enabled in the SQL Server Configuration Utility # [Link] Make sure the SQL Server browser is started
We have a DB2 server which is linked to our SQL Server 2005 database. The link is through ODBC connection. Now, we are able to access some of the tables without any problems. But couple of tables are not accessible and we get following error::"
"com.ibm.db.DataException: A database manager error occurred. : [IBM][CLI Driver][DB2/NT] SQL1822N Unexpected error code "08S01" received from data source "TESTPROD". Associated text and tokens are "Communication link failure". SQLSTATE=560BD "
Any ideas on why this is happening and how to resolve this?
hi i am using sql server 2000 i want to connect from asp.net i am confused with web.config what is this for, to connect should i edit it or simple connectivity is also posible if u know any tutorial please refer me which will guide for database connectivity faisal iqbal ch
I had SQL Server working without a problem on my laptop until I changed the identification name of my laptop to make it more recognisable when I connect to a LAN. However, since I've changed my laptops name, my local SQL Server service wont run and I cant connect to my local databases. I can connect to remote SQL Servers though. If I change my laptops name back to what it was before, it still doesnt work. This has happened in the past and the only way I could solve the problem then was to uninstall SQL Server 7, remove all registry keys referring to it then reinstall it. I dont want to do all that again so....HELP!!!???! I'd really appreciate any help anyone could give me. Please email me at adrianmhills@hotmail.com