473,398 Members | 2,380 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

connection to database

I have created the table in sql plus. In sql,the followings are the input
User name: trainee
Password: trainee
Host string: traindev
There is a table named ‘reg’.
I am using ASP code to connect to the database.
The connection code:
Expand|Select|Wrap|Line Numbers
  1. <%
  2. Dim objConn
  3. Set objConn=Server.CreateObject("ADODB.Connection")
  4. objConn.Provider="MSDAORA"
  5. objConn.ConnectionString= "userid=trainee; password=trainee; datasource=traindev"
  6. objConn.Open
  7. %>
But it shows the following error:
Error Type:
Microsoft OLE DB Provider for Oracle (0x80004005)
ORA-12203: TNS:unable to connect to destination
Jun 2 '11 #1
1 1470
jhardman
3,406 Expert 2GB
that doesn't look like a very standard connection string. I could be wrong. Is traindev a DSN you created, or the name of the Oracle server?
Jun 8 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Bina Desai | last post by:
I get the following error: Error Type: Microsoft VBScript runtime (0x800A01A8) Object required: '' /myweb4/authorised_user_page.asp, line 70 and line 70 of my code is: <% rsCheckUser1.Open...
1
by: Barnes | last post by:
I have an asp form that sends data to a redirect page with SQL using JScript. There is a function that I'm using called replace(). The form submits without errors and goes to the redirect page but...
6
by: ABC | last post by:
Follow my project, the connection database will not use Trused Connection from web server to database server. How to set DAAB's connection string with No Credentials Access?
0
by: amber | last post by:
Hello, Not sure what is going wrong here. I just upgraded to .NET 2005 and SQL Server Express 2005 from .NET 2003 and MSDE. I've been working on a huge project for ages, which I 'converted' to...
8
by: Ike | last post by:
Is anyone aware of a means of connection pooling (to MySQL, say) in php? Thanks, Ike
3
by: OutdoorGuy | last post by:
Greetings, I am attempting to use VB.NET 2003 to loop through all of the tables in a SQL Server 2005 database. However, I have yet to figure this out. Does anyone have any suggestions? My...
2
by: bylum | last post by:
help find error that connection database and jsp.. <% String connectionURL = "jdbc:mysql://localhost:3306/webaudio?user=root"; Connection connection = null; Statement statement = null;...
1
by: bylum | last post by:
help find error that connection database and jsp.. <% String connectionURL = "jdbc:mysql://localhost:3306/webaudio?user=root"; Connection connection = null; Statement statement = null;...
0
by: VELA | last post by:
I INSTALLED ORACLE 9i in lenovo3000 c100 in window xp home there is a problem of connection database and the error is "ORA 12560 TNS:protocol adaptor error" if anyone have tha answer for the...
4
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
When I start the Visual Studio .NET 2005 on client machine, I select Tools and database connection (Database: SQL Server, security: windows authentication. Server: Server Machine name (not in the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.