Link to home
Start Free TrialLog in
Avatar of armanbena
armanbena

asked on

Web App Not Retrieving Data from Database

Hi,

I have a web app.  The code is working fine.  I had the app on one server and the database on another.  I then moved the code to a different server.  The page renders, however, I am not viewing the same data.  Is there something I need to do specifically to connect to the server with db?  Not sure what to do and looking for guidance. I tried the dbserver tag in the cfquery, but it seems that it has been deprecated.  Any suggestions?
Avatar of Kernel_D
Kernel_D
Flag of United States of America image

Not all hosts support remote database connectivity, meaning that the site files and database must be hosted by the same organization in order to communicate. If this is the case, then you need to recreate your database somewhere where you can connect to it and change your connection string to point to the new server.
ASKER CERTIFIED SOLUTION
Avatar of cyberdyne_dev
cyberdyne_dev

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of _agx_
   > The page renders, however, I am not viewing the same data

Are you seeing different data than you expected OR nothing at all? Are you getting an error message?
Avatar of armanbena
armanbena

ASKER

No, there's no error.  When I do a search, and originally data was being returned, now it shows no records found.
First I'd check whether the problem is the data OR the query.   Run a SELECT * FROM tableName (no WHERE filters) Does it return the data you were expecting to see? If yes, it might be a problem with the cfquery filters.
> No, there's no error.  

So what ended up being the problem? If there wasn't a datasource configured you'd definitely get an error.