Quantcast
Channel: Adobe Community : Popular Discussions - Database Access
Viewing all 69606 articles
Browse latest View live

SOT: How Many SQL Licenses?

$
0
0
We are migrating to SQL Server as the backend for our ColdFusion application.

The server is a dual processor machine.

The only USER of the database will be the web application, which will then present data and allow data entry to about 100 different web users within the company LAN.

Where is the magical formula for determining how many licenses we need?

We are now running with SQL Server Express (as proof of concept) and now want to move to the full version which will take better advantage of our harware. Do we just enter a different license number and be done with it, or do we need to reinstall SQL on the server?

Security of Application and Datasource >>>

$
0
0
Hi !
I have an application working with Oracle DB. I defined the datasource in Application.cfm file and use it everywhere as an application variable. Seems that this could create a security problem: if somebody will find out the datasource name, he could write a CF form to read/write these data in Oracle, right ? It does not matter that only authorized users have access to the database through the application.
Anybody solved this before ? How to protect the datasource ?
Thanks a lot in advance,
Gary.

how to solve this issue

$
0
0

Hi i am calling stored procedure and it works fine before but noe i am getting error as

 

[Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user 'sam'.(when i use username and password attributes in cfstoredproc)

[Macromedia][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'getData'(when i removed usename and password fields from cfstoredproc)

 

 

my cfsoredproc consists of

<cfstoredproc procedure="getData" datasource="#dba#"  username="sam" password="password"></cfstoredproc>

Can't create Datasource - Timed Out

$
0
0

Hi,

 

i want to create a datasource, but it wouldn't work correctly...

 

In the past i create datasources without any problems... now i install Windows7 and it will not work...

 

 

The Error:

Connection verification failed for data source: mySOurce
                         java.sql.SQLException: Timed out trying to establish connection
                         The root cause was that: java.sql.SQLException: Timed out trying to establish connection

 

 

I turned off my firewall - without any other result.

 

Any ideas ?

 

greetings from germany, nico

Can't create datasource to SQL Server

$
0
0

Hi Folks,

 

I'm running ColdFusion 9 Trial Version (no hotfixes), SQL Express 2005, Windows XP SP3, IIS.

 

Using ColdFusion Administrator, when I try to create a datasource to SQLExpress 2005 (SQL Server Express), using the SQL Server driver, I get the following error:

 

Connection verification failed for data source: AMT
java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]The requested instance is either invalid or not running.
The root cause was that: java.sql.SQLException: [Macromedia][SQLServer JDBC Driver]The requested instance is either invalid or not running.

 

The "instance", which I take to mean the database instance, is "machinename\SQLExpress"  (This is a so-called "named instance".)  This is what I enter into the "Server" field of the form (Data & Services -> Datasources -> Microsoft SQL Server).

On the other hand, I am able to create an ODBC datasource name in Windows using the Microsoft SQL Server Native Client Version 09.00.3042 driver and using the same instance, "machinename\SQLExpress".

 

Does anybody have any ideas as to what's wrong?

How do I tell if a mysql update was successful?

$
0
0

How do I tell if a mysql update was successful?

I need to know if an update was run or if the record was not found....  is there some way that coldfusion can use that traps success/fail resoponses from mysql [linda like myquery.RecordCount ]?

 

basically I am trying to update a row, if no row was updated - the record must not exist so I then need to do an insert...

 

-any ideas?

 

-sean

Multiple "WHERE" statements in SQL depending on number of records retrieved

$
0
0

I guess this can be done in a stored Proc, but anybody any idea if and how to create a cfquery that has multiple WHERE statements based on the number of records?

 

Right now I have a query that runs, and gets 4 random records, based on criteria "A" defined in the WHERE statement, now if it only gets 1 record, I hit the dbase again, retrieving the same columns, but with a different clause in the WHERE, and so on, 4 times until I end up with my set of records.

 

It would be better if I had a little logic in the SQL so that it would say, find 4 random records, and if there are only 1, then run with this WHERE and if I still don't have a total of 4 (or whatever I set it to), then use this where and so on and so on

 

Btw I am using MS SQL2008

 

Thanks

 

Mark

Retrieving random record set from SQL and also applying an ORDER

$
0
0

I need a query that is capable of obtaining X amount of random records from a SQL2008 database, but I also want those results to then order by a numberic field in the same table, camp_priority

 

I have

 

SELECT TOP #DisplayAmount#,camp_uid,camp_title,camp_text,camp_image_type
FROM campaigns
WHERE camp_uid IN

etc..etc

 

then at the bottom I have

 

ORDER BY newid(),camp_priority

 

The problem seems to be that I'm getting random records, but it's not ordering by the camp_priority

 

Anybody have any ideas?

 

Thanks

 

Mark


Memo field truncating on textarea form field

$
0
0

Greetings

 

I have a helpdesk app in which the user enters the issue on a form (memo field) and the tech enters their solution (another memo field).

 

I can't get the entire text that is in the DB to display on the tech's work form.

 

I tried: 

 

1) UPDATE main_helpdesk

  

       SET q_description = <cfqueryparam value="#Form.q_description#" cfsqltype="cf_sql_longvarchar" />

 

on the action page,

 

2) setting Unicode Compression to "no" in memo field properties in the DB (Access 2007 for now- SQLSever soon).

 

3) querying the memo fields separately from the main query:

 

SELECT queue_ID, q_description, q_tech_resolution

FROM main_helpdesk

WHERE queue_ID = #URL.queue_ID#

 

No luck as yet.....

 

Thanks for any solution to this.

 

sakonnetweb

Coldfusion 10 and Sqlite

$
0
0

Does Coldfusion 10 work with Sqlite?

 

Because CF10 uses Tomcat vs jrun, I'm not having any success inserting the latest jdbc driver in the /lib directory in a way that works with my sqlite datasources.  It worked fine in CF9.

 

I'm not really interested in all of the overhead of setting up mySQL as my database app is of very limited use.

 

Thanks in advance for any clues.

Finding the Oracle data source (ColdFusion application)

$
0
0

I inherited a ColdFusion 10 application with an Oracle 11g back end.  Recently, I began receiving java.sql.SQLSyntaxErrorException: [Macromedia][Oracle JDBC Driver][Oracle]ORA-00942: table or view does not exist error message when attempting to access the application on my Test server.  Since it is a gov't application, I do not have direct access to CF Admin or the database.  The gov't SysAdmin has verified the CF Admin connection is valid and connected.  The DBA has verified the data source exists and the database is up and running.  Thoroughly confused as to what is going on.   I posted on the Adobe ColdFusion support forum and they suggested I post it here to get database eyes on the issue.   The thread is here: https://forums.adobe.com/message/6854985#6854985

 

Thank you in advance.

Executing Remote Stored Procedures

$
0
0

I am trying to execute a stored procedure through ColdFusion.  The stored procedure being executed attempts to insert local data into a remote server table through a linked server.

 

Attempting the stored procedure call from ColdFusion results in an error:

 

[Macromedia][SQLServer JDBC Driver]The DBMS returned an unspecified error.  The command code was 253.

 

However, if the stored procedure is exected within SQL Server Management Studio, the call works correctly, no error.

 

I am using the same credentials within Management Studio as within ColdFusion (via Datasources).

MS Access driver (not unicode) problem.

$
0
0
I am having trouble creating an ms access DSN.

When I create the DSN I am getting this error.

---------
Unable to update the ColdFusion MX 7 ODBC Server.
An error occurred when performing a file operation WRITE on file
C:\JRun4\servers\BSApps\cfusion.ear\cfusion.war\WEB-INF\cfusion\db\slserver54\admin\test. inp.
The cause of this exception was: java.io.FileNotFoundException:
C:\JRun4\servers\BSApps\cfusion.ear\cfusion.war\WEB-INF\cfusion\db\slserver54\admin\test. inp
(The system cannot find the path specified).
---------

But this does create a row on the DataSource table. When I then try to
delete this DSN I receive the following error.

The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.

---------
The following information is meant for the website developer for
debugging purposes.
Error Occurred While Processing Request
An exception occurred when invoking an external process.
The cause of this exception was that: java.io.IOException:
CreateProcess:
C:\JRun4\servers\BSApps\cfusion.ear\cfusion.war\WEB-INF\cfusion\db\slserver54\admin\swcla .exe
-l dsd 'Macromedia ColdFusion MX 7 ODBC Server' 'test' error=3.

The error occurred in _sl54del.cfm: line 12
Called from msaccess.cfm: line 56
Called from msaccess.cfm: line 39
Called from msaccess.cfm: line 1
Called from _sl54del.cfm: line 12
Called from msaccess.cfm: line 56
Called from msaccess.cfm: line 39
Called from msaccess.cfm: line 1

-1 : Unable to display error's location in a CFML template.
---------

Here is some of my system information.

---------
System Information
Server Details
Server Product ColdFusion MX
Version 7,0,2,142559
Edition Developer
Serial Number Developer
Operating System Windows 2000
OS Version 5.0
JVM Details
Java Version 1.4.2_09
---------

Any help?

--------------

Searching on a date range

$
0
0
I have two tables I need to search both based on a startdate and enddate.

I was thinking something like

select *
from customers, booking
where arrivalDate BETWEEN CreateODBCDate(form.arrivalDate) AND departDate BETWEEN CreateODBCDate(form.departDate)
AND customer.booking_id = booking.booking_id

I haven't been able to get this to work any ideas in the right direction would be greatly appreciated

coldfusion 8 and SQL global temp tables

$
0
0
Hi,

We have recently upgrade to coldfusion 8.01 from cfmx 7 and have noticed something different in the behaviour of temporary tables. We sometimes create a global temporary table which is unique to a user and then access the same temporary table from a different cfm page within the same session.

ie. create Table ###variables.tempname#
and then in a different page within the same session ( and within seconds ) access it with

select * from ###variables.tempname#

This worked fine in CFMX 7 but in coldfusion 8 we are getting the error :

Invalid object name '#shill116015'

Meaning that the temporary table no longer exists.
We can access the temp table in the same page in which it is created so we know it is being created correctly.

I read that a solution is to wrap everything in a cftransaction but seeing as the select is on a different page this
isn't possible.

Any ideas ?

Thanks,
Simon,

Can CF and ASP Access the Same Database?

$
0
0
Hello. I'm about to go into beta with a ColdFusion 8 site I just wrote, and I've just realized there could be a problem I haven't anticipated. There's another site, written in ASP, which will accessing the same data at the same time. The data are in FoxPro for DOS, which (if I have the terminology right) is a 'file server' database. Both my site and the ASP site will be accessing it through ODBC. I will be accessing it on a read only basis, and I believe the ASP site accesses it read only as well. However, other employees in the company are constantly accessing it read/write.

The ASP site has been already up and running for some time, and the office manager (it's a small company) finds that he is able to avoid conflicts by first stopping the ASP server each morning, then starting FoxPro, then re-starting the ASP server. (I do not mean the IIS server, but a little EXE written by the ASP programmer, which puts up its own little window with 'start' and 'stop' buttons on it.)

However, I find that on my own PC, using the free Developer version of ColdFusion and accessing my site as localhost, if a DBF (database file) is opened in FoxPro (even if no one is currently writing to it), then my CF web site cannot access it, and vice versa. That is, if I start FoxPro first and open the DBF of interest, my web site can't access that DBF. And conversely, if I access it first via my web site, then FoxPro can't access it. In other words, the solution which works for the office manager and his ASP site does not work for me with CF on my local PC.

Will matters be different in their system, where I will be installing my site tomorrow, along with the Standard version of CF 8? If it matters, the FoxPro data and the Web server will be different boxes linked by a network. The operating system is Windows 2003 if I recall correctly.

Should I be saying 'Oops!' right about now?

I can probably come up with a workaround by having FoxPro write a record to an alternate DBF every time the DBF of interest to my site is updated, but will I have to do this?

Thanks for your help.

CF 8 Treating Field Content as SQL Command

$
0
0
While testing a new application using the CF 8 rich text control and pasting in Word content to update a database, I came across a strange problem. I pasted about 30 separate entries and successfully updated the database each time. However, one block of content returned the error "Executing the SQL Statement is not allowed" with the insert statement. After numerous debugging attempts I've narrowed the issue to the following: If the GRANT command is disabled for a datasource, the SQL command "insert into table (datafield) values ('  Grant dollars for the program...')" cannot be executed. It is interpreting the semi-colon followed by the word Grant as attempting to issue the SQL GRANT command on the database. This is not what is being attempted. It just so happened that the text content came out that way from the Word paste into the rich text control. The above error occurs on a simple Access database. However, this does not occur in CF 7, the database is successfully updated with the text specified. I believe this to be a bug.

p.s. "Enable Global Script Protection" is NOT checked in CF Admin.

Problem with IN clause substitution in Sybase

$
0
0
I am experiencing a problem with IN clause substitution in embedded SQL with a Sybase databse.

My Cold Fusion server is MX 7.

The Database is Adaptive Server Enterprise/12.5.0.3/EBF 10689 IR/P/Sun_svr4/OS 5.8/rel12503/1915/64-bit/FBO/Thu Jan 23 16:05:19 2003

Here's the problem. I have a Cold Fusion variable bureau_incode which I am using to define the values in my IN clause. When I comment out my query and display this value to the HTML page, bureau_incode has the following value:

('OET','OGC','OIG','OLA','OMD','OMR','OSP','OTHER','OWD','PSHSB','WCB','WTB')

My embedded SQL CFQUERY looks like this:

quote:

<cfquery name="qResults" datasource="#request.dsn#">
Select Name,
bureau_code,
Telephone,
CellPhone,
Pager,
Email,
Availability,
Explanation,
Password,
Admin,
last_login = convert(varchar(20),last_login,0)
from PAMS where Availability = 'N'
<cfif #request.seltype# IS NOT "ALL">
and bureau_code IN #bureau_incode#
</cfif>
</cfquery>


When the code runs, I get the errorError Executing Database Query. Incorrect syntax near 'OET'.

There is no incorrect syntax. Is there any special way to submit the IN clause to ColdFusion MX 7? Previously, we were using ColdFusion 4.5 (I believe) server, and the code worked perfectly, albiet with double-quotes in the replacement string. Any help would be appreciated. This type of substitution worked nicely in the previous server version, I can't imagine why it would no longer work.

MS Access Vs. SQL Server... Internet Appropriateness

$
0
0
I have a client who uses and uploads an Access database to the internet
that we are using Coldfusion to access.

The issue is, that when someone is "viewing" the Coldfusion page, then
the database gets a lock, as Access believes (correctly) that the
database is open. Often times the upload is attempted at the same time
the lock is in place, and then both the access .mdb file and the .ldb
files become so corrupted, that they cannot be deleted, removed, or
otherwise corrected through an FTP access. I have to get tech support
at the hosting office to manually remove the locks and deleting both
files.

The upload is an export of a proprietary third party vendor office
system. I have made recommendations to have the database uploaded in an
Internet appropriate database, like SQL server or MySQL. The vendor
maintains that "ACCESS is a SQL compliant relation database". I content
that is not designed for multiuser Internet database use.

Can someone provide some links, insight, or other direction that either
validate my position or validate the vendor?

Note... this file used to be an Excel spreadsheet export that we were
able to upload and create Coldfusion pages, and the lock corruption
issue was worse then... Now is happens about 2-3 times per year
as opposed to 5-6... STill the issue I believe is Microsoft related.

Tami

Hello

$
0
0
Hello
I need some help!
.

I have dreamweaver-8, cold-fusion-mx7 & access database“mdb” files. All of this is setup local on my computer and I have made record sets to dynamically place items on web pages.
.
All of this is working fine locally on my computer.
.
Now for the problem!
I have a hosting account at Godaddy.com. I have added cold fusion to the account.
I have transferred static web page files to the hosting account with “ftp” and they are working fine.
My dynamic “cfm” web pages are also transferring fine and the static parts are loading fine.
.
But, I can’t get the access tables loaded at Godaddy.com so that my record sets can find the tables.
I have called Godaddy and no luck.
.
Chipped
chipped@live.com
Thanks
Viewing all 69606 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>