asp-classic

VBScript: Sorting Items from Scripting.Dictionary

末鹿安然 提交于 2019-12-10 23:28:35
问题 I have the code below... it grabs data like this: name1, name4, name2, name3 and list like this ([ ] is a checkbox): [ ] name 1 [ ] name 4 [ ] name 2 [ ] name 3 <% Set DicionarioMyData = CreateObject("Scripting.Dictionary") Set MyData= TarefasConexaoMSSQL.Execute("SELECT A FROM TABLE") If Not MyData.EOF Then Do While Not MyData.EOF ItensDoMyData = MyData("A") If Not IsNull(ItensDoMyData) Then ItensSeparadosDoMyData = Split(ItensDoMyData, ",") For i = 0 To UBound(ItensSeparadosDoMyData)

Does ADODB fail on output parameters with optional input parameters?

霸气de小男生 提交于 2019-12-10 23:15:29
问题 I have a stored procedure in a SQL Server 2008 R2 database with an optional input parameter and an output parameter like this: CREATE PROCEDURE [dbo].[spCreateTicket] ( @TrackingCode varchar(25), @EmailAddress varchar(250) = null, @Ticket varchar(1000), @UserID int, @TicketID int output ) AS SET NOCOUNT ON INSERT INTO dbTicket (TrackingCode, EmailAddress, Ticket, UserID) SELECT @TrackingCode, @EmailAddress, @Ticket, @UserID SELECT @TicketID = SCOPE_IDENTITY() RETURN @TicketID When I invoke

What is the size limit of the application object in classic asp?

倖福魔咒の 提交于 2019-12-10 21:21:42
问题 I am creating an ASP script that uses the application object to store the pages. The question in my mind is whether there is a size limit to this object. Anyone know? 回答1: An application pool may specifiy the Maximum virtual memory size that a worker process can allocate. This is setting will affect the maximum size of data that the application object can hold. If this setting is not specified (or is larger than 2GB) then another factor will be whether the process is running in 32 Bit mode.

Looking for a hack to prevent rewriting an app without using session variables

允我心安 提交于 2019-12-10 21:17:33
问题 Our company uses an app that was originally ColdFusion + Access later converted to classic ASP + MS Sql for task/time tracking called the request system. It's broken down by department, so there's one for MIS, marketing, logistics, etc. The problem comes in when (mainly managers) are using more than one at a time, with 2 browser windows open. The request system uses session variables, a lot of session variables, "session" is referenced 2300 times in the application. When 2 are open at once as

ADO Command Parameter Not Passing to Stored Procedure or Stored Procedure 'Ignoring' Parameter

我的未来我决定 提交于 2019-12-10 20:36:43
问题 Update 4 Updated the whole question to reflect my changes. Still Not Working. This has been annoying me for two days now. I'm updating an old ordering interface system that our customers use, written in ASP Classic, VBScript. It connects to an SQL database on Windows Server 2003. Stored Procedure I have a stored procedure that returns a list of pallet codes, filtered by customer ID and searchable by pallet code: CREATE PROCEDURE dbo.sp_PalletSearch @CustomerRef Int, @SearchQuery VarChar(15) =

Permissions denied on sql query

吃可爱长大的小学妹 提交于 2019-12-10 20:26:00
问题 I'm trying to execute the following query through classic asp recordset - SQL = "Select P_Name as P_Name, P_Description as P_Description from L_PagePermission inner join A_Permission on p_permissionID = pp_PermissionID inner join A_Page on P_PageID = PP_PageID where P_PageID = 85 order by p_Name" Although I've ran into a problem with permissions. So the error that i am receiving is - Microsoft OLE DB Provider for ODBC Drivers error '80040e09' [Microsoft][ODBC SQL Server Driver][SQL Server

Returning varchar(max) Output parameter from stored procedure truncating to 4000 characters

三世轮回 提交于 2019-12-10 19:23:32
问题 I've got a classic ASP appln with a SQL2012 database. I recently changed a table column from varchar(8000) to varchar(max) as it wasn't big enough to store the required data. I can update the column with all of the data I need to store, but the SP I use to return the column data as an output parameter is only returning 4000 characters (at least that is what the result of the following code is giving me: Len(cmd.Parameters("@detail").Value) I'm using the following parameter declaration as part

What is this 'Multiple-step OLE DB' error?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 18:53:45
问题 I'm doing a little bit of work on a horrid piece of software built by Bangalores best. It's written in mostly classic ASP/VbScript, but "ported" to ASP.NET, though most of the code is classic ASP style in the ASPX pages :( I'm getting this message when it tries to connect to my local database: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. Line 38: MasterConn = New ADODB.Connection() Line 39: MasterConn.connectiontimeout =

Classic ASP showing variable

寵の児 提交于 2019-12-10 18:35:39
问题 I just want to show a result of a variable on a page and i am struggling heres my code, the variable is in a table as you can see thanks in advance <tr><td><% Dim sTest sTest = "Monkey" Response.Write("<p>" & sTest & "</p>") %> <p> This is Excel </p> </td></tr> 回答1: Save the below code as HelloWorld.asp. Open this page in a web browser. Tell us what you see. (Don't put any html code or anything else) <% Dim sTest sTest = "Hello World" Response.Write(sTest) Response.End %> 回答2: html code....

CDO.Message - “The transport failed to connect to the server.”

爱⌒轻易说出口 提交于 2019-12-10 18:30:33
问题 I'm working on a Classic ASP & Vbscript site that uses CDO.Message to send email in a function. I'm running into trouble with this function and am recieving the error, CDO.Message.1 error '80040213' The transport failed to connect to the server. I believe it has to do with the SMTP authentication settings and the shared host we are running on. I am looking for help debugging the issue further. Here is the main code snippet from the function, Set objConfig = Server.CreateObject("CDO