Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2007, 05:55 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default I can read one table but the other not??? Why

Hi,

I have a DB with a lot of table, which came with a software we bought (it is in SQl server 2003).
I added some table and I can have acces to them. But when I do a select to the original tables I get the next errror:
===
Microsoft OLE DB Provider for ODBC Drivers error '80040e37'

[Microsoft][ODBC SQL Server Driver][SQL Server]El nombre de objeto 'pl_mov_general' no es válido.

===

The code is simple. It is:
===
Set conn = server.createobject("adodb.connection")
conn.open "DSN=CCS_BACKUP"
set rs = server.createobject("adodb.recordset")
sql=" SELECT * FROM pl_mov_general"
response.write(Sql)
rs.open sql,conn
===

Should it be something with the level of security on the server? If so, how do I change that?

Many thx,

Johny


 
Old February 26th, 2007, 09:01 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

Check out this page, it might be able to help you:
http://tutorials.aspfaq.com/8000xxxx...37-errors.html

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html

Discussion:
http://p2p.wrox.com/topic.asp?TOPIC_ID=56429
 
Old February 26th, 2007, 10:50 AM
Authorized User
 
Join Date: Nov 2005
Posts: 72
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thx Dparsons,

I already read the page, but couldn´t find anything.

But I found it already.
the only thing I had to do is to add "IMP." before the table name.

So :
sql=" SELECT * FROM pl_mov_general"
Becomes:
sql=" SELECT * FROM imp.pl_mov_general"

Now I can´t tell you why. I just found out by luck.

Many thx,

Johny








Similar Threads
Thread Thread Starter Forum Replies Last Post
How to associate table rows with hyperlink?[READ] user0b PHP How-To 1 July 30th, 2008 04:20 AM
Read-Only Linked Table pjm Access VBA 2 December 1st, 2006 03:37 PM
Read-Only Linked Table pjm Access 6 August 21st, 2006 07:42 AM
Q:Read two rows from table LegoMan ASP.NET 1.0 and 1.1 Basics 4 October 14th, 2003 01:22 PM
Auto_Identity column read in another table rosalynb ADO.NET 1 September 17th, 2003 05:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.