Re: [ACFUG Discuss] OT: SQL help

2007-06-06 Thread shawn gorrell
ts itself. If I fought every stupid thing we have to deal with here I'd do nothing but battle every day. - Original Message From: Dean H. Saxe <[EMAIL PROTECTED]> To: discussion@acfug.org Sent: Tuesday, June 5, 2007 2:52:32 PM Subject: Re: [ACFUG Discuss] OT: SQL help Or he ha

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dusty Hale
esday, June 05, 2007 5:03 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help For SQL Server 200, the master database holds the information for the metadata for databases on that particular server instance. If you have access to this database, there should be some views pre-ma

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
- From: Dusty Hale To: discussion@acfug.org Sent: Tuesday, June 05, 2007 4:41 PM Subject: RE: [ACFUG Discuss] OT: SQL help I'm afraid I don't have any experience using metadata. I looked at the metadata folder icon in enterprise manager but nothing obvious to me so I gues

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dean H. Saxe
ed by it. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean H. Saxe Sent: Tuesday, June 05, 2007 4:02 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help So you'd rather have no foreign key relationships and let the DB get all out of whack rather than fig

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dusty Hale
Thanks for the suggestion and I'll try to look into how to use metadata. Dusty _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean H. Saxe Sent: Tuesday, June 05, 2007 4:23 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help Fair enough.

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dean H. Saxe
L PROTECTED] On Behalf Of Dean H. Saxe Sent: Tuesday, June 05, 2007 4:02 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help So you'd rather have no foreign key relationships and let the DB get all out of whack rather than figure out the DTS issues? I think you're loo

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dusty Hale
PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help So you'd rather have no foreign key relationships and let the DB get all out of whack rather than figure out the DTS issues? I think you're looking at the wrong problem, I'd spend my time figuring out the DTS and

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dean H. Saxe
2:16 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] OT: SQL help Teddy, Any idea why do I get an error in Query Analyzer : SQL Statement SELECT * FROM dbo.ORDER_ITEMS oi LEFT OUTER JOIN dbo.AP_translation tr ON tr.option_id IN (select convert(int,Value)

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dusty Hale
EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Morton Sent: Tuesday, June 05, 2007 2:16 PM To: discussion@acfug.org Subject: RE: [ACFUG Discuss] OT: SQL help Teddy, Any idea why do I get an error in Query Analyzer : SQL Statement SELECT * FROM dbo.ORDER_ITEMS oi

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dean H. Saxe
t;[EMAIL PROTECTED]> To: discussion@acfug.org Sent: Tuesday, June 5, 2007 2:09:40 PM Subject: Re: [ACFUG Discuss] OT: SQL help You use it in an adhoc query in query analyzer or SSMA. I have not tried it as an ad hoc query in CF as I myself tend not to use cfquery wherever I can. Teddy - O

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
: [ACFUG Discuss] OT: SQL help Why is that? You don't still believe that stored procedures always perform better do ya? ;) - Original Message From: Teddy R Payne <[EMAIL PROTECTED]> To: discussion@acfug.org Sent: Tuesday, June 5, 2007 2:09:40 PM Subject: Re: [ACFUG

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread shawn gorrell
Why is that? You don't still believe that stored procedures always perform better do ya? ;) - Original Message From: Teddy R Payne <[EMAIL PROTECTED]> To: discussion@acfug.org Sent: Tuesday, June 5, 2007 2:09:40 PM Subject: Re: [ACFUG Discuss] OT: SQL help Message Yo

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
07 12:10 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help You use it in an adhoc query in query analyzer or SSMA. I have not tried it as an ad hoc query in CF as I myself tend not to use cfquery wherever I can. Teddy - Original Message -

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread shawn gorrell
Maybe I missed something, but why wouldn't you just use a cfqueryparam with a type of sql_int and list="yes". - Original Message From: Paul Morton <[EMAIL PROTECTED]> To: discussion@acfug.org Sent: Tuesday, June 5, 2007 1:36:40 PM Subject: [ACFUG Discuss] OT: SQL

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Paul Morton
rg Sent: Tuesday, June 05, 2007 1:58 PM Subject: RE: [ACFUG Discuss] OT: SQL help Without creating a SP, can I use this in a select statement? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy R Payne Sent: Tuesday, June 05, 2007 11:45 AM To: discus

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
Subject: RE: [ACFUG Discuss] OT: SQL help Without creating a SP, can I use this in a select statement? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy R Payne Sent: Tuesday, June 05, 2007 11:45 AM To: discussion@acfug.org Subject: Re

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
iate quick statements so that I can alleviate miscommunication for our more detailed members. Teddy - Original Message - From: Dean H. Saxe To: discussion@acfug.org Sent: Tuesday, June 05, 2007 1:49 PM Subject: Re: [ACFUG Discuss] OT: SQL help Sure it is, Teddy. 1NF requi

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Paul Morton
Without creating a SP, can I use this in a select statement? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy R Payne Sent: Tuesday, June 05, 2007 11:45 AM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help Paul, There is already an

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dean H. Saxe
e 05, 2007 1:33 PM Subject: Re: [ACFUG Discuss] OT: SQL help Even further off topic... why in the heck does a varchar have a comma delimited list in it? That violates the first degree of normalization. Also, why do you need to split it for an in clause? If the field data is wrapped

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
Message - From: Dean H. Saxe To: discussion@acfug.org Sent: Tuesday, June 05, 2007 1:33 PM Subject: Re: [ACFUG Discuss] OT: SQL help Even further off topic... why in the heck does a varchar have a comma delimited list in it? That violates the first degree of normalization. Also

RE: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Paul Morton
@acfug.org Subject: Re: [ACFUG Discuss] OT: SQL help Even further off topic... why in the heck does a varchar have a comma delimited list in it? That violates the first degree of normalization. Also, why do you need to split it for an in clause? If the field data is wrapped in parenthesis, sh

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Teddy R Payne
sday, June 05, 2007 1:36 PM Subject: [ACFUG Discuss] OT: SQL help I apologize for the OT post, but I'm getting frustrated. I am attempting to use a UDF to split a varchar (comma delimited list of ints) in an IN clause in a SQL statement, and I'm not able to get the SQL statement

Re: [ACFUG Discuss] OT: SQL help

2007-06-05 Thread Dean H. Saxe
Even further off topic... why in the heck does a varchar have a comma delimited list in it? That violates the first degree of normalization. Also, why do you need to split it for an in clause? If the field data is wrapped in parenthesis, shouldn't it work as is? -dhs Dean H. Saxe, CISSP

[ACFUG Discuss] OT: SQL help

2007-06-05 Thread Paul Morton
I apologize for the OT post, but I'm getting frustrated. I am attempting to use a UDF to split a varchar (comma delimited list of ints) in an IN clause in a SQL statement, and I'm not able to get the SQL statement to pass a Table field to the UDF. I'm hoping someone sees a glaring error, or can