Home
|
Forums
|
Contact
|
Search
|
Syndication
[login]
[create account]
Tuesday, July 1, 2025
slxdeveloper.com
Home
Search
Contact us
About slxdeveloper
Syndication
Community
Forums
(NEW!)
Newsletter Archive
Members
Your Profile
Submit Article
General
Administration
(6)
OLE DB Provider
Miscellaneous
(2)
Architect
VBScript
(9)
ActiveX Controls
(6)
How To's
(14)
.NET Extensions
(3)
External
OLE DB Provider
(12)
SLAPI (SlgxApi.dll)
SalesLogix COM
(1)
Web
ASP/ASP.NET
(2)
Web Services
Web Client
Downloads
Samples
(17)
Documentation
(7)
Utilities
(18)
Resources
SalesLogix
(3)
Programming
(1)
7/1/2025 4:32:23 AM
slxdeveloper.com Community Forums
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (
For version 7.2 and higher only
). View the
code of conduct
for posting guidelines.
Forums RSS Feed
Back to Forum List
|
Back to SalesLogix Web Platform & Application Architect
|
New Thread
View:
Dynamic
Flat
Tree
Search:
Author
Thread: ExecuteScaler and ExecuteReader in 7.5.2 web
Glenn Williams
Posts: 51
ExecuteScaler and ExecuteReader in 7.5.2 web
Posted: 01 Feb 10 1:22 PM
I can get ExcuteScaler to work in a C# Snippet, but I can't get ExecuteReader to work to retrieve multiple records from oracle. Support appreciated.
strSQLOwnerInfo = " Select userid from userinfo";
using (System.Data.OleDb.OleDbConnection connownerinfo = new System.Data.OleDb.OleDbConnection(datasvc.GetConnectionString()))
{
connownerinfo.Open();
using (System.Data.OleDb.OleDbCommand cmd = new System.Data.OleDb.OleDbCommand(strSQLOwnerInfo, connownerinfo))
{
rdrownerinfo = cmd.ExecuteReader();
while (rdrownerinfo.Read())
{
UID = (string)rdrownerinfo["userid"];
}
}
[
Reply
][
Quote
]
Ryan Farley
Posts: 2265
Re: ExecuteScaler and ExecuteReader in 7.5.2 web
Posted: 01 Feb 10 1:59 PM
What is the error you're getting? That will definitely help.
Also, have you tried upper casing the table and field names? If the Oracle implementation is case-sensitive then that would be a problem.
[
Reply
][
Quote
]
Nick Hollis
Posts: 549
Re: ExecuteScaler and ExecuteReader in 7.5.2 web
Posted: 12 Feb 10 10:36 AM
Is this all the code? I hope not - for a start you havent declared the datareader..also dont you hgave to use a ToString() after the rdownerinfo["userid"]? Incidentially you should use the co;lumn ordinal as (apparently) its quicker so rdownerinfo[0].ToString(); If you use a tostring() you wont have to cast either.
[
Reply
][
Quote
]
Nick Hollis
Posts: 549
Re: ExecuteScaler and ExecuteReader in 7.5.2 web
Posted: 12 Feb 10 10:42 AM
Also its worth noting that if you are just setting the same UID every time it will always be one value (even it if it has looped through all the records). You would have to append the values to the variable or do whatever you have to. Grandma.....suck eggs....sorry you have probably left out your code for the post but worth checking.
[
Reply
][
Quote
]
Page 1 of 1
You can subscribe to receive a daily forum digest in your
user profile
. View the site
code of conduct
for posting guidelines.
Forum RSS Feed
-
Subscribe to the forum RSS feed to keep on top of the latest forum activity!
slxdeveloper.com is brought to you courtesy of
Ryan Farley
&
Customer FX Corporation
.
This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.
code of conduct
|
page cache (param): 7/1/2025 5:31:49 AM