473,890 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

To retrive a table from one database to and another database(same table)

hi
i have emp table in one database , how to retrieve same table another
database
through query analizer
give code ,,,

Mar 17 '06 #1
2 1286
Hi,

use the three part notation:

SELECT * FROM database.owner. Objectname

(replace owner by schema for SQL2k5)

HTH, Jens Suessmeyer.

---
http://www.sqlserver2005.de
---

Mar 17 '06 #2
Hi surya

While the first database is "Current" as would result from:

Use FirstDatabaseNa me

select * from OtherDatabaseNa me..Emp
--
-Dick Christoph
"surya" <su*******@gmai l.com> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. .
hi
i have emp table in one database , how to retrieve same table another
database
through query analizer
give code ,,,

Mar 17 '06 #3

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

Similar topics

2
6410
by: JJ_377 | last post by:
How does one make a copy of a database (with the data) on the same server. Would like to do this to use the copy in a test environment. I looked at the Copy Database Wizard but the instructions in Books Online state that the database must be copied to another server and cannot be renamed using this process. Thank you.
2
3337
by: phillip.s.powell | last post by:
This is what I tried: update student_db.student set activities = (select i.activities from client.student c, student_db.student s where c.unique_key = s.unique_key); ERROR 1093 (HY000): You can't specify target table 'student' for update in FROM clause mysql>
2
7467
parshupooja
by: parshupooja | last post by:
Hello , I am using asp.net C# SQL Server . I have form on asp.net page consists various fields. field 1, field 2 ------ upto field 10 on click of submit button i need to save all information entered by user into table1, table2, table3 tables. field 1 to field5 is new record in table1 whereas field 6, field 7 , field 8 will update some columns in table 2 and rest fields will be updated to table 3. To acheive this I need to write...
3
2799
vijcbe
by: vijcbe | last post by:
Hello PHP veterans, I am new to PHP. I tried to insert the session id of a user into the database table. code: $xyz = "insert into table_name values(' ', '$PHPSESSID', ...)"; The issue is, when I check the session id value in mysql, I could find the word $PHPSESSID instead of having the 32 lettered session id. I tried removing the quotes and it wasn't fruitful. I am expecting a solution from you guys, to resolve this issue.
1
1346
by: saraswady | last post by:
Hi, I need to create a copy of the existing database. Please advise me how to go about it. I tried the following. 1. Created a XXX_UAT database. 2. restored data from the backup of the live system to the UAT. but user complain thyat the new UAT database do not have the same privilege as the existing one. What should I do? Thanks.
1
3385
by: amritranjan | last post by:
How to retrive image file from MS access database and display this in another JSPpage -------------------------------------------------------------------------------- This is my Jsp code for image upload in database: -----------Upload.jsp---------------- <html> <head> <title>Account Details </title>
1
1662
by: Upu | last post by:
I want to rerive the record from database table into combobox.Plz do reply me how should i do this in ASP
1
1166
by: gopim | last post by:
hi i uploaded image to database table in binaryformat. but my problem is retrive that image(binaryformat) from database table to Gridview using C#.how can we done this could any one help regarding this
1
1359
by: chinni1 | last post by:
Hi , I want to retrive the xml data into my database table. The xml file is from outside of application.so i want to retrive that xml data into database with in some temporary table Thanq
0
9977
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11218
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10910
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10452
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8009
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7161
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6036
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4667
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3268
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.