SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Whats wrong with this?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

drastixnz
Starting Member

New Zealand
3 Posts

Posted - 07/23/2012 :  02:58:57  Show Profile  Reply with Quote
Help!!!!!

insert into work_dbase.mdb.NationalSets select * from estimator
private.mdb.NationalSets;

madhivanan
Premature Yak Congratulator

India
22460 Posts

Posted - 07/23/2012 :  08:23:14  Show Profile  Send madhivanan a Yahoo! Message  Reply with Quote
Did you get any error? List out required columns instead of *

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Transact Charlie
Flowing Fount of Yak Knowledge

United Kingdom
3426 Posts

Posted - 07/23/2012 :  09:24:22  Show Profile  Visit Transact Charlie's Homepage  Reply with Quote
yeah -- what's the problem exactly?

Maybe you were trying to do this?

SELECT *
INTO Work_dbase.mdb.NationalSets
FROM private.mdb.NationalSets

Assuming that the Work_dbase.mdb.NationalSets table didn't exist??????

Transact Charlie
Msg 3903.. The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.
http://nosqlsolution.blogspot.co.uk/
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
47069 Posts

Posted - 07/23/2012 :  10:15:12  Show Profile  Reply with Quote
quote:
Originally posted by drastixnz

Help!!!!!

insert into work_dbase.mdb.NationalSets select * from estimator
private.mdb.NationalSets;


dont use insert ..select * unless you're sure that structure of table and order of columns with datatype is exactly similar to source table. Also if there're any identity columns in work_dbase.mdb.NationalSets then you need to provide correct column list

I also hope both dbs (work_dbase and estimatorprivate) are in same server.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000