I am running into an issue when I try to write more than 1024 characters to
a memo field. Apparantly the odbc connection I am using does not permit
literals to be larger that 1024 characters. This Memo filed can take
virtually infinate data, so the solution seems to be use parameters. My
problem is I have never heard of this and need this to work ASAP. Does
anyone have a simple example of how Parameters work using ASP? 18 2844
Johnd wrote: I am running into an issue when I try to write more than 1024 characters to a memo field. Apparantly the odbc connection I am
That's your first problem. You should be using the native Jet OLEDB
provider. See www.able-consulting.com/ado_conn.htm for examples.
using does not permit literals to be larger that 1024 characters. This Memo filed can take virtually infinate data, so the solution seems to be use parameters. My problem is I have never heard of this and need this to work ASAP. Does anyone have a simple example of how Parameters work using ASP? http://www.google.com/groups?hl=en&l...phx.gbl&rnum=6
HTH,
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Thanks Bob but heres a little more detail.
I am using Advantage server 6.2
here is my code:
// Set Conn = Server.CreateOb ject("ADODB.Con nection")
// Conn.Open "DSN=LocalO P"
// strQuery = "insert into NCRheadcomments (hdrcomid, headerid, comdate,
userid, comments, comtime)" &_
// "values(10084,1 0080, '" & FormatDateTime( Date(), VBshortDate ) &_
// "', '" & session("Curren tUser") & "', '" & CurrentComment & "', '" &
time & "')"
// Set objRS = Conn.Execute(st rQuery)
// conn.close
My problem is CurrentComment is larger than 1024 characters. Is there a way
to get this to work without using a saved query as I do not believe that is
available to my at this time.
John,
"Bob Barrows" <re******@NOyah oo.SPAMcom> wrote in message
news:uX******** ******@TK2MSFTN GP09.phx.gbl... Johnd wrote: I am running into an issue when I try to write more than 1024 characters to a memo field. Apparantly the odbc connection I am That's your first problem. You should be using the native Jet OLEDB provider. See www.able-consulting.com/ado_conn.htm for examples.
using does not permit literals to be larger that 1024 characters. This Memo filed can take virtually infinate data, so the solution seems to be use parameters. My problem is I have never heard of this and need this to work ASAP. Does anyone have a simple example of how Parameters work using ASP?
http://www.google.com/groups?hl=en&l...phx.gbl&rnum=6 HTH, Bob Barrows
-- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
Johnd wrote: Thanks Bob but heres a little more detail.
I am using Advantage server 6.2
here is my code:
// Set Conn = Server.CreateOb ject("ADODB.Con nection") // Conn.Open "DSN=LocalO P" // strQuery = "insert into NCRheadcomments (hdrcomid, headerid, comdate, userid, comments, comtime)" &_ // "values(10084,1 0080, '" & FormatDateTime( Date(), VBshortDate ) &_ // "', '" & session("Curren tUser") & "', '" & CurrentComment & "', '" & time & "')" // Set objRS = Conn.Execute(st rQuery)
Why are you creating a recordset object to run a non-records-returning
query? Just do this:
Conn.Execute strQuery,,129
// conn.close
My problem is CurrentComment is larger than 1024 characters. Is there a way to get this to work without using a saved query as I do not believe that is available to my at this time.
Why not? According to their website, Advantage supports stored procedures.
You will likely need to use AppendChunk
( http://msdn.microsoft.com/library/en...damth01_3.asp), a
Command object and a Parameter object. Check out the example in that link.
I'm sorry but, due to my non-familiarity with Advantage, I am not going to
be able to get into specifics. Have you tried their support system?
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Thankyou for taking the time to reply on this issue. I realize this is not
the best group for this post, but I can't find any leads elsewhere. Also I
was hoping that this waas a limitation of SQL and therefore best handled
here. I have looked for stored procedures and been told that they are not
supported in the Novell version of advanage 6.2 I will look further into
it. In the mean time I will look at the "chunk" solution you have suggested
and post my results for future reference.
John,
BTW. It never occured to me to just execute the object Conn.Execute
strQuery,,129
"Bob Barrows" <re******@NOyah oo.SPAMcom> wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl... Johnd wrote: Thanks Bob but heres a little more detail.
I am using Advantage server 6.2
here is my code:
// Set Conn = Server.CreateOb ject("ADODB.Con nection") // Conn.Open "DSN=LocalO P" // strQuery = "insert into NCRheadcomments (hdrcomid, headerid, comdate, userid, comments, comtime)" &_ // "values(10084,1 0080, '" & FormatDateTime( Date(), VBshortDate ) &_ // "', '" & session("Curren tUser") & "', '" & CurrentComment & "', '" & time & "')" // Set objRS = Conn.Execute(st rQuery)
Why are you creating a recordset object to run a non-records-returning query? Just do this: Conn.Execute strQuery,,129
// conn.close
My problem is CurrentComment is larger than 1024 characters. Is there a way to get this to work without using a saved query as I do not believe that is available to my at this time.
Why not? According to their website, Advantage supports stored procedures.
You will likely need to use AppendChunk (http://msdn.microsoft.com/library/en...damth01_3.asp), a Command object and a Parameter object. Check out the example in that link.
I'm sorry but, due to my non-familiarity with Advantage, I am not going to be able to get into specifics. Have you tried their support system?
Bob Barrows -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.
"Bob Barrows" <re******@NOyah oo.SPAMcom> wrote in message
news:ON******** ******@TK2MSFTN GP10.phx.gbl... Why are you creating a recordset object to run a non-records-returning query? Just do this: Conn.Execute strQuery,,129
What's this Bob? Is that a numeric value of 129 instead of defining a
constant? :P
Ray at work
Ray at <%=sLocation% > wrote: "Bob Barrows" <re******@NOyah oo.SPAMcom> wrote in message news:ON******** ******@TK2MSFTN GP10.phx.gbl...
Why are you creating a recordset object to run a non-records-returning query? Just do this: Conn.Execute strQuery,,129
What's this Bob? Is that a numeric value of 129 instead of defining a constant? :P
I was going to tell him to go look it up if he asked ;-)
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
"Ray at <%=sLocation% >" wrote: What's this Bob? Is that a numeric value of 129 instead of defining a constant?
What would he call it? adCmdTextExecut eNoRecords ?
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
adChar?
Ray at work
"Dave Anderson" <GT**********@s pammotel.com> wrote in message
news:uR******** ******@tk2msftn gp13.phx.gbl... "Ray at <%=sLocation% >" wrote: What's this Bob? Is that a numeric value of 129 instead of defining a constant? What would he call it? adCmdTextExecut eNoRecords ?
-- Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message.
Use of this email address implies consent to these terms. Please do not
contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting.
If you guys put as much effort into helping people as you do into you
humour, I think there may be hope for some of us rookies :-)
"Ray at <%=sLocation% >" <myfirstname at lane34 dot com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. adChar?
Ray at work
"Dave Anderson" <GT**********@s pammotel.com> wrote in message news:uR******** ******@tk2msftn gp13.phx.gbl... "Ray at <%=sLocation% >" wrote: What's this Bob? Is that a numeric value of 129 instead of defining a constant?
What would he call it? adCmdTextExecut eNoRecords ?
-- Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your question is worth asking, it's worth posting.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: WGW |
last post by:
Though I am a novice to MS SQL server (2000 I believe), I can do almost!
everything I need. Maybe not efficiently, but usefully. However, I have
a problem -- a complex query problem...
I can create a parameter query in a stored procedure, but how do I use
the result set of a parameter query in a select query (in the same or
another sp)? In short, if a select query contains a result table that is
generated as a parameter query, how do I...
|
by: MX1 |
last post by:
I'm ready to pull the hair out of my head. I have a query with a couple of
parameters that I want to get from combo boxes on a form. One parameter is
a date with a dynamically calculated year and the other is criteria for a
Yes or No field. I'll focus on the Yes/No field for simplicity.
If I run the query with the criteria hard coded as either "YES" or "NO", it
works.
In the values of the combo box in my form, I have it set as...
|
by: Nicolae Fieraru |
last post by:
Hi All,
I have a table, tblCustomers, with fields SalutationID and Firstname.
I made a query, qrySelect = "Select FirstName from tblCustomers Where
SalutationID = "
If I run this query by itself, it works fine. It asks me for the parameter
and then it shows the records . What I want is to be able to pass the
parameter to it in VBA
I am using the following code:
|
by: Zlatko Matiæ |
last post by:
Hi everybody!
Recently I was struggling with client/server issues in MS Access/PostgreSQL
combination.
Although Access is intuitive and easy to use desktop database solution, many
problems appear when someone is trying to use it as front-end for real
server database systems such as PostgreSQL or MySQL.
One of these problems is regarding pass-through queries and parameters.
I wanted to have all the code on client, while executing it on...
|
by: Mike MacSween |
last post by:
Just spent a happy 10 mins trying to understand a function I wrote sometime
ago.
Then remembered that arguments are passed by reference, by default.
Does the fact that this slowed me down indicate:
a) That I don't know enough
b) Passing arguments by ref is bad
| |
by: Mike Dinnis |
last post by:
Hi,
I've been working through a number of turorials to try to learn more about
retrieving data from a SQL database. I think i've mastered techniques where
i create a sql string in the page and pass it to the Db and retrieveing data
from a stored procedure, but I can't get the hang of parameters.
I have a method where I can get the parameters passed to the sp but it
doesn't want to return any results. Here's a copy of my code:
|
by: owengoodhew |
last post by:
Guys I need your help/Advice...
In my Access Database I have a query (lets say qry1) and in this query
i have 2 fields for start and end date, which is provided by 2 Get
functions.
also i have qry2 based on qry1
then qry3 based on qry2
and finally qry4(using sql in code) based on qry3, and non of these 3
queries have the start and end date fields.
|
by: Ranginald |
last post by:
Hi,
I'm having trouble passing a parameter from my default.aspx page to my
default2.aspx page.
I have values from a query in a list box and the goal is to pass the
"catID" from default.aspx to a stored procedure on the details2.aspx
page.
I can successfully pass the values from the listbox control to a
|
by: kennthompson |
last post by:
Trouble passing mysql table name in php. If I use an existing table
name already defined everything works fine as the following script
illustrates.
<?php
function fms_get_info()
{
$result = mysql_query("select * from $tableInfo") ;
for ($i = 0; $i < mysql_num_rows($result); $i++)
{
|
by: hyperpau |
last post by:
Hi there guys!
I have a Form where there are three comboboxes. This comboboxes are used as references for the parameter of 3 fields in a query. when I hit a command button in my form, it opens a query with the parameters selected from the form.
Let's say I have three fields in my query. ,, and
On the design view of the query, I put these criterias on different lines so that it would be using the OR:
=!!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |