473,320 Members | 2,189 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,320 software developers and data experts.

unspecified error

I am receving this error and am completely stomped as on what could be the problem with the following code. The line which the error occurs is Set rsAircraft = objConn.Execute(strSQL). It is the last line in the code I have copy and pasted. Any help will be appreciated.

Thanks,
Cameron

Error Type:
(0x80004005)
Unspecified error


<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/mis.asp" -->
<!--#include file="../../includefiles/common.asp" -->
<%
strConnection = MM_mis_STRING
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open strConnection
strSql = "SELECT AircraftSerialNo, AircraftMDS,"
strSql = strSql + "Left(convert(char(10),PDMSchedStartDate,121),4)+s ubstring(convert(char(10),PDMSchedStartDate,121),6 ,2)+Right(convert(char(10),PDMSchedStartDate,121), 2)as PDMSchedStartDate, "
strSql = strSql + "Left(convert(char(10),PDMSchedDD250,121),4)+subst ring(convert(char(10),PDMSchedDD250,121), 6,2)+Right(convert(char(10),PDMSchedDD250,121),2) as PDMSchedDD250, "
strSql = strSql + "Left(convert(char(10),PDMSchedDelvDate,121),4)+su bstring(convert(char(10),PDMSchedDelvDate,121),6,2 )+Right(convert(char(10),PDMSchedDelvDate,121),2) as PDMSchedDelvDate, "
strSql = strSql + "Left(convert(char(10),PDMRecDate,121),4)+substrin g(convert(char(10),PDMRecDate,121),6,2)+Right(conv ert(char(10),PDMRecDate,121),2) as PDMRecDate, "
strSql = strSql + "PDMRemarks,tblAircraft.AircraftID "
strSql = strSql + "FROM PDMFC,tblAircraft "
strSql = strSql + "WHERE PDMFC.AircraftID = tblAircraft.AircraftID "
strSql = strSql + "AND (PDMFY = YEAR(GETDATE()) OR PDMFY = YEAR(GETDATE())+ 1) "
strSql = strSql + "AND (NOT (AircraftMDS IN ('N/A', 'n/a'))) ORDER BY AircraftSerialNo DESC"
Set rsAircraft = objConn.Execute(strSQL)
Sep 13 '06 #1
1 1384
Roytop
2
The problem is in your SQL query sintax or DB table field type.

Response.Write(strSQL) before Execute command and paste apeared query into MS SQL Query Analyzer for debugging.
Sep 13 '06 #2

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

Similar topics

14
by: Christopher Benson-Manica | last post by:
From FAQ 6.13: int arr; int (*a)=arr; /* legal, but useless */ printf( "%d\n", a ); /* error, bounds of a unspecified */ Are there non-contrived situations where an array of unspecified...
5
by: Dave | last post by:
Hi All C# ADSI samples that I run cause unspecified errors. If I translate them into VB.NET they run fine. Here's an example: public string getEmail(string LDAPPath, string username) {...
4
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ...
2
by: Jim Lacenski | last post by:
I have a VB class that uses .NET and ADODB to write into an Excel spreadsheet (via Jet) on a server as part of a web application. ADODB is used instead of ADO.NET because it greatly simplifies the...
1
by: T8 | last post by:
I have a asp.net (framework 1.1) site interfacing against SQL 2000. It runs like a charm 99% of the time but once in a while I get the following "unspecified error". Sometimes it would resolve by...
3
by: GotdotNet | last post by:
I get this error once in a while and I normally could fix it by restarting IIS. However, I would like to find out what causes this. Can anyone help? -----------------------------error...
1
by: Siegfried Heintze | last post by:
I'm using a third party hosting service. I presently have a Web Service on this hosting service's server that loads and executes a native mode DLL. This demonstrates that the hosting service has...
7
by: Jim McGivney | last post by:
ASPX page from VS.net-C# on host's computer using oleDataAdaptor to connect to Microsoft Access database. The page loads, but when connection to the database is attempted to fill a datagrid the...
6
by: sowencheung | last post by:
I have the following code in the event onbeforeunload if ( typeof executingPostBack != 'undefined' && !executingPostBack ) event.returnValue = ""Warning: Modified data has not been saved.""; ...
0
by: fniles | last post by:
I am using VB.Net 2003 and MS Access database. Sometimes when I open the database, I got the error "Unspecified error" The application validate users, when it validates users, it reads from a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.