Viewing 15 posts - 46 through 60 (of 83 total)
here is my code:
<cfset listcount = 0>
<CFQUERY datasource="DWS_product_catalog">
Insert Into option1values(ProdID, myValue)
<cfloop list="#form.option1values#" index="currentValue" delimiters="#chr(13)#">
<cfset #variables.listcount# = #variables.listcount# + 1>
select #url.prodID#, '#Left(Ltrim(currentvalue),30)#'
<CFIF #variables.listcount# LT #listlen(form.option1values, chr(13))#>
union all
</CFIF>
...
July 19, 2005 at 11:54 am
ok so here's another interesting development - all the values entered into the database are the same length at the first value.
so for instance i entered the following values:
Large
Medium
Small
Extra Large
the...
July 19, 2005 at 11:42 am
ok so i tried insertign the explicit values and it worked fine - so it must be a problem with the variables. i just cant understand what.
July 19, 2005 at 11:34 am
yeah prodID is the same for all rows. the values being used are variables but i am able to view the actual SQL query beign generated and it is exactly...
July 19, 2005 at 11:22 am
well i am using a textarea to collect the list values (one item per line) so there is no maxlength attribute for the a textarea.
and the datatype is definitely varchar(30)...
July 19, 2005 at 10:15 am
ok so it is sort of working:
my generated query looks like this:
Insert Into option1values(ProdID, myValue)
select 10, 'Red'
union all
select 10, 'Green'
union all
select 10, 'Blue'
union all
select...
July 19, 2005 at 9:39 am
ok so my table consists of 3 fields:
ID - autonumber, PK
ProdID - int, FK
MyValue - varchar 100
i am using ColdFusion to work with this table so if i had 3...
July 19, 2005 at 7:25 am
yeah that might do it - lemme try.
July 11, 2005 at 2:26 pm
ok - i think i got all my data imported - thank you everyone for all your help - there is a lot of great info in this thread.
what i...
June 30, 2005 at 1:58 pm
ok i guess there is something i am not understanding here. my eventual goal is to have a table consistign of all the good records with their dates in a...
June 30, 2005 at 10:31 am
ok so what if i just delete the data i have imported to the staging table and create a new DTS package from the import wizard which uses a SQL...
June 29, 2005 at 2:54 pm
tague - i got my DTS package setup with the MS OLE DB connection and the Execute SQL Task. but when i run it i get the followign message:
The Statement...
June 29, 2005 at 2:35 pm
what other information do you need to help me skip the "deleted" records?
June 29, 2005 at 1:30 pm
unfortunately no - we don't have a fox pro person available. the person who created our fox pro apps left us long ago and now it is up to me...
June 29, 2005 at 12:52 pm
so doing this would log all the errors but what woudl it do when it encounters a row with errors? skip it?
June 29, 2005 at 6:34 am
Viewing 15 posts - 46 through 60 (of 83 total)