ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 5th, 2003, 09:35 AM
pgokcen pgokcen is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 44 pgokcen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 29 sec
Reputation Power: 6
Sql connection error

Hi;

I have the following error and cannot find why?
Please help me!
Thank you......
Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

/gokmen/g1.asp, line 18

ASP Code:

<%
Dim num,ad,soyad,bolum,conn,SQLstmt,rs
num=request.form("num")
ad=request.form("ad")
soyad=request.form("soyad")
bolum=request.form("bolum")

set conn=server.CreateObject("ADODB.Connection")
conn.Open "Provider=SQLOLEDB;Data Source=gokmen;Database=gokmen;"
'User Id=administrator;Password=;

SQLstmt="INSERT INTO deneme1 (num,adi,soyadi,bolumu) VALUES ('" &num& "','" &ad& "','" &soyad& "','" &bolum& "')"
Rs.Open Strstmt, conn, adOpenKeyset, adLockOptimistic
set rs=nothing
conn.close

%>

Reply With Quote
  #2  
Old September 5th, 2003, 12:33 PM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 7
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
Quote:
"Provider=SQLOLEDB;Data Source=gokmen;Database=gokmen;"
'User Id=administrator;Password=;


You probably need to add "Server=xxxxxx;" in there.
__________________
- Rogier Doekes

Reply With Quote
  #3  
Old September 8th, 2003, 01:49 AM
pgokcen pgokcen is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 44 pgokcen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 29 sec
Reputation Power: 6
Again error

Hi;

I am getting error again:

Microsoft OLE DB Provider for SQL Server error '80004005'

Invalid connection string attribute

/gokmen/g1.asp, line 18


Line 18:

conn.Open "Provider=SQLOLEDB;DataSource=gokmen;Database=gokme n;Server='10.1.0.74';User Id=administrator;Password=;"

I am getting the same error if I do not put ' (no matter)


If you help me I would be reaaly happy thanks...

Reply With Quote
  #4  
Old September 8th, 2003, 03:36 AM
rdoekes rdoekes is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Strasbourg, France
Posts: 181 rdoekes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 20 sec
Reputation Power: 7
Send a message via AIM to rdoekes Send a message via Yahoo to rdoekes
try this:
Code:
conn.Open "Provider=sqloledb;" & _ 
           "Data Source=gokmen;" & _
           "Initial Catalog=gokmen;" & _
           "User Id=administrator;" & _
           "Password="

Reply With Quote
  #5  
Old September 8th, 2003, 04:21 AM
pgokcen pgokcen is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 44 pgokcen User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 29 sec
Reputation Power: 6
Again error

Hi;

Microsoft OLE DB Provider for SQL Server error '80004005'

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.

/gokmen/g1.asp, line 18

What is the aim of the User Id here ??
I think the error is related with this

Reply With Quote
  #6  
Old September 8th, 2003, 08:47 AM
stumpy's Avatar
stumpy stumpy is offline
May contain nuts.
Dev Articles Regular (2000 - 2499 posts)
 
Join Date: Aug 2002
Location: Sydney, AU
Posts: 2,058 stumpy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 8 m 57 sec
Reputation Power: 9
Send a message via ICQ to stumpy Send a message via MSN to stumpy
No - the error is saying it can't find the server/database.
You need to specify where the database can be found (server)
Do not put your IP address (or server name) in quotes.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > Sql connection error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT