473,372 Members | 1,343 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,372 software developers and data experts.

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 1261
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 FirstDatabaseName

select * from OtherDatabaseName..Emp
--
-Dick Christoph
"surya" <su*******@gmail.com> wrote in message
news:11**********************@u72g2000cwu.googlegr oups.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
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...
2
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...
2
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...
3
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,...
1
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...
1
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...
1
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
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...
1
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 ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...

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.