473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

The database name component of the object qualifier must be the name of the current database

Guys,

1st of all.. sorry about my english ok? Im from Brazil...

Im trying to get a RS connecting through 2 databases with the query
below:
SELECT
scar..osbalcao.numeroos,
ccell.dbo.atrib_os.os
FROM
ccell.dbo.atrib_os
JOIN scar.dbo.osbalcao on ccell.dbo.atrib_os.os =
scar.dbo.osbalcao.numeroos
WHERE scar.dbo.osbalcao.localprod = '257'
AND scar.dbo.osbalcao.status in ('EM')

On a SQL IDE i got a good RS, but, when i try to use that same query on
Delphi + ZEOS, the SQL Server tells me that "The database name
component of the object qualifier must be the name of the current
database".

I really dont understand why. I can only tell that the error is
returned from SQL Server.

Have anyone got the same trouble?

[]'s

Tiago Gigli

Apr 7 '06 #1
1 10662
Tiago Gigli (gi*********@gmail.com) writes:
1st of all.. sorry about my english ok? Im from Brazil...

Im trying to get a RS connecting through 2 databases with the query
below:
SELECT
scar..osbalcao.numeroos,
ccell.dbo.atrib_os.os
FROM
ccell.dbo.atrib_os
JOIN scar.dbo.osbalcao on ccell.dbo.atrib_os.os =
scar.dbo.osbalcao.numeroos
WHERE scar.dbo.osbalcao.localprod = '257'
AND scar.dbo.osbalcao.status in ('EM')

On a SQL IDE i got a good RS, but, when i try to use that same query on
Delphi + ZEOS, the SQL Server tells me that "The database name
component of the object qualifier must be the name of the current
database".


Try skipping databaes and schema names from the column references.

If that does not help, run Profiler and see what Delphi actually sends
to SQL Server. It's probably producing some prepare query or similar.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Apr 7 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
11
by: Andrew Thompson | last post by:
I have written a few scripts to parse the URL arguments and either list them or allow access to the value of any parameter by name. <http://www.physci.org/test/003url/index.html>...
1
by: Mark Barinstein | last post by:
Hello. W2k, db2 wse v8.1.4. Here is ddl that creates small test database (3 tables and 1 view). (i can't attach zip file with ixf files and loading script - it has ~ 1.3MB size, but if anybody...
3
by: DC Gringo | last post by:
Hi, I'm trying to use a custom action to modify a database (rather than create one) using the VS.NET '03's help example called "Custom Action to Create Database During Installation". I've made...
0
by: JSantora | last post by:
Essentially, InsertAT is broken! For the past couple of hours, I've been getting this "Parameter name: '-2147483550' is not a valid value for 'index'." error. Apparently, its caused by having...
29
by: MP | last post by:
Greets, context: vb6/ado/.mdb/jet 4.0 (no access)/sql beginning learner, first database, planning stages (I think the underlying question here is whether to normalize or not to normalize this...
20
by: weston | last post by:
I've got a piece of code where, for all the world, it looks like this fails in IE 6: hometab = document.getElementById('hometab'); but this succeeds: hometabemt =...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
0
by: Jonathan Wood | last post by:
I seem to be having errors creating and accessing an SQL database. Unfortunatley, I am brand new to SQL setup and administration issues so this really is not my area of expertise. I know I had...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.