June 9, 2009 at 10:26 am
Hello everybody;
I am here again, I want to copy a table Time.dbo from my DB WorksBI to a DB BusinessIntelligence, both are int he same machine and server.
can help me?
Cindy
June 9, 2009 at 10:50 am
brennendeliebe05 (6/9/2009)
Hello everybody;I am here again, I want to copy a table Time.dbo from my DB WorksBI to a DB BusinessIntelligence, both are int he same machine and server.
can help me?
Cindy
while in the BusinessIntelligence database, try
SELECT * from WorksBI.dbo.Time --time is the name of the table, right?
if that works, then simply
SELECT *
INTO Time --this will create the table "Time", on the currently connected server, instantly based on the data from the SQL
from WorksBI.dbo.Time
Lowell
June 9, 2009 at 11:19 am
I agree with Lowell - that's that best way, but keep in mind that you might fill your transaction log if it is a huge table.
In any case, you might also want to create indexes on your new table, since SELECT * INTO does not do that.
Paul
- Paul
http://paulpaivasql.blogspot.com/
June 9, 2009 at 11:50 am
helloooo..hehe I got it I wrote this:
select * into DimTiempo1 from AdventureWorksDW.dbo.DimTime
and now I got my new table full..hehe
thanks a lot
😛
June 9, 2009 at 11:59 am
glad it worked for you; you clearly grasped the concept once you got an example.
way to go.
Lowell
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply