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
To All, I have two different servers,server1 and server2 they have the same databases(did a dump from server1 and restored on server2) now I am using ipx/spx to connect to both the servers on the same network. the problem is I am not able to connect to them when both are online.(using isqlw) i have to switch one of them off to login to another,but i want both of them to be up and running at the same time how to solve this problem? DP
Has anyone experienced timeouts connecting to SQL 2K from a client and also the server console itself. Typically this error occurs on the client: Microsoft OLE DB Provider for SQL Server error `80040e14` OLE/DB provider returned message: Timeout expired conn_info.asp, line 444
Hello everyone, I am experiencing problems connecting to me database from my App. I had created this database and my application that calls all the stored procedures at my old work place. I had then moved it all to my home machine. When I open my connection, I get the error saying, "SQL Server is not available or access is denied"! I have added aspnet user to the users group in the SQL Server, disabled my firewall, made sure that physically in the server view I am able to get to the tables inside of the IDE....but to no success. I have been stuck on this for over two days and need serious help from someone.
Kindly let me know of the reasons and troubleshooting methods for this problem.
Couple of questions for the SQL Server Guru's out there.
SQLServer 2005 Web Hosting Provider
Ok I am developing a Web application in ASP.NET with AJAX, etc. etc. It will be some time before it is ready to roll out. As a mockup I created the same application in Microsoft Access and Visual Basic (VS 2008), which I can link the tables to the hosting provider on the internet. Works very well and speed is very acceptable.
My question is, is how secure is the data that is moving from the local application to SQLServer 2005 with the web hosting provider ? Is there anything that I can do to increase security ?
I am using SQL server 2005 sp1 to work with my applications... and i am using ODBC connection to communicate with SQL serrver...
The connectivity has been working fine for more than a 6 months now .... and suddenly it thows an error ...
"General network error. Check your network documentation.ConnectionRead (recv())."
There about 10 applications accessing SQL server... and all the applications throws this same error...
I intially thought it migjht be bacuase some applications are over utilizing the SQL connection and not closing them properly... but i noticed the connection opened in the Activity monitor are the same as it supposed to be ... no extra unwanted connection opened...
I also noticed that SQLserver.exe process is utilizing almost all the RAM memory and trying to allocate more page memory.... so i restarted the SQL sever service and that reinstated all the connectivity properly....
in couple of days .... the memory utilization again reached the max and this problem started again and i had to restart the SQL server again... and this problem happens every 2 days...
I know SQL server is using up those memory for caching purpose which is normal... but Y would this cause the connectivity to fail...
Is it a problem in SQL server 2005 SP1 ... shd i upgrade it to SP2?
If some of my application is causing this how would i narrow it down to that application and pin point on that particular one?
The thrown error does not have much information for it to guide me in a direction for debugging...
Hello all, I am hoping this is the correct place for this. I have an application that depends on an active connection to Sql Server Express 2005. I am looking for a way is any to check for the existance ofthe server I defined and wether it is online or not. I know I can just catch the error on connection but it takes a bit and I have customers trying to cancel it before it's finished because they think it's locked up. I would like a quick way to check without trying to create a connection if it's online, then if it is, proceed, if not, let the customer know. I was hoping for something like a database server ping of sorts.
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!
I have an application which is under development in VS 2005 but the database is in SQL Server 2000. We are facing some strange problem with the connectivity between VS 2005 - SQL Server 2000. I have tried all the possible ways or solutions i found when searching in google but unable to find a solution.This had become a major challenge for us now to identifiy the root cause of the problem
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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)" Please suggest.
When trying to run a batch of queries (2 queries in the batch) on SQL Server 7.0 from a Windows NT client, I am getting the following error. -------------------------------------------------- [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]ConnectionCheckForData ((null)()). [Microsoft][ODBC SQL Server Driver][TCP/IP Sockets]General network error. See the network mannual. Connection Broken --------------------------------------------------- Here are the points to be noted.
1. The queries work when executed individually. 2. The client can PING the server. 3. I tired changing the default network libraries to 'Named Pipes' but this also returns the following error -------------------------------------------------- [Microsoft][ODBC SQL Server Driver][Named Pipes]ConnectionWrite (GetOverLappedResult()). [Microsoft][ODBC SQL Server Driver]Connection link failed. Connection Broken --------------------------------------------------- 4. the ODBC driver version = 03.70.0623
I've been informed that our data feed systems are going to be shut down and that our data will be residing in Teradata V2R5 databases. I was wondering if anyone knows if you can get connectivity to a Teradata server via Linked Server in the Security folder of SQL Server Enterprise Manager? If no then; Is it possible through a DTS package? Thanks for the info...
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?
Create a linked server to another box. exec sp_serveroption 'RemoteServer', 'connect timeout', '1' exec sp_serveroption 'RemoteServer', 'query timeout', '1'
Pull the network cable from the remote box.
SELECT * from RemoteServer.Database.dbo.Table1
Why does it take almost exactly 21 seconds, every time, before it fails? How can I get it to fail immediately?
I am an application developer with an existing system developer in SQL Server 2005 Express and Visual Studio 2005.
I have installed the system I wrote at a physician's office, and it is working fine on a local computer utilizing XP operating system.
There is a requirement to allow other terminals to connect to this XP terminal to execute the application, so I am exploring possibilities for connecting remotely from the other computers in the physician's office.
I am running Virtual Machine for my client computer.
I modified SQL Server 2005 on my main computer. I enabled both TCP/IP and Named pipes in the SQL Server Surface Area Configuration utility. I also set SQL Server Browser to start automatically.
The local application is successfully connecting with the following connectionstring: Data Source=localhostsqlexpress;Initial Catalog=MedicalDB;Persist Security Info=True;User ID=sa;Password=thepassword
I realize that I would have to substitute the server name for localhost before I could connect from the application, but I wanted to first "connect" to the database from my second machine successfully before I began trying to connect from my application. I can Ping the pc that is running sql server express, I am able to "telnet" my pc that is running SQL Server Express.
Both my computers are in the same workgroup and there is no domain.
There are no aliases in my configuration, and there is no encryption on the server.
Ther error message I recieve is:
Cannot connect to DDD
An error has occurred while attempting connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under default settings SQL Server does not allow remote connections. (providor: Named Pipes Providor, Error: 40 Could not open a conneciton to Sql Server) (Microsofi SQL Server, Error: 1326)
I have an application which uses ADO to connect to Database. DSN name is specified in the connection string used by ADO as part of the application logic.
This application is working perfectly fine when it is run from a Windows 2003 Enterprise Edition (EE) Server and successfully connects to a remote MSSQL 2005 EE Database installed in another Windows 2003 EE Server.
This application is working perfectly fine also when it is run from a Windows 2003 Standard Edition (SE) Server and successfully connects to the local MSSQL 2005 EE Database installed in the same Server.
But this application FAILS to work when it is run from the Windows 2003 SE Server and connecting to the remote MSSQL 2005 EE Database installed in Windows 2003 EE Server. Error returned to the Application has this description: "Provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server"
Can somebody give me more insights into the problem and help me in overcoming the issues in the last scenario?
I have two databases that support two separate applications. Both applications are required to be in sync with one anther. One application is MSSQL 2000 based and the other is Oracle 9.i. Given the complexity of the first application (host), the best solution was to use linked servers to connect the SQL database to the Oracle database.
To prevent imbalances, the host application calls a package in Oracle to update the secondary application before it completes the transaction in SQL. This way, if anything fails at any point, the entire transaction is rolled back and neither databases are updated.
PROBLEM:
Our test system is stand alone but is performing the previously mentioned transaction in the same manner to an Oracle database on a Linux server. After passing testing, we promoted the application to the live system and are experiencing the following error when the transaction attempts to call the Oracle package:
Connectivity error: [Microsoft][ODBBC SQL Server Driver][SQL Server]MSDTC on server XXXXX is unavailable.
I have done some reading, but there really isn€™t much literature on linked servers. Will someone help?
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
am using VS2003 asp.net 1.1 on Windows 2003 sever to access another network server SQL Db. This is the error message...
SQL Server does not exist or access denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.Source Error:
Line 34: 'execute query and return data reader Line 35: Try Line 36: objHelperConnection.Open() Line 37: RunSPReturnDR = objHelperCommand.ExecuteReader(CommandBehavior.CloseConnection) Line 38: 'clean upSource File: c:inetpubwwwrootProtraxxScriptsIncludesdbhelper.vb Line: 36 Stack Trace:
[SqlException: SQL Server does not exist or access denied.] System.Data.SqlClient.ConnectionPool.CreateConnection() System.Data.SqlClient.ConnectionPool.UserCreateRequest() System.Data.SqlClient.ConnectionPool.GetConnection(Boolean& isInTransaction) System.Data.SqlClient.SqlConnectionPoolManager.GetPooledConnection(SqlConnectionString options, Boolean& isInTransaction) System.Data.SqlClient.SqlConnection.Open() chef.dbhelper.DBTools.RunSPReturnDR(String strSP, SqlParameter[] params) in c:inetpubwwwrootProtraxxScriptsIncludesdbhelper.vb:36 chef.Login.Authenticate(String sUserName, String sPassWord) in c:inetpubwwwrootProtraxxLogin.aspx.vb:168 chef.Login.btnSubmit_Click(Object sender, EventArgs e) in c:inetpubwwwrootProtraxxLogin.aspx.vb:90 System.Web.UI.WebControls.Button.OnClick(EventArgs e) System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) System.Web.UI.Page.ProcessRequestMain()
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Ps : This app works on Windows XP and W2k Thanks for any suggestions.
i was tried to install SQL Server 2k Client tools connectivity to my win 95, i was follow the installation procedure, 1). install common library updates for win 95, and then 2). install the server component (client connectivity tools), the installation is running well till copying "Microsoft Data Access Components - MDAC", i got error message : "Installation of the MDAC package failed (-1)". (so the installation doesn't complete).
please anybody help me, what's happen to my computer ????????? :confused:
I like most about SQL Azure is that my client apps can access it from anywhere. No tunneling, VPN, network conflicts, etc. If I can get to the internet, I can connect to my database (firewalls aside). The thing is, at my company, we don't really need or want all of the other features of SQL Azure (hosting, storage, backup, support, etc.). We have our own servers, storage, SQL Server licenses, web sites, etc.So what we'd really like is to be able to "publish" one of our databases to our website and then be able to access it from our ADO.net client applications, just like we do with SQL Azure.
To be clear, I am not talking about writing a bunch of custom WebServices or anything like that. I mean, being able to, say, take one of my Excel sheets that I have right now pulling data from one of our SQL Azure databases, and just changing the server address so that it can connect to one of the company's on-premise databases, while I am working from home or another site, but without me having to tunnel/VPN into the company network.