Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Copying tables

Author  Topic 

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2010-06-09 : 09:15:04
I have a rather bunch of silly questions

I have a table with Primary keys defines and indexing defined in test environment.I have asked our DBA to copy the table to production from test.

Will the copying of a table copy the keys and constraints also

senthil_nagore
Master Smack Fu Yak Hacker

1007 Posts

Posted - 2010-06-09 : 09:20:53
Take a script from test environment and run it in production Environment.

Senthil.C
------------------------------------------------------
[Microsoft][ODBC SQL Server Driver]Operation canceled

http://senthilnagore.blogspot.com/
Go to Top of Page

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2010-06-09 : 09:30:09
There are 1 million records in the table.
Can we have a script generated from the Management studio to create a table and insert the million records

Please advise
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-06-09 : 09:39:41
Make use of Import/Export wizard from Management studio

Madhivanan

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

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-06-09 : 09:45:31
That is interesting!
To bring a table structure from TEST to Production is ok.
To bring a million of rows from TEST to Produktion is weird.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

jim_jim
Constraint Violating Yak Guru

306 Posts

Posted - 2010-06-09 : 10:00:09
Can I ask why is it weird to copy million rows from a test environment table where it has been tested

if the copying of tables does not work,Will use ssis to create a package to load data in production
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-06-09 : 10:14:15
Don't wanted to bother you

But in my experience data from test environment
is always bad data because
it is only for testing and
it is not the whole data that is needed in production.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -