September 24, 2017 at 1:33 am
hello community.
i have two databases. one is old version and other is new version ..
in new version i have some new fields in all the tables old version doesn't has those fields.
now there is a lot of data in old database i want to put that data in new database.
how can i do it ? after taking data script and run on new database not works due to different few fields.
how can i transfer all the data into new database kindly suggest me a way of doing this.
September 24, 2017 at 5:24 am
At a guess I assume that you're not declaring your column names when doing the insert, or your new columns aren't nullable, and so require a value. You'll need to ensure you're columns that you aren't inserting into are nullable, and declare you're columns as part of your INSERT statement, or provided values for your non-nullable columns. As a small example:
Hmm VS Code x Ubuntu does not play well with SSC.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
September 24, 2017 at 6:12 am
Messi - Sunday, September 24, 2017 1:33 AM--how can i do it ? after taking data script and run on new database not works due to different few fields.
--
How did you create this 'data script'?
September 24, 2017 at 6:19 am
Phil Parkin - Sunday, September 24, 2017 6:12 AMMessi - Sunday, September 24, 2017 1:33 AM--how can i do it ? after taking data script and run on new database not works due to different few fields.
--
How did you create this 'data script'?
from here after setting type of data script to Data Only
September 24, 2017 at 6:23 am
OK, did you consider adding the new columns to the old DB and then doing the scripting?
September 24, 2017 at 6:36 am
Phil Parkin - Sunday, September 24, 2017 6:23 AMOK, did you consider adding the new columns to the old DB and then doing the scripting?
Didn'teeven think about that as an option. :p
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
September 24, 2017 at 11:07 am
Phil Parkin - Sunday, September 24, 2017 6:23 AMOK, did you consider adding the new columns to the old DB and then doing the scripting?
you mean if i have new NOT NULLABLE columns in new database put those as NULLABLE in old database then take the data script and run in new database ?
September 24, 2017 at 11:19 am
Messi - Sunday, September 24, 2017 11:07 AMPhil Parkin - Sunday, September 24, 2017 6:23 AMOK, did you consider adding the new columns to the old DB and then doing the scripting?you mean if i have new NOT NULLABLE columns in new database put those as NULLABLE in old database then take the data script and run in new database ?
If they're not nullable in the new database, then have nullable columns with NULL values in your old database won't help you. If they're not nullable you need to provide a value for the new columns or make them nullable.
Thom~
Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
Larnu.uk
September 24, 2017 at 11:24 am
Thom A - Sunday, September 24, 2017 11:19 AMIf they're not nullable in the new database, then have nullable columns with NULL values in your old database won't help you. If they're not nullable you need to provide a value for the new columns or make them nullable.
yes. that's right. i will surely have to do some manually data entry for it !
September 24, 2017 at 3:14 pm
Messi - Sunday, September 24, 2017 11:24 AMyes. that's right. i will surely have to do some manually data entry for it !![]()
Or give them default values in the old DB.
December 5, 2017 at 4:48 am
This was removed by the editor as SPAM
Viewing 11 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy