RE: CF Code to create AutoIncrement column MS SQL?

2009-04-23 Thread Justin Scott
> Does anyone have any Coldfusion code to insert a new > autoincrement key field in to a MS SQL table and then > remove the old one? Or is there a way to modify a key > field to autoincrement? If you're just running into occasional collisions, you could use with an exclus

RE: CF Code to create AutoIncrement column MS SQL?

2009-04-23 Thread Robert Rawlins - Think Blue
Hi Dawn, This is something which should be handled by the database. In a database where you have auto incrementing the primary keys it shouldn't be the applications responsibility to keep an eye on that, you should be doing simple INSERT statements and allowing the DB to do the work. In

CF Code to create AutoIncrement column MS SQL?

2009-04-23 Thread Dawn Sekel
em is to recreate the autoincrment key fields somehow. Does anyone have any Coldfusion code to insert a new autoincrement key field in to a MS SQL table and then remove the old one? Or is there a way to modify a key field to autoincre

RE: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Robert Rawlins - Think Blue
From: Ian Skinner [mailto:h...@ilsweb.com] Sent: 23 April 2009 16:25 To: cf-talk Subject: Re: YIKES! I must let internet users write SQL queries for our database! Robert Rawlins - Think Blue wrote: > Hey Ian, > > My first thoughts on this would be to ensure that YOU keep total control >

Re: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Ian Skinner
Robert Rawlins - Think Blue wrote: > Hey Ian, > > My first thoughts on this would be to ensure that YOU keep total control > over the actually SQL that is being run, if you're working with large sets > of data (more than a few GB) than the performance problems which arise f

Re: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread C. Hatton Humphrey
INs 2. The flex/AJAX query builder idea is a nice one, you could also provide a drop-down driven query builder and let it dynamically build the SQL statement for the user, then give the user the ability to edit the SQL. Since you're running off a replicated database the need for heavy regex

Re: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Ian Skinner
Ian Skinner wrote: > Did I get your attention? Luckily these are read-only queries, but still! I forgot to mention an important consideration is to somehow control and mitigate query requests so that users don't tie up the database with a task taking hours and hours to process. It is already a

RE: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Robert Rawlins - Think Blue
Hey Ian, My first thoughts on this would be to ensure that YOU keep total control over the actually SQL that is being run, if you're working with large sets of data (more than a few GB) than the performance problems which arise from poorly written SQL could likely cause you all kinds of

Re: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Ian Skinner
Rob Parkhill wrote: > What about creating a Flex based tool... That has potential. The current tool is simple HTML forms that attempt to do what you describe, but does not flow very well as it currently exists. ~| Adobe® ColdF

Re: YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Rob Parkhill
Ian, What about creating a Flex based tool that allows users to choose the table they want to get the data from and then the columns for the table (that you wanted to be able to select by) would be available. Basically making a 'drag and drop' kinda query builder. where the users don't type anyt

YIKES! I must let internet users write SQL queries for our database!

2009-04-23 Thread Ian Skinner
Did I get your attention? Luckily these are read-only queries, but still! I have a meeting this afternoon to discuss reworking/developing an interface to allow anonymous, anybody in the world, users to develop add hock queries on a respectably large database. This database gets about 2.5 mill

SQL Server Locks

2009-04-15 Thread Dan Baughman
Hi All, SQL Server locks seem to cause problems that result in processes remaining blocked until something intervenes in two cases: circular dependencies between processes and application or when a query is cancelled but the lock isn't released. My question pertains to the latter. Has a

Re: expert sql challenge

2009-04-14 Thread Judah McAuley
wrote. If you go to the MSDN page: http://msdn.microsoft.com/en-us/library/ms189885(SQL.90).aspx And look down for "C. Generating a value list using PATH mode" it shows their example. The only real difference is that they were using AS "data()" which I am not familiar wi

Re: expert sql challenge

2009-04-14 Thread Barney Boisvert
I don't know about the data function. I try to avoid SQL Server when I can. ;) We use it for some projects with MySQL's query language wasn't rich enough to express certain types of queries, but in general I use MySQL when possible. Did they have an example of a query equivale

Re: expert sql challenge

2009-04-14 Thread Judah McAuley
data(). I'm not familiar with the data() function and why they would use it but your query doesn't Would you mind elaborating? And for those interested in what I'm talking about his Barney's use of FOR XML PATH, the msdn reference is here: http://msdn.microsoft.com/en-us/library/ms18

Re: expert sql challenge

2009-04-14 Thread Barney Boisvert
Here you go. Note that they're not really semantically equivalent, they just happen to return the same results. The approach for obtaining the result is completely different, and the MS SQL one, while less direct for the actual comma separate list creation, is far more expressive for

Re: expert sql challenge

2009-04-14 Thread Scott Stroz
sion's valuelist method. > Very > > nice indeed! > > > > -Original Message- > > From: Richard White [mailto:rich...@j7is.co.uk] > > Sent: Tuesday, April 14, 2009 2:59 PM > > To: cf-talk > > Subject: Re: expert sql challenge > > &g

Re: expert sql challenge

2009-04-14 Thread C. Hatton Humphrey
> Sent: Tuesday, April 14, 2009 2:59 PM > To: cf-talk > Subject: Re: expert sql challenge > > > thanks for all your replies. > > barney, yes we are using mysql and didnt even know about the qroup_concat. > it works like a dream and where this task was taking 23

RE: expert sql challenge

2009-04-14 Thread Andy Matthews
Nice. So group_concat works sort of like ColdFusion's valuelist method. Very nice indeed! -Original Message- From: Richard White [mailto:rich...@j7is.co.uk] Sent: Tuesday, April 14, 2009 2:59 PM To: cf-talk Subject: Re: expert sql challenge thanks for all your replies. barney

Re: expert sql challenge

2009-04-14 Thread Richard White
DB are you using? If it's MySQL, you can use this: > >select client.name, group_concat(clientphone.number) as phone numbers >from client > left outer join clientphone on client.id = clientphone.clientId >group by client.name > >If it's MS SQL Server you can use a sub

Re: expert sql challenge

2009-04-14 Thread Dominic Watson
or example, this is the output query that we need > client details | telephone numbers > > mr client 1    | 123456789,234567891,21342 > mr client 2    | 583736245,828262u82 > > we have no idea if there is a way to ask SQL to combine the one to many >

Re: expert sql challenge

2009-04-14 Thread ColdFusion Developer
Have you looked into StoredProcs? Push the load off the web server onto the SQL Server (or Oracle whichever) On Tue, Apr 14, 2009 at 3:38 PM, Richard White wrote: > > Hi > > we have a relational database and one task is taking far too long but we > cannot see any way to impro

Re: expert sql challenge

2009-04-14 Thread Scott Stroz
ut query that we need > client details | telephone numbers > > mr client 1| 123456789,234567891,21342 > mr client 2 | 583736245,828262u82 > > we have no idea if there is a way to ask SQL to combine the one to many > telephone numbers into one c

Re: expert sql challenge

2009-04-14 Thread Barney Boisvert
What DB are you using? If it's MySQL, you can use this: select client.name, group_concat(clientphone.number) as phone numbers from client left outer join clientphone on client.id = clientphone.clientId group by client.name If it's MS SQL Server you can use a subquery with FOR XM

expert sql challenge

2009-04-14 Thread Richard White
the output query that we need client details | telephone numbers mr client 1| 123456789,234567891,21342 mr client 2| 583736245,828262u82 we have no idea if there is a way to ask SQL to combine the one to many telephone numbers into one cell and seperate them

Re: SQL server - Order totals by month, even without month data

2009-03-26 Thread Will Tomlinson
Thanks to everyone for their help with this! Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://ww

RE: SQL server - Order totals by month, even without month data

2009-03-25 Thread brad
Original Message Subject: Re: SQL server - Order totals by month, even without month data From: Greg Morphis Date: Wed, March 25, 2009 7:26 am To: cf-talk Create a dummy table with the information for the current year and preform a UNION to your existing data On Wed, Mar 25, 2009 at 6:26

Re: SQL server - Order totals by month, even without month data

2009-03-25 Thread Greg Morphis
Create a dummy table with the information for the current year and preform a UNION to your existing data On Wed, Mar 25, 2009 at 6:26 AM, Will Tomlinson wrote: > > I have your typical tblorders. I'm trying to query it to get order totals by > month, and I'm outputting them in > > All goes fine

Re: (ot) about Vista - sql server 2005 express etc.

2009-03-25 Thread Don L
Thank you all for your bits on Vista. FYI, to those who have to deal with sql server 2005 express, a few days ago, XP SP3 had a serious problem with installing this sql server package due to the MSXML6.0 SP2 bugs. Don >Windows_NT > >I'm running Vista Home Premium > &g

Re: SQL server - Order totals by month, even without month data

2009-03-25 Thread Azadi Saryev
when i had to do a similar thing, this is how i did it: your query returns monthName and totalOrders columns. create a structure from your query with Month as key and Total as value: create a list of month names in the format returned by your query: create a new query you will use for you

Re: SQL server - Order totals by month, even without month data

2009-03-25 Thread Azadi Saryev
posted a reply hours ago, but it still hasn't showed up... reposting... when i had to do a similar thing, this is how i did it: your query returns monthName and totalOrders columns. create a structure from your query with Month as key and Total as value: create a list of month names in the

RE: SQL server - Order totals by month, even without month data

2009-03-25 Thread William Seiter
missing months, then create a new query using QueryNew to hold the old query, plus the new rows of months that have a 0 in them. William -Original Message- From: Will Tomlinson [mailto:w...@wtomlinson.com] Sent: Wednesday, March 25, 2009 4:26 AM To: cf-talk Subject: SQL server - Order totals

Re: SQL server - Order totals by month, even without month data

2009-03-25 Thread Donnie Carvajal
The only way to get data into a query is to have data in a table. So there are a couple of options. 1. Create a months table that has 12 records 2. Create a temp table with 12 records You may also need to create a years table as well. Then your query would be something like SELECT year, mo

RE: SQL server - Order totals by month, even without month data

2009-03-25 Thread Robert Rawlins
Hello Will, I'd advise building yourself a calendar table, these are always a useful facility in any application where you're going to be doing report generation, I've attached the SQL script which creates and populates your calendar table, this basically creates a record for

RE: SQL server - Order totals by month, even without month data

2009-03-25 Thread Dawson, Michael
-talk Subject: SQL server - Order totals by month, even without month data I have your typical tblorders. I'm trying to query it to get order totals by month, and I'm outputting them in All goes fine, except in 2009. We have no order data for April-December of course, so the query re

RE: SQL server - Order totals by month, even without month data

2009-03-25 Thread Dawson, Michael
Also, since you are using SQL, you can use a CTE to dynamically generate a date range as a temp table, so to speak. I prefer a regular table as I mentioned in my last reply, however. Thanks, Mike -Original Message- From: Will Tomlinson [mailto:w...@wtomlinson.com] Sent: Wednesday

SQL server - Order totals by month, even without month data

2009-03-25 Thread Will Tomlinson
I have your typical tblorders. I'm trying to query it to get order totals by month, and I'm outputting them in All goes fine, except in 2009. We have no order data for April-December of course, so the query returns just three rows (Jan, Feb, March). I need it to return all 12 months, with 0

Re: SQL Syntax error

2009-03-16 Thread Steve Lichtenberg
worked for me. Plus, that is what Adobe shows in their docs. 2009/3/16 Jason Fisher : > > Interesting ... COUNT(DISTINCT prodcode) will work, huh? That may come in > handy some day. Thanks! > > > > ~| Adobe® ColdFusion® 8 so

Re: SQL Syntax error

2009-03-16 Thread Donnie Carvajal
COUNT(DISTINCT [fieldName] is very important to remember when using JOINS. For example, if you have the query... SELECT COUNT(A.code) AS total FROM TableA A INNER JOIN TableB ON A.code = B.code And you wanted to know how many records in TableA have records in TableB. If this query returns 10

Re: SQL Syntax error

2009-03-16 Thread Jason Fisher
Interesting ... COUNT(DISTINCT prodcode) will work, huh? That may come in handy some day. Thanks! ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doublecli

Re: SQL Syntax error

2009-03-16 Thread Steve Lichtenberg
Thanks. I found it finally. The right syntax (for this issue) is select count(distinct prodcode) as prodcnt There was a second issue with computed_field_1 the was being bounced by the ODBC driver as well. On Mon, Mar 16, 2009 at 3:54 PM, Jason Fisher wrote: > > This is invalid: > > distinct(

re: SQL Syntax error

2009-03-16 Thread Jason Fisher
This is invalid: distinct(count prodcode) Are you trying to do a DISTINCT on the aggregate function COUNT()? Not sure that would work, but it would have to be DISTINCT COUNT(prodcode) if that's what you're after. ~| Adobe

SQL Syntax error

2009-03-16 Thread Steve Lichtenberg
Can anyone point me to the error in this code and the generated query? I am kind of stuck right now as it all looks ok to me. Thanks --S ^ [Macromedia][SequeLink JDBC Driver][ODBC Socket][DataDirect][ODBC Progress OpenEdge Wire Protocol driver][OPENEDGE]Syntax error in SQL statement at or

Re: SQL Syntax error

2009-03-16 Thread Steve Lichtenberg
the generated query? > I am kind of stuck right now as it all looks ok to me. > > Thanks > --S > ^ > > > [Macromedia][SequeLink JDBC Driver][ODBC Socket][DataDirect][ODBC > Progress OpenEdge Wire Protocol driver][OPENEDGE]Syntax error in SQL > statement at or about "

RE: SQL Queries to Linked Server SQL 2005 / Access 2007

2009-03-12 Thread William Seiter
Hey Jeanmarie, I have always used OpenQuery() for my linked server connections. SELECT * FROM openquery([connectionname], '[query]') The cool thing about this is that you can bring everything from the access dB to the SQL server for joining. Example might be... SEL

SQL Queries to Linked Server SQL 2005 / Access 2007

2009-03-12 Thread Jeanmarie Richardson
Hi -- I am quering against a linked server (access2007) via SQL 2005. When I first started working on this I wrote all of my CF queries against a local copy of the Access2007 database. Each query works fine. Now that I am migrating my code to query against this linked server, queries that

Re: (ot) SQL Server disk configuration

2009-03-11 Thread Jochem van Dieten
On Wed, Mar 11, 2009 at 3:01 AM, Rick Root wrote: > The server has 4x146gb scsi drives set up in 2 RAID-1 mirrored sets. > > We ended up with a 20 gig C drive and a 120gb D: drive on one mirrored > set, and 70 gig E: and F: drives on the other mirrored set.  Currently > we'v

(ot) SQL Server disk configuration

2009-03-10 Thread Rick Root
Dear list, We had an engagement with the SeeFusion folks a few months ago (6?) in which they made some recommendations to us regarding a new SQL Server box. I'm not sure if our hosting company did what they recommended (I was not involved in that part of the engagement) but here's

Re: Server slowly dying - Possibly a memory leak --- CF7, MS SQL Server 2005 Express

2009-02-27 Thread Dan Baughman
times I'm talking about those wierd lock ups where all your threads get tied up or jrun error messages get output to the browser. Dan On 2/26/09, Dave Watts wrote: > >> > Have you considered migrating SQL Server to a >> > dedicated machine? >> >> I'd l

Re: Server slowly dying - Possibly a memory leak --- CF7, MS SQL Server 2005 Express

2009-02-26 Thread Dave Watts
> > Have you considered migrating SQL Server to a > > dedicated machine? > > I'd like to avoid that for cost reasons. I've been running > the site nobosh.com on the one sever for over a year > without issue, only recently due to product updates and > increa

Re: Inner, Left and Right joins returning the same records AKA Tough SQL relationship part deux

2009-02-26 Thread C S
>FROM >tableA p LEFT OUTER JOIN > tableB e ON (p.use_no = e.use_no AND p.year = e.year and >e.duplicate_set is not null) LEFT OUTER JOIN >tableB d ON (e.duplicate_set = d.duplicate_set AND e.year = >d.year) Yes, I think that would work. There is probably a more elegant method

Re: connecting to sql server datasource in CF8

2009-02-26 Thread Priya Koya
Try this setup: http://www.fusioncube.net/index.php/coldfusion-sql-server-express On Thu, Feb 26, 2009 at 9:37 PM, Mike Little wrote: > > hey guys, i have recently installed coldfusion 8. everything going sweet > except creating a datasource to connnect to a remote ms sql server.

Re: connecting to sql server datasource in CF8

2009-02-26 Thread Mike Little
i am not totally following your question, but if it helps - i can connect to the db with enterprise manager. >Did you check with th TCP/IP enadled, port number and you should not use >windows password but the database password. > > > >On Thu, Feb 26, 2009 at 9:37 PM, Mike Little wrote: > >> ~

Re: connecting to sql server datasource in CF8

2009-02-26 Thread Priya Koya
nnnect to a remote ms sql server. > > i get the following... > > Connection verification failed for data source: xyz123 > java.sql.SQLException: Timed out trying to establish connection > The root cause was that: java.sql.SQLException: Timed out trying to > establish connection

connecting to sql server datasource in CF8

2009-02-26 Thread Mike Little
hey guys, i have recently installed coldfusion 8. everything going sweet except creating a datasource to connnect to a remote ms sql server. i get the following... Connection verification failed for data source: xyz123 java.sql.SQLException: Timed out trying to establish connection The root

re: Inner, Left and Right joins returning the same records AKA Tough SQL relationship part deux

2009-02-26 Thread Jason Fisher
Not quite I sure I follow (sorry, almost out the door here), but I think you just want your aggregate to an entry for every A regardless of B, right? Try making your joins LEFT, and I think you'll have it: ... FROM tableA p LEFT OUTER JOIN tableB e ON (p.use_no = e.use_no AND p.year

Inner, Left and Right joins returning the same records AKA Tough SQL relationship part deux

2009-02-26 Thread Ian Skinner
This is a follow on request to yesterday's post: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319832. To review I have two tables something like this. TableA year use_no county rec_type 2009 1 1 X 2009 3 1 X 2009 4 1 Y 2009 5

Re: Tough SQL relationship

2009-02-25 Thread Jason Fisher
Not sure about what the record_with_dups is exactly supposed to represent, but it looks like you want something along these lines: SELECT a.county, a.rec_type, COUNT(a.use_no) AS records, COUNT(b.dup_set) AS record_with_dups FROM [Table A] AS a LEFT OUTER JOIN [Table B] AS b ON a.use_no = b

Re: Tough SQL relationship

2009-02-25 Thread C S
>I think something like ((A join B on use_no) join A on county) union A >will effectively merge both table so you have all records full >complete in the result. Then you can window / partition that for yout >record_with_dups column. > >Jochem I am still wrapping my head around it. But from what I

Re: Tough SQL relationship

2009-02-25 Thread Jochem van Dieten
On Thu, Feb 26, 2009 at 12:12 AM, Ian Skinner wrote: > Yes, that is exactly what the first three columns are; a count of > records grouped by County and then rec_type.  The tie-in with TableB is > that this table contains other records that are suspected to be > duplicates of records that where pu

Re: Tough SQL relationship

2009-02-25 Thread Ian Skinner
C S wrote: > Maybe I need glasses, but I missing something here. The first three report > columns look like a count(*) from tableA by use_no and county. What is the > tie-in with TableB and the "record_with_dups" column? > Yes, that is exactly what the first three columns are; a count of r

Re: Tough SQL relationship

2009-02-25 Thread C S
Maybe I need glasses, but I missing something here. The first three report columns look like a count(*) from tableA by use_no and county. What is the tie-in with TableB and the "record_with_dups" column? >county rec_type records record_with_dups >1 X 2 3 >1

Tough SQL relationship

2009-02-25 Thread Ian Skinner
I have a tough nut to crack of a SQL report. First off, this is against a Oracle 11ge database if that matters. I have two tables. Table A use_no (key) county rec_type 1 1 X 3 1 X 4 1 Y 5 2

Re: Can I do this in a single SQL query?

2009-02-24 Thread Jim McAtee
- Original Message - From: "Matt Williams" To: "cf-talk" Sent: Tuesday, February 24, 2009 7:47 PM Subject: Re: Can I do this in a single SQL query? > UPDATE comments > SET userID = ( > SELECT userID > FROM users > WHERE users.email =

Re: Can I do this in a single SQL query?

2009-02-24 Thread Matt Williams
On Tue, Feb 24, 2009 at 9:25 PM, Jim McAtee wrote: >> > The new system requires user registration and new comments are now tied > directly to a user account.  What I'd like to do is link any newly > registered users to their old comments by using the email address.  It's > imperfect, but better t

RE: Can I do this in a single SQL query?

2009-02-24 Thread William Seiter
Can you update the comments table when a new registration happens, with the userid that matches the email address? William -Original Message- From: Jim McAtee [mailto:jmca...@mediaodyssey.com] Sent: Tuesday, February 24, 2009 6:26 PM To: cf-talk Subject: Can I do this in a single SQL

Can I do this in a single SQL query?

2009-02-24 Thread Jim McAtee
e name and email columns populated, while new comments have the userid populated instead. users userid int username varchar email varchar ... comments commentid int userid int name varchar email varchar commentvarchar ... Is there a single

Re: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Judah McAuley
e you found.  Keep in mind, this >> approach ASSUMES that one patient will never have two appointments at >> the same time on the same day. >> >> >> This runs on SQL Server 2000.  It is a little crude, but should get the >> point across: >> >

Re: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Dan Baughman
d, this > > approach ASSUMES that one patient will never have two appointments at > > the same time on the same day. > > > > > > This runs on SQL Server 2000. It is a little crude, but should get the > > point across: > > > > declare @appointment

Re: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Judah McAuley
e two appointments at > the same time on the same day. > > > This runs on SQL Server 2000.  It is a little crude, but should get the > point across: > > declare @appointment table > (id int identity primary key, > patient_id int, > doctor varchar(50), > appointment_

Re: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Judah McAuley
id >> patient_id >> doctor >> appointment_date (datetime) >> >> A patient can have 0...n appointments on any given day. What I need to >> do right now is generate a view that lists only the first appointment >> for each patient each day. I'm pretty

Re: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Brian Peddle
appointment >> for each patient each day. I'm pretty sure I need to be grouping by a >> day of year function on the appointment_date but my brain is kind of >> losing it on the rest. DB server is Sql Server 2000. >> >> Any thoughts? >> >> Thanks in advance

Re: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Ben Conner
t lists only the first appointment > for each patient each day. I'm pretty sure I need to be grouping by a > day of year function on the appointment_date but my brain is kind of > losing it on the rest. DB server is Sql Server 2000. > > Any thoughts? > > Thanks in advance

RE: Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread brad
based on the min date you found. Keep in mind, this approach ASSUMES that one patient will never have two appointments at the same time on the same day. This runs on SQL Server 2000. It is a little crude, but should get the point across: declare @appointment table (id int identity primary key

A non-SQL error occurred while requesting a connection from dataS

2009-02-24 Thread Joe Dziobek
This is related to an earlier post today "Coldfusion 8 Data Source Timeout". I am still getting a timeout when configuring a certain Data Source to a remote database. Using dbaccess from my CF8 machine works - no problem. I looked the cfserver.log and get: A non-SQL error occu

Semi-OT: SQL question...Select first item for each person for each day

2009-02-24 Thread Judah McAuley
e 0...n appointments on any given day. What I need to do right now is generate a view that lists only the first appointment for each patient each day. I'm pretty sure I need to be grouping by a day of year function on the appointment_date but my brain is kind of losing it on the rest. DB server

Re: SQL Server 2005 Datasource failing

2009-02-18 Thread Stan Winchester
For those who are interested this was solved at: http://forums.newatlanta.com/messages.cfm?threadid=D0F5E9DE-C84B-43EC-8C34667F8FB9077B Thanks to those who helped! Stan ~| Adobe® ColdFusion® 8 software 8 is the most important

Re: SQL Server 2005 Datasource failing

2009-02-18 Thread Stan Winchester
I checked that TCP/IP is enabled and it was. I found an article that talked about making sure SQL Server 2000 was at least sp3a, so I updated to sp4. Now CF8 on a remote box verifies the connection, but BD7 does not (BD7 is on the same box as CF8). I get the error: "Login failed for

Re: SQL question

2009-02-17 Thread Mike Soultanian
Mike Kear wrote: > The first two examples are selecting the literal value 'mike' and '1' > In the first example, you are telling SQL to give the column > containing 'mike' a name of 'name'. aha.. literal was the word I was looking for. I did

RE: SQL Server 2005 Datasource failing

2009-02-17 Thread Pat Wenke
Is TCP/IP enabled on your SQL 2005 instance? By default, TCP/IP connections are disabled in SQL 2005. - Pat -Original Message- From: Brad Wood [mailto:b...@bradwood.com] Sent: Tuesday, February 17, 2009 10:32 PM To: cf-talk Subject: Re: SQL Server 2005 Datasource failing What port

Re: SQL Server 2005 Datasource failing

2009-02-17 Thread Brad Wood
What port is SQL Server 2005 listening on? Also, can you connect using the same password in Enterprise Manager? Run a trace on the 2005 database and include failed login events from the audit group. Can you see the login failures coming through. If not, CF isn't hitting the correc

SQL Server 2005 Datasource failing

2009-02-17 Thread Stan Winchester
On my local network I've been using SQL Server 2000 and connecting to it with BD7 & CF8 with no problems. I also have SQL Server 2005 on it and am having trouble creating a datasource that logins. It seems to see SQL Server 2005, but I am getting the following error: Connection ver

Re: Maybe I need a SQL Service Consultant...

2009-02-17 Thread Dave Watts
> Has anyone got an example of a wish list request coming into the > language/server? > > Not being flippant, just interested is all. I can think of quite a few. Recently, the support of CFQUERYPARAM with cached queries, for example. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fi

Re: Maybe I need a SQL Service Consultant...

2009-02-17 Thread Paul Hastings
Jochem van Dieten wrote: > ColdFusion comes with DataDirect 3.x. > > http://adobe.com/go/wish/ or you might give jTDS a spin. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free T

RE: Maybe I need a SQL Service Consultant...

2009-02-17 Thread Adrian Lynch
Has anyone got an example of a wish list request coming into the language/server? Not being flippant, just interested is all. Adrian > -Original Message- > From: Jochem van Dieten [mailto:joch...@gmail.com] > Sent: 17 February 2009 16:41 > To: cf-talk > Subject: Re: May

Re: Maybe I need a SQL Service Consultant...

2009-02-17 Thread Jochem van Dieten
On Tue, Feb 17, 2009 at 5:33 PM, Rick Root wrote: > On Sat, Feb 14, 2009 at 6:45 PM, Paul Hastings wrote: >> >> ..or you might look to a newer JDBC driver that knows about "n" datatypes. >> it's >> not cf, its the db driver. > > I find it hard to believe that CF8's database drivers don't know abo

Re: Maybe I need a SQL Service Consultant...

2009-02-17 Thread Rick Root
On Sat, Feb 14, 2009 at 6:45 PM, Paul Hastings wrote: > > Rick Root wrote: >> It would seem that way. My rule of thumb is now: >> >> Always use nchar even if you know it will NEVER have unicode data in >> it (like you're storing a coldfusion UUID) because CF will do all >> unicode or all non-uni

Re: SQL question

2009-02-16 Thread Brian Kotek
I've always known it as selecting a literal value. So "SELECT 1" is "select the literal value 1". On Mon, Feb 16, 2009 at 7:41 PM, Mike Soultanian wrote: > > I was curious if anyone knows how you describe the following SQL > functionality: > > SELECT &#

Re: SQL question

2009-02-16 Thread Dave Watts
> I was curious if anyone knows how you describe the following SQL > functionality: > > ... > > The last one is obvious as it's SQL arithmetic, but what are the first > two examples? Are those also examples of "SQL arithmetic" as well? I > can't find

Re: SQL question

2009-02-16 Thread Mike Kear
The first two examples are selecting the literal value 'mike' and '1' In the first example, you are telling SQL to give the column containing 'mike' a name of 'name'. A practical example of where you might use this behaviour might be : SELECT 

SQL question

2009-02-16 Thread Mike Soultanian
I was curious if anyone knows how you describe the following SQL functionality: SELECT 'mike' as name returns a single column named "name" with a single row containing "mike" I also know you can do stuff like: SELECT 1 Which returns a column named "1&qu

Re: SQL Replication Models

2009-02-16 Thread Don L
ume currently? > >Hmm... Those are questions I don't know how to answer. However, if >I'm understanding where your question process is going, you think >having a process that would copy and apply the transaction logs on the >SQL 2005 server might be a safer idea? That

Re: SQL Replication Models

2009-02-16 Thread Jochem van Dieten
o test :) Just do a restore of the full backup somewhere and run some transaction logs afterwards. > However, if > I'm understanding where your question process is going, you think > having a process that would copy and apply the transaction logs on the > SQL 2005 server might be a s

Re: SQL Replication Models

2009-02-16 Thread C. Hatton Humphrey
to answer. However, if I'm understanding where your question process is going, you think having a process that would copy and apply the transaction logs on the SQL 2005 server might be a safer idea? That's an interesting idea! How would I accurately monitor those metrics? As I said

Re: SQL Replication Models

2009-02-16 Thread C. Hatton Humphrey
> Don wrote: > With regard to 1,498 tables, do you mean, User Tables? just for clarity. Yes, 1498 user tables. The application was originally built on a flat-file database system like DB3/4 or Foxpro and was ported to SQL Server without re-engineering the database. All of the tables

Re: SQL Replication Models

2009-02-16 Thread Jochem van Dieten
On Mon, Feb 16, 2009 at 1:16 AM, C. Hatton Humphrey wrote: > The main thing I'm worried about is any performance "hit" on the > publishing server. The target server can lag behind data-wise by a > bit (30 minutes to an hour is an acceptable delay). Those do not appear to be very challenging requ

Re: SQL Replication Models

2009-02-15 Thread Don L
>Thanks for the comments, Don! > >The main thing I'm worried about is any performance "hit" on the >publishing server. The target server can lag behind data-wise by a >bit (30 minutes to an hour is an acceptable delay). The problem is >the size. A MS Dynamics GP database contains 1,498 tables (

Re: SQL Replication Models

2009-02-15 Thread C. Hatton Humphrey
Thanks for the comments, Don! The main thing I'm worried about is any performance "hit" on the publishing server. The target server can lag behind data-wise by a bit (30 minutes to an hour is an acceptable delay). The problem is the size. A MS Dynamics GP database contains 1,498 tables (not in

Re: SQL Replication Models

2009-02-15 Thread Don L
>Question for anyone that handles SQL Replication: What effect would >setting up transactional replication from a large Windows 2000 >database (17 Gb) with moderate usage (18-20 max simultaneous >connections) to a Windows 2005 server have on the performance of the >Windows 2000

Re: Maybe I need a SQL Service Consultant...

2009-02-15 Thread Jochem van Dieten
f you need to use MS SQL Server you should stop using UUIDs alltogether and just use GUIDs in your CFMl and the UNIQUEIDENTIFIER datatype in MS SQL Server. Jochem -- Jochem van Dieten http://jochem.vandieten.net/ ~| Adobe® Cold

<    5   6   7   8   9   10   11   12   13   14   >