asp-classic

SQL group_concat function in SQL Server [duplicate]

烂漫一生 提交于 2019-12-16 20:04:14
问题 This question already has answers here : Simulating group_concat MySQL function in Microsoft SQL Server 2005? (10 answers) Closed 3 years ago . If there is a table called employee EmpID EmpName ---------- ------------- 1 Mary 1 John 1 Sam 2 Alaina 2 Edward Result I need in this format: EmpID EmpName ---------- ------------- 1 Mary, John, Sam 2 Alaina, Edward Q: this record is in same Employee table. I have almost no experience using UDFs, stored procedures, I need to be done this thing

New ASP code for contact email form on Godaddy server

天大地大妈咪最大 提交于 2019-12-14 04:17:36
问题 I have two forms, a quotation and contact in ASP coding that no longer work from the updated server. Both forms have the same ASP file that send me email. I thought I had a solution but not. I think as my file is encoded in ASP, and that the server is ASP.net, this creates conflict. I seek a solution to receive emails again, by updating the ASP code I have now. I'm graphic designer and not a coder. The specifications of my current server are: Operating System WINDOWS PHP Version 5.3 IIS

Get SQL Server schema via a SQL query?

一个人想着一个人 提交于 2019-12-14 04:17:18
问题 I've inherited a clunky and horribly un-documented site from a bad developer and am trying to get a look at the database schema. Unfortunately the web host is the worst I've ever dealt with and has no control panel capability for viewing the db schema or even exporting tables. Is there any way that I can get a look at the schema via a SQL query (this would be with ASP + SQL Server)? My end goal here is to see what tables exist, possibly get a SQL dump of the vital tables, and then recreate

parsing xml with vbscript

ぃ、小莉子 提交于 2019-12-14 04:08:29
问题 Anyone have any examples of parsing xml with vbscript? I have a .NET generic list serialized into XML that I'm sending to a classic asp page. I thought I'd be able to use XMLDom, but the libraries don't seem to be installed on the server, so I'm looking for another solution. (Was getting "Object Required: documentElement" error) Basically I'm passing a list of around 15 objects in the form of an xml string that contains a headline and a main article section, and I want to loop through the

how to get image width with server-side vbscript? Asp classic

有些话、适合烂在心里 提交于 2019-12-14 03:56:49
问题 I have been trying for days to find a way to get the image width of .png files which reside on our server. I am trying to read the first 24 bytes of the file and parse out the width from bytes 17-20. I have found several routines on the web but have not been successful. Strangely enough, it seems I am getting the height from bytes 21-24 decoded from hex to decimal just fine. I have verified the file contents using a hex viewer and the file is good. Here is the main portion of the routine:

Defining parameters for executing stored procedure - Classic ASP

守給你的承諾、 提交于 2019-12-14 03:56:03
问题 I am trying to update some old functionality. There is a stored procedure that has one input parameter and two output parameters. I am getting the following error when I try to execute the code: Microsoft OLE DB Provider for ODBC Drivers error '80040e21' Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done. /student.asp, line 30 Stored Procedure: ALTER PROCEDURE [Api].[GetKeyByAuthId] @AuthenticationId uniqueidentifier , @Key int =

Error when adding parameters to ADODB command in a .NET assembly

不羁的心 提交于 2019-12-14 03:52:54
问题 I have a .NET assembly that is being consumed by a classic ASP page. I've created a method that returns a ADODB recordset. In my ADODB command object I'm supplying parameters using the following format to a adCmdStoredProc CommandType property... With ADODBCmd .ActiveConnection = ADODBConn .Prepared = True .CommandType = CommandTypeEnum.adCmdStoredProc .NamedParameters = True .CommandText = Sql_GetMyBook .Parameters.Append(.CreateParameter("@book", DataTypeEnum.adChar, ParameterDirectionEnum

How many dimensions in my array or get the last one

余生颓废 提交于 2019-12-14 03:49:44
问题 How can I find out the number of dimensions in an array in Classic ASP ( VBScript ) . I am being passed an Array with multiple dimensions but I only want to look at the last. Seems easy in other languages. 回答1: Ubound(MySingleDimensionalArray, 2) ' Number of Array Elements Ubound(MyMultiDimensionalArray, 1) ' Number of Columns Ubound(MyMultiDimensionalArray, 2) ' Number of Rows 回答2: Similar approach to feihtthief's answer here as I assume this is what you want rather than the size of a

passing parameters into stored procedures classic asp

坚强是说给别人听的谎言 提交于 2019-12-14 03:28:43
问题 I've asked a similar question before and although I've attempted to fix my previous code i now end up with an error "Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another". I want to pass a single character as a parameter to query a database then use recordset to print out to a webpage. My classic asp code is below Set objCon = CreateObject("ADODB.Connection") Set objRS = CreateObject("ADODB.Recordset") set objComm = CreateObject("ADODB.Command")

Passing variables in classic ASP

余生长醉 提交于 2019-12-14 03:28:19
问题 I am dealing with legacy code where there is an include of another ASP page. <!--#INCLUDE virtual="/PAGE1.ASP"--> to get a variable, say x, from that page, I beleive I would do: x = Request.Form("x") is that correct? Also, are the variable names case sensitive for classic .ASP files? Thanks so much. 回答1: You should think of the page as being built into one contiguous page, so that if you include a number of .asp files they will build up your finished page. For instance, if you have three