473,395 Members | 1,473 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,395 software developers and data experts.

I'm retarded please help

3
I am very much a beginner in dealing with connection statments. I am getting the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/default.asp, line 32



Here is my connection include:


<%
FileName="Connection_odbc_conn_dsn.htm"
Type="ADO"
HTTP="false"
Catalog=""
Schema=""
var MM_connCustomers_STRING = "dsn=access_customers2.dsn;"
%>

Here is my javascript page coding:

<%@LANGUAGE="JAVASCRIPT"%>

<!--#include file="Connections/connCustomers.asp" -->
<script language=vbscript runat=server>
cr = Request.Form("cbxRemember")
If (cr = "yes") Then
Response.Cookies("ckPassword") = Request.Form("txtPassword")
Response.Cookies("ckPassword").Expires = Date + 90

End If

</script>
<script language=vbscript runat=server>
cr = Request.Form("cbxRemember")
If (cr = "yes") Then
Response.Cookies("ckUserID") = Request.Form("txtusername")
Response.Cookies("ckUserID").Expires = Date + 90

End If

</script>
<%
var rsLogin = Server.CreateObject("ADODB.Recordset");
rsLogin.ActiveConnection = MM_connCustomers_STRING;
rsLogin.Source = "SELECT * FROM customers";
rsLogin.CursorType = 0;
rsLogin.CursorLocation = 2;
rsLogin.LockType = 3;
rsLogin.Open();
rsLogin_numRows = 0;
%>
<%
// *** Validate request to log in to this site.
var MM_LoginAction = Request.ServerVariables("URL");
if (Request.QueryString!="") MM_LoginAction += "?" + Request.QueryString;
var MM_valUsername=String(Request.Form("txtusername")) ;
if (MM_valUsername != "undefined") {
var MM_fldUserAuthorization="AccessGroup";
var MM_redirectLoginSuccess="LoginOK.asp";
var MM_redirectLoginFailed="Register.asp";
var MM_flag="ADODB.Recordset";
var MM_rsUser = Server.CreateObject(MM_flag);
MM_rsUser.ActiveConnection = MM_connCustomers_STRING;
MM_rsUser.Source = "SELECT ID, UserID, Password, AccessGroup, PA, ITB, PDA, UNV1, UNV2, UNV3, UNV4, UNV5, UNV6, UNV7, ICMS, CFocus, Formation";
if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization;
MM_rsUser.Source += " FROM customers WHERE UserID='" + MM_valUsername + "' AND Password='" + String(Request.Form("txtpassword")) + "'";
MM_rsUser.CursorType = 0;
MM_rsUser.CursorLocation = 2;
MM_rsUser.LockType = 3;
MM_rsUser.Open();
if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
// username and password match - this is a valid user
Session("MM_Username") = MM_valUsername;
Session('svID') = MM_rsUser.Fields('ID').Value;
Session('svAccessGroup') = MM_rsUser.Fields('AccessGroup').Value
Session('svPA') = MM_rsUser.Fields('PA').Value;
Session('svITB') = MM_rsUser.Fields('ITB').Value;
Session('svPDA') = MM_rsUser.Fields('PDA').Value;
Session('svUNV1') = MM_rsUser.Fields('UNV1').Value;
Session('svUNV2') = MM_rsUser.Fields('UNV2').Value;
Session('svUNV3') = MM_rsUser.Fields('UNV3').Value;
Session('svUNV4') = MM_rsUser.Fields('UNV4').Value;
Session('svUNV5') = MM_rsUser.Fields('UNV5').Value;
Session('svUNV6') = MM_rsUser.Fields('UNV6').Value;
Session('svUNV7') = MM_rsUser.Fields('UNV7').Value;
Session('svICMS') = MM_rsUser.Fields('ICMS').Value;
Session('svFocus') = MM_rsUser.Fields('CFocus').Value;
Session('svFormation') = MM_rsUser.Fields('Formation').Value;
if (MM_fldUserAuthorization != "") {
Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorizati on).Value);
} else {
Session("MM_UserAuthorization") = "";
}
if (String(Request.QueryString("accessdenied")) != "undefined" && true) {
MM_redirectLoginSuccess = Request.QueryString("accessdenied");
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginSuccess);
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginFailed);
}
%>
<script language=vbscript runat=server>
' *** Set A Session Variable
' *** MagicBeat Server Behavior - 2006 - by Jag S. Sidhu - www.magicbeat.com

</script>

The site is bieng hosted by godaddy and a valid dsn is in place under the name:
access_customers2.dsn

Please help this is driving me nuts. It will serve to be a login and customer information update.

Thanks
Nov 1 '06 #1
3 2514
PEB
1,418 Expert 1GB
I think that you can use the ODBC to link your external tables fto Access and then you can treat them as an ordinary Acces table :)
Nov 4 '06 #2
I got the same problem like u, unfortunately godaddy.com's tech support is helpless, plus no refund if cancel, totally rip off. I beleive godaddy.com should help us to setup the site and make it work in order to earn our business.



I am very much a beginner in dealing with connection statments. I am getting the following error:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

/default.asp, line 32



Here is my connection include:


<%
FileName="Connection_odbc_conn_dsn.htm"
Type="ADO"
HTTP="false"
Catalog=""
Schema=""
var MM_connCustomers_STRING = "dsn=access_customers2.dsn;"
%>

Here is my javascript page coding:

<%@LANGUAGE="JAVASCRIPT"%>

<!--#include file="Connections/connCustomers.asp" -->
<script language=vbscript runat=server>
cr = Request.Form("cbxRemember")
If (cr = "yes") Then
Response.Cookies("ckPassword") = Request.Form("txtPassword")
Response.Cookies("ckPassword").Expires = Date + 90

End If

</script>
<script language=vbscript runat=server>
cr = Request.Form("cbxRemember")
If (cr = "yes") Then
Response.Cookies("ckUserID") = Request.Form("txtusername")
Response.Cookies("ckUserID").Expires = Date + 90

End If

</script>
<%
var rsLogin = Server.CreateObject("ADODB.Recordset");
rsLogin.ActiveConnection = MM_connCustomers_STRING;
rsLogin.Source = "SELECT * FROM customers";
rsLogin.CursorType = 0;
rsLogin.CursorLocation = 2;
rsLogin.LockType = 3;
rsLogin.Open();
rsLogin_numRows = 0;
%>
<%
// *** Validate request to log in to this site.
var MM_LoginAction = Request.ServerVariables("URL");
if (Request.QueryString!="") MM_LoginAction += "?" + Request.QueryString;
var MM_valUsername=String(Request.Form("txtusername")) ;
if (MM_valUsername != "undefined") {
var MM_fldUserAuthorization="AccessGroup";
var MM_redirectLoginSuccess="LoginOK.asp";
var MM_redirectLoginFailed="Register.asp";
var MM_flag="ADODB.Recordset";
var MM_rsUser = Server.CreateObject(MM_flag);
MM_rsUser.ActiveConnection = MM_connCustomers_STRING;
MM_rsUser.Source = "SELECT ID, UserID, Password, AccessGroup, PA, ITB, PDA, UNV1, UNV2, UNV3, UNV4, UNV5, UNV6, UNV7, ICMS, CFocus, Formation";
if (MM_fldUserAuthorization != "") MM_rsUser.Source += "," + MM_fldUserAuthorization;
MM_rsUser.Source += " FROM customers WHERE UserID='" + MM_valUsername + "' AND Password='" + String(Request.Form("txtpassword")) + "'";
MM_rsUser.CursorType = 0;
MM_rsUser.CursorLocation = 2;
MM_rsUser.LockType = 3;
MM_rsUser.Open();
if (!MM_rsUser.EOF || !MM_rsUser.BOF) {
// username and password match - this is a valid user
Session("MM_Username") = MM_valUsername;
Session('svID') = MM_rsUser.Fields('ID').Value;
Session('svAccessGroup') = MM_rsUser.Fields('AccessGroup').Value
Session('svPA') = MM_rsUser.Fields('PA').Value;
Session('svITB') = MM_rsUser.Fields('ITB').Value;
Session('svPDA') = MM_rsUser.Fields('PDA').Value;
Session('svUNV1') = MM_rsUser.Fields('UNV1').Value;
Session('svUNV2') = MM_rsUser.Fields('UNV2').Value;
Session('svUNV3') = MM_rsUser.Fields('UNV3').Value;
Session('svUNV4') = MM_rsUser.Fields('UNV4').Value;
Session('svUNV5') = MM_rsUser.Fields('UNV5').Value;
Session('svUNV6') = MM_rsUser.Fields('UNV6').Value;
Session('svUNV7') = MM_rsUser.Fields('UNV7').Value;
Session('svICMS') = MM_rsUser.Fields('ICMS').Value;
Session('svFocus') = MM_rsUser.Fields('CFocus').Value;
Session('svFormation') = MM_rsUser.Fields('Formation').Value;
if (MM_fldUserAuthorization != "") {
Session("MM_UserAuthorization") = String(MM_rsUser.Fields.Item(MM_fldUserAuthorizati on).Value);
} else {
Session("MM_UserAuthorization") = "";
}
if (String(Request.QueryString("accessdenied")) != "undefined" && true) {
MM_redirectLoginSuccess = Request.QueryString("accessdenied");
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginSuccess);
}
MM_rsUser.Close();
Response.Redirect(MM_redirectLoginFailed);
}
%>
<script language=vbscript runat=server>
' *** Set A Session Variable
' *** MagicBeat Server Behavior - 2006 - by Jag S. Sidhu - www.magicbeat.com

</script>

The site is bieng hosted by godaddy and a valid dsn is in place under the name:
access_customers2.dsn

Please help this is driving me nuts. It will serve to be a login and customer information update.

Thanks
Dec 2 '06 #3
Cori
1
jegray did you ever find the solution? It's been years since I've used ASP and I usually used VBScript not Javascript. Any help that goDaddy has provided has been with examples of VBScript and they say it's a coding issue and won't help. bleh to them! :)

I have pretty much the same problem where "Data source name not found and no default driver specified" is the error I get.

My code looks similar to above, any thoughts from anyone on what is missing?

Thanks, Cori
Nov 7 '07 #4

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

Similar topics

13
by: J. Campbell | last post by:
I'm wanting to output a text header file in front of the data portion of an output file. However when I use "\n" or "endl" as end of line, it just puts a 0x0a in the file(which is...
0
by: Kurt Watson | last post by:
I’m having a different kind of problem with Hotmail when I sign in it says, "Web Browser Software Limitations Your Current Software Will Limit Your Ability to Use Hotmail You are using a web...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
5
AccessIdiot
by: AccessIdiot | last post by:
Or maybe why my username is AccessIdiot :P I just discovered the linked form functionality of the form wizard. I dumped the fields from two tables linked by a Survey_ID (autonumber primary key in...
9
by: senfo | last post by:
I realize it's Friday and I'm probably already on vacation for the remainder of the day; but, I have a really, really stupid question. Is there a bug in the .NET 2.0 Framework in regards to the...
1
by: gtawebstudios | last post by:
Hello Everyone, I just finished creating a nice website for my search engine optimzation company using Macromedia Dreamweaver MX. I bought a web template from Template Monster.com and edited...
6
by: =?utf-8?B?4piG4piG4piG4piG4piGIFPDvCBLZWl0aCBDaGFr | last post by:
Ok. Let's say Im writing a game and I have a class table for my character's stats. (Don't worry about classes yet ,you'll run into them soon enough). Say this table includes all his stats, age,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.