Click here to Skip to main content
15,890,557 members
Home / Discussions / Database
   

Database

 
Generalusing describe with MS Access Pin
mhmo17-Aug-05 6:57
mhmo17-Aug-05 6:57 
GeneralRe: using describe with MS Access Pin
Rob Graham17-Aug-05 10:20
Rob Graham17-Aug-05 10:20 
GeneralDisconnected Data Question Pin
matthias s.17-Aug-05 6:26
matthias s.17-Aug-05 6:26 
GeneralRe: Disconnected Data Question Pin
ToddHileHoffer17-Aug-05 9:42
ToddHileHoffer17-Aug-05 9:42 
GeneralRe: Disconnected Data Question Pin
miah alom19-Aug-05 6:30
miah alom19-Aug-05 6:30 
QuestionSQL 2000 - IF / THEN bug? Pin
Anthony Ford17-Aug-05 5:11
Anthony Ford17-Aug-05 5:11 
AnswerRe: SQL 2000 - IF / THEN bug? Pin
ToddHileHoffer17-Aug-05 9:46
ToddHileHoffer17-Aug-05 9:46 
GeneralRe: SQL 2000 - IF / THEN bug? Pin
Anthony Ford17-Aug-05 10:02
Anthony Ford17-Aug-05 10:02 
Thanks for your response.

The strange thing is, I did some additional testing after I sent that post and it turns out that even if I remove the IF condition and just have a single query in there, ANY command before my SELECT statement, even a simple "DECLARE @SomeVar int" won't break the proc in QA, but ADO still won't pick up the results. I played around with NOCOUNT ON / OFF, but to no avail. I'm totally befuddled.

Actually, the particular project I'm working on at the moment is in legacy ASP / VBScript. But, here's the code to retrive the data. And remember, if I change the proc, this very VBScript code works just fine.

--------

Dim p_objRecordSet
Dim p_objCommand
Set p_objRecordSet = Server.CreateObject("ADODB.RecordSet")
Set p_objCommand = Server.CreateObject("ADODB.Command")
With p_objCommand
.ActiveConnection = DBConnectionString
.CommandType = adCmdStoredProc
.Parameters.Append p_objCommand.CreateParameter("@LastName", adVarChar, adParamInput, 255, Trim(p_strLastName))
.Parameters.Append p_objCommand.CreateParameter("@ZipCode" , adVarChar, adParamInput, 255, Trim(p_strZipCode))
.Parameters.Append p_objCommand.CreateParameter("@VendorID", adInteger, adParamInput, 4, p_intVendorID)
End With

p_objRecordSet.CursorType = adOpenStatic
p_objRecordSet.Open p_objCommand

If p_objRecordSet.RecordCount > 0 Then
Do While Not p_objRecordSet.EOF
Response.Write(p_objRecordSet("address1"))
Response.Write("<BR>")
p_objRecordSet.MoveNext
Loop
End If

p_objRecordSet.Close
Set p_objRecordSet = Nothing
Set p_objCommand = Nothing
----------


Anthony
GeneralRe: SQL 2000 - IF / THEN bug? Pin
ToddHileHoffer17-Aug-05 10:42
ToddHileHoffer17-Aug-05 10:42 
GeneralSql server Pin
chandru_inbox17-Aug-05 0:29
chandru_inbox17-Aug-05 0:29 
GeneralRe: Sql server Pin
Yulianto.18-Aug-05 16:44
Yulianto.18-Aug-05 16:44 
GeneralRe: Sql server Pin
miah alom19-Aug-05 6:34
miah alom19-Aug-05 6:34 
GeneralNeed advice on numerical data types for numbers like ##,###.## Pin
FTrader16-Aug-05 20:41
FTrader16-Aug-05 20:41 
GeneralRe: Need advice on numerical data types for numbers like ##,###.## Pin
Colin Angus Mackay16-Aug-05 22:28
Colin Angus Mackay16-Aug-05 22:28 
GeneralRe: Need advice on numerical data types for numbers like ##,###.## Pin
FTrader16-Aug-05 23:16
FTrader16-Aug-05 23:16 
GeneralRe: Need advice on numerical data types for numbers like ##,###.## Pin
Dan Neely17-Aug-05 10:38
Dan Neely17-Aug-05 10:38 
GeneralRe: Need advice on numerical data types for numbers like ##,###.## Pin
FTrader17-Aug-05 12:44
FTrader17-Aug-05 12:44 
GeneralRe: Need advice on numerical data types for numbers like ##,###.## Pin
Dan Neely18-Aug-05 7:57
Dan Neely18-Aug-05 7:57 
GeneralSome info about .NET decimal Pin
FTrader17-Aug-05 1:57
FTrader17-Aug-05 1:57 
QuestionDeleted entries reappearing in Access 2000 DB? Pin
mav.northwind16-Aug-05 20:28
mav.northwind16-Aug-05 20:28 
Questionhow to accessing Paradox use ADO Pin
ebinaini16-Aug-05 19:20
ebinaini16-Aug-05 19:20 
General.NET SQL Stored Procedures Pin
Carl Mercier16-Aug-05 6:36
Carl Mercier16-Aug-05 6:36 
GeneralTriggers Problem [modified] Pin
Faheem Habib15-Aug-05 23:23
Faheem Habib15-Aug-05 23:23 
GeneralRe: Triggers Problem Pin
ToddHileHoffer16-Aug-05 10:23
ToddHileHoffer16-Aug-05 10:23 
Generalneed help about analysis service connection Pin
ianpeter15-Aug-05 21:25
ianpeter15-Aug-05 21:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.