![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi Michael, Welcome to use MSDN Managed Newsgroup. Yes, tables will not be created with default value if you let Integration Services make the new table. You should generate the SQL scripts for your tablese and execute the scripts in SQL Server 2005 first to make the table and then use Integration Services to transfer the data. Thank you for your patience and cooperation. If you have any questions or concerns, don't hesitate to let me know. We are always here to be of assistance! Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Michael, Would you please help me clarify "In SQL 2000 and dts packages this was not a problem, defaults were copied"? I have made the test with SQL Server 2000 below 1. Create a new table in the SQL 2000 ------ create table test12 ( pid int, idd int default 5 ) go insert into test12(pid) values (1) insert into test12 values (2,2) insert into test12 values (3,4) insert into test12(pid) values (5) ------ 2. Create a new Package in DTS, When generating a new Transform Data Task, it will be a prompt Dialog with the schema below for Destination database ------ CREATE TABLE [test12] ( [pid] int NULL, [idd] int NULL ) ------ You could see that in SQL 2000, it will also not generating the database with default value. 3. Execute the DTS package and all data will be tranformed swimmingly to the destination server. Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#6
| |||
| |||
|
|
Michael Wrong task. You should be using the Copy SQL Server Objects task. Allan "Michael Cheng [MSFT]" <v-mingqc (AT) online (DOT) microsoft.com> wrote in message news:N$Klvm07FHA.4000 (AT) TK2MSFTNGXA02 (DOT) phx.gbl: Hi Michael, Would you please help me clarify "In SQL 2000 and dts packages this was not a problem, defaults were copied"? I have made the test with SQL Server 2000 below 1. Create a new table in the SQL 2000 ------ create table test12 ( pid int, idd int default 5 ) go insert into test12(pid) values (1) insert into test12 values (2,2) insert into test12 values (3,4) insert into test12(pid) values (5) ------ 2. Create a new Package in DTS, When generating a new Transform Data Task, it will be a prompt Dialog with the schema below for Destination database ------ CREATE TABLE [test12] ( [pid] int NULL, [idd] int NULL ) ------ You could see that in SQL 2000, it will also not generating the database with default value. 3. Execute the DTS package and all data will be tranformed swimmingly to the destination server. Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#7
| |||
| |||
|
|
Hi Michael, Would you please help me clarify "In SQL 2000 and dts packages this was not a problem, defaults were copied"? I have made the test with SQL Server 2000 below 1. Create a new table in the SQL 2000 ------ create table test12 ( pid int, idd int default 5 ) go insert into test12(pid) values (1) insert into test12 values (2,2) insert into test12 values (3,4) insert into test12(pid) values (5) ------ 2. Create a new Package in DTS, When generating a new Transform Data Task, it will be a prompt Dialog with the schema below for Destination database ------ CREATE TABLE [test12] ( [pid] int NULL, [idd] int NULL ) ------ You could see that in SQL 2000, it will also not generating the database with default value. 3. Execute the DTS package and all data will be tranformed swimmingly to the destination server. Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#8
| |||
| |||
|
|
Allan, Not the wrond task - I can only use Copy objects if I have sysadmin. And besides in SQL 2000 this worked correctly! -- Michael Tissington http://www.oaklodge.com http://www.tabtag.com "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:enTdI567FHA.1148 (AT) tk2msftngp13 (DOT) phx.gbl... Michael Wrong task. You should be using the Copy SQL Server Objects task. Allan "Michael Cheng [MSFT]" <v-mingqc (AT) online (DOT) microsoft.com> wrote in message news:N$Klvm07FHA.4000 (AT) TK2MSFTNGXA02 (DOT) phx.gbl: Hi Michael, Would you please help me clarify "In SQL 2000 and dts packages this was not a problem, defaults were copied"? I have made the test with SQL Server 2000 below 1. Create a new table in the SQL 2000 ------ create table test12 ( pid int, idd int default 5 ) go insert into test12(pid) values (1) insert into test12 values (2,2) insert into test12 values (3,4) insert into test12(pid) values (5) ------ 2. Create a new Package in DTS, When generating a new Transform Data Task, it will be a prompt Dialog with the schema below for Destination database ------ CREATE TABLE [test12] ( [pid] int NULL, [idd] int NULL ) ------ You could see that in SQL 2000, it will also not generating the database with default value. 3. Execute the DTS package and all data will be tranformed swimmingly to the destination server. Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#9
| |||
| |||
|
|
Michael. Bit confused now then So you are not using the Copy Objects task? If that is the case and you are only using the Data Flow task then? If this is the case then in DTS you would have had to specify the DEFAULT on the column when you created the destination table right? Allan "Michael Tissington" <mtissington (AT) newsgroups (DOT) nospam> wrote in message news:OKek$X#7FHA.1600 (AT) TK2MSFTNGP10 (DOT) phx.gbl: Allan, Not the wrond task - I can only use Copy objects if I have sysadmin. And besides in SQL 2000 this worked correctly! -- Michael Tissington http://www.oaklodge.com http://www.tabtag.com "Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote in message news:enTdI567FHA.1148 (AT) tk2msftngp13 (DOT) phx.gbl... Michael Wrong task. You should be using the Copy SQL Server Objects task. Allan "Michael Cheng [MSFT]" <v-mingqc (AT) online (DOT) microsoft.com> wrote in message news:N$Klvm07FHA.4000 (AT) TK2MSFTNGXA02 (DOT) phx.gbl: Hi Michael, Would you please help me clarify "In SQL 2000 and dts packages this was not a problem, defaults were copied"? I have made the test with SQL Server 2000 below 1. Create a new table in the SQL 2000 ------ create table test12 ( pid int, idd int default 5 ) go insert into test12(pid) values (1) insert into test12 values (2,2) insert into test12 values (3,4) insert into test12(pid) values (5) ------ 2. Create a new Package in DTS, When generating a new Transform Data Task, it will be a prompt Dialog with the schema below for Destination database ------ CREATE TABLE [test12] ( [pid] int NULL, [idd] int NULL ) ------ You could see that in SQL 2000, it will also not generating the database with default value. 3. Execute the DTS package and all data will be tranformed swimmingly to the destination server. Sincerely yours, Michael Cheng Microsoft Online Partner Support When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== === This posting is provided "AS IS" with no warranties, and confers no rights. |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |