RE: To Join or not to join that is the question- and if so how

2001-05-25 Thread Russ Conway
://www.hallofsports.com .. . . where the legends live on > -Original Message- > From: Russ Conway [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 25, 2001 2:43 PM > To: CF-Talk > Subject: RE: To Join or not to join that is the question- and if so how > > > Write your query using

RE: To Join or not to join that is the question- and if so how

2001-05-25 Thread Russ Conway
Write your query using IN so it looks like this... select tblCandidates.* from {oj tblCandIndExp LEFT OUTER JOIN tblCandidates ON tblCandidates.intCandidateID = tblCandIndExp.intCandidateIDFK} where 0=0 AND tblCandIndExp.intIndustryIDFK IN (1,15) AND tblCandIndExp.intCandIndYrs IN (2,3) Order by

RE: Database Design Question

2001-05-21 Thread Russ Conway
First 12.5k rows is not very many. I've worked on SQL Server apps with closer to 1 million rows. If you index the tables correctly and run reasonable queries, I'd be surprised if you taxed the server too much. As an alternate strategy though, you could do this with one table. Just create a field

RE: Order By

2001-05-11 Thread Russ Conway
Use DESC... SELECT FIELD1 FROM TABLENAME ORDER BY FIELD1 DESC Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (561) 423-2674 http://www.hallofsports.com .. . . where the legends live on > -Original Message- > From: ibtoad [mailto:[EMAIL P

RE: SQL Code problem

2001-05-08 Thread Russ Conway
CREATE TABLE ForumID (ForumID INTEGER NOT NULL IDENTITY (1,1) PRIMARY KEY CLUSTERED, CategoryID INTEGER DEFAULT '0') Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (561) 423-2674 http://www.hallofsports.com .. . . where the legends live on

RE: Delimited text file to database

2001-05-04 Thread Russ Conway
Does the insert need to be done in Cold Fusion? What about BCP (for SQL Server) or SQL Loader (for Oracle)? We usually load the data into "stage" tables using the load utility from the database and then run stored procedures to clean the data and insert it into the production database. You could a

RE: storing client variables in MS SQL

2001-04-27 Thread Russ Conway
> Is there a sample table structure available to be able > to create a table on MS SQL when moving the client > variables storage to a database from the registry? CF creates two table CDATA and CGLOBAL and related indices... CREATE TABLE CDATA CFID CHAR (20), APP CHAR (64), DATA LONG)

RE: ORACLE DATE INSERT ERROR.. Help.

2001-04-26 Thread Russ Conway
> I'm trying to insert a date into an Oracle table and get the following > error. Help!! > > Error Diagnostic Information > ODBC Error Code = 37000 (Syntax error or access violation) > [Oracle][ODBC Oracle Driver][Oracle OCI]ORA-00917: missing comma. > SQL = "INSERT INTO emirf (FIRST_NAME, REQUE

RE: Search Engines

2001-04-23 Thread Russ Conway
Check out selfpromotion.com. It's a good starting point and free to use at first. If you like it, I think they ask for $10 to continue using the service. Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (561) 423-2674 http://www.hallofsports.com ..

RE: Erratic Cold Fusion behavior on NT Service Pack 6a

2001-04-17 Thread Russ Conway
> Has anyone had trouble with CF eating the processor time on NT > Service Pack > 6a? It doens't happen all the time, just occasionally (about 1-2 > times per > day) and I end up having to stop and start the CF service. Any ideas? I e-mailed Douglas the suggestions posted to the thread "CF Usin

CF Using 90-100% of processor time (911!)

2001-04-16 Thread Russ Conway
My server developed a problem today. CFServer.exe is using almost all of the available processing time. I've tried stopping and starting the services and the NT box, but as soon as I start CF again it almost immediately grabs all of the processor time. I'm running NT and CF 4.01. We've had this a

RE: Database Normalization?

2001-04-14 Thread Russ Conway
Normalizing the database will reduce the size of the database and help ensure that the data is clean and consistent. But if you're concerned with performance, typically you would "de-normalize" the database. You might consider buying a book on modeling. Anything written by Ralph Kimball is pretty

RE: can cfhttp access to https?

2001-04-05 Thread Russ Conway
> Can cfhttp access to https site and get the files with username > and pasword > provided? https://www.blah.com" method="GET" port="443" username="DOMAIN\USERNAME" password="**" resolveurl="TRUE" throwonerror="YES"> I've been following

RE: "Order By" being ignored

2001-04-04 Thread Russ Conway
> Querying 2 tables, and I want to order the results from the > viewed_numbers.times table, in descending order. So I did this > (using * as > the tables are both small) > > > SELECT * FROM advert_details, viewed_numbers > WHERE advert_details.ID = viewed_numbers.adID > ORDER by times DESC

RE: previous/next in sql

2001-04-04 Thread Russ Conway
> alright, i'm trying to create a "previous/next" statement so that > my query only grabs 6 records at a time. How about using a cursor and submitting the ID of the last record processed as a parameter to the stored procedure? Then just loop through the results until you hit the ID passed to the

RE: Oracle Client Tools

2001-04-04 Thread Russ Conway
For development I like TOAD (http://www.toadsoft.com/). There is a downloadable demo you can try out. If you're talking about database administration, I prefer DBArtisan (http://www.dbartisan.com). Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (6

RE: compare files??

2001-04-04 Thread Russ Conway
> do you have any leads to documentation for implenting Source Safe with CF? Allaire has an article about it... http://www.allaire.com/handlers/index.cfm?ID=12588&Method=Full Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (646) 638-3444 http://ww

RE: compare files??

2001-04-04 Thread Russ Conway
Visual Source Safe can be used to compare files and show the differences. It integrates pretty well with CF. IMHO, it's a good idea to use some version control system anyway. Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (646) 638-3444 http://www

RE: Here's A Good One...

2001-04-03 Thread Russ Conway
The list discussed this yesterday under the Subject "daylight savings time. CF is reporting the wrong value for now". I found a work-around on the Allaire CF forum... I fixed mine by disabling the daylight savings time option in Windows and changed the time manually. Then CF recognized the r

RE: daylight savings time..... CF is reporting the wrong value for now

2001-04-02 Thread Russ Conway
Someone posted this to the Allaire CF forum... I fixed mine by disabling the daylight savings time option in Windows and changed the time manually. Then CF recognized the right time. Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (646) 638-3444 h

RE: Oracle CF error?

2001-03-27 Thread Russ Conway
> Anyone good with Oracle? A template that I thought was working now > generates this message:? > > > Oracle Error Code = 2290 > > > > ORA-02290: check constraint (VELO.SYS_C003412) violated > > > > > > The error occurred while processing an element with a general > > identifier of (CFUPDATE), occ

RE: SQL Business Dates

2001-03-27 Thread Russ Conway
SQL Server can handle that... DATEPART(datepart, date) The weekday (dw) datepart returns a number that corresponds to the day of the week, for example: Sunday = 1, Saturday = 7. The number produced by the weekday datepart depends on the value set by SET DATEFIRST, which sets the first day of the

Connection Timeout with CFHTTP

2001-03-27 Thread Russ Conway
I'm getting a timeout on my production server when I try to run code similar to this: http://www.hallofsports.com"> The code works fine on my development server. Is this due to NT Challenge/Response running on the production machine? The files/directories involved are not secured. Would the

RE: session variable storage

2001-03-27 Thread Russ Conway
> registry or database? > > which is better and why? Database if you're planning on scaling the site. The registry will fill up pretty quickly. Russell Conway HallofSports.com, Inc. 351 West 22nd Street New York, NY 10011 P (646) 638-2500 F (646) 638-3444 http://www.hallofsports.com .. . . where

RE: Dynamic Page Generation Question

2001-03-26 Thread Russ Conway
> Well, no not exactly. I need to save the results of the query > after they have been displayed to the user. the reason is that in > order to use a component that we have to convert this to pdf, I > need the results saved as an html file. > What about this? It does run the Cold Fusion code twice

RE: Dynamic Page Generation Question

2001-03-26 Thread Russ Conway
> I have a question that I am not sure how to do. I have a form > page that allows users to select search criteria. Once they are > done selecting their criteria, they generate a reoprt based on > what they chose. > > My question is, once the query has run to create the report, can > I save the re

RE: Help with SQL statement

2001-03-23 Thread Russ Conway
> I'm doing a select from three tables, and my query is timing out. The > problem is probably coming from the fact that there is not always a > record in the m.POS_ARC_HEADX table. Is there a way to restructure this > query so it still checks the m.POS_ARC_HEADX but does not die if no > record e

RE: Newbie question - query by month

2001-03-22 Thread Russ Conway
> I have a date field (completedate) stored in my database. I want > to be able > to pull out all of the records by a selected month for a > month-end report. > > Is there an easy way of doing this? I've tried > > where datepart('m', completedate)='#month#' > > but I keep getting an "in