Ask a Question related to Coldfusion Database Access, Design and Development.
-
jci714 #1
SQL invalid object name
I used SQL administrator to copy a database. Registered it successfully with
XP, and CF Administrator. I can run query analyzer with the new database.
When I change the DSN name in a .cfm it reognizes the DSN but all tables get
a "invalid object name" error.
All the permissions for the Database and Tables seem to be the same.
I can not find any other permissions to check. I had the same problem a long
time ago, but can't remember the fix.
Help
jci714 Guest
-
Invalid object name
So, this keeps popping up. I'm running scripts to create databases and ODBC connections and this error pops up quite frequently. It's not good. ... -
Invalid Object Name??
BTW, I'm using CFMX7 on Win2003Server -
Invalid Object Name??
I am having sort of the same problem. The query works fine until I go into Enterprise Manager and edit some content in the table the query is using.... -
Database Invalid Object Name
Ok so I am upgrading from a coldfusion 4.5 site and I set everything up, however, I am getting the following error whenever I try to connect to a... -
Invalid object name 'TABLE'
Can someone please tell me why I keep getting the following error? I think it is part of the connection but can't pin down the exact error. I would... -
mxstu #2
Re: SQL invalid object name
Sounds like you're using sql server.
- What kind of connection are you using: JDBC / ODBC?
- If you run the run the following in a cfquery and dump the results, what is
the database name?
SELECT DB_NAME() AS CurrentDatabaseName
mxstu Guest
-
-
mxstu #4
Re: SQL invalid object name
Maybe you haven't set the default database in the DSN, so you're in the
"master" database. If you run the run the following in a cfquery and dump the
results, what is the database name shown?
SELECT DB_NAME() AS CurrentDatabaseName
Btw - Why ODBC and not JDBC?
mxstu Guest
-
jci714 #5
Re: SQL invalid object name
SELECT DB_NAME() AS CurrentDatabaseName
Returns Master
jci714 Guest
-
mxstu #6
Re: SQL invalid object name
That's you're problem. Just open up the DSN and set the "default" to the correct database name (ie. not "master")
mxstu Guest
-
jci714 #7
Re: SQL invalid object name
I changed the default to the databasename, and it still shows master. I will shut everythi9ng down and see if it takes effect when I restart. I think that is the step I was forgetting. Thanks
jci714 Guest
-
jci714 #8
Re: SQL invalid object name
That took care of it. I have made note of it until next time.
Are there any advantages to using JDBC ?
Thanks.
jci714 Guest
-
jci714 #9
Re: SQL invalid object name
That was the problem.
Thanks for the quick replies.
What is the advantage to using JDBC?
jci714 Guest
-
Scott*e #10
Re: SQL invalid object name
using jdbc directly takes out the lag of the jdbc to odbc conversion.
I use MSSQL2000 wih jdbc without problem.
Scott*e Guest



Reply With Quote

