SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


migrating of data from 2008r2 to 2012


migrating of data from 2008r2 to 2012

Author
Message
$t@r
$t@r
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 628
hi all,
we are using sql server2008r2 for our application..we want to integrate with another application which is using sql server 2012...so we need to send few tables...can i send data between the application? does it possible...?
$t@r
$t@r
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 628
i want to push few tables or data to anther application...do we need to use linked servers?
ALZDBA
ALZDBA
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12558 Visits: 8930
- do you need to just copy the data once ?

you could use bcp.exe to do that.


- are you sure you really want to make both sqlserver instances dependent by using linked servers ??Sick


Are these just a couple of (little) tables you need to keep in sync for both instances ?

Does that need to be real time synchronized ?

Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
$t@r
$t@r
SSC-Enthusiastic
SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)SSC-Enthusiastic (155 reputation)

Group: General Forum Members
Points: 155 Visits: 628
its not one time process..it has to push data for every minute or 5 minute..so i need to connect through liked server...another server is on public IP
ALZDBA
ALZDBA
SSChampion
SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)SSChampion (12K reputation)

Group: General Forum Members
Points: 12558 Visits: 8930
I would suggest to setup a bcp batch job using SQLAgent, providing the jobstep proxy account only with the needed authorisation to read the source data and write to the destination instance.

I would not use a linked server to implement that, because of the risk of abuse.
Intentions now are good and can be implemented using a linked server, but once a linked server definition is in place, everyone can use it and then the impact may overgrow the intended one and servers will actually become depentent. That would mean apps using the target server may not work if you take the source server down for e.g. maintenance, ...


example bcp sequence:

rem Create format files
bcp yourdb.yourschema.yourtable format NUL -fc:\ImportExport\SourceInstance_yourschema.yourtable.fmt -S SourceInstance\SourceInstance -T -n -o c:\ImportExport\SourceInstance_yourschema.yourtable_fmt.log

rem delete data via SQLCMD only if needed / consider Truncate table
rem sqlcmd -S TargetInstance -d yourDB -E -Q "delete from yourschema.yourtable;" -o "c:\ImportExport\TargetInstance_yourDB_delete_yourschema.yourtable.Log"

rem Import data IN HIARARCHICAL ORDER !!!
bcp yourDB.yourschema.yourtable in c:\ImportExport\SourceInstance_yourschema.yourtable.bcp -fc:\ImportExport\SourceInstance_yourschema.yourtable.fmt -S TargetInstance -T -CRAW -k -E -h"TABLOCK,CHECK_CONSTRAINTS" -o c:\ImportExport\DEV01_LOAD_yourDB_yourschema.yourtable.log



Johan


Dont drive faster than your guardian angel can fly ...
but keeping both feet on the ground wont get you anywhere w00t

- How to post Performance Problems
- How to post data/code to get the best help


- How to prevent a sore throat after hours of presenting ppt ?


press F1 for solution, press shift+F1 for urgent solution :-D


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me Alien but most of the time this is me Hehe
bugg
bugg
SSChasing Mays
SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)

Group: General Forum Members
Points: 646 Visits: 984
Why not use SSIS to send the data across?
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27927 Visits: 13268
What about replication?


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
bugg
bugg
SSChasing Mays
SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)

Group: General Forum Members
Points: 646 Visits: 984
Koen Verbeeck (10/17/2013)
What about replication?


Will that work between 2 different versions of SQL?
Koen Verbeeck
Koen Verbeeck
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27927 Visits: 13268
bugg (10/17/2013)
Koen Verbeeck (10/17/2013)
What about replication?


Will that work between 2 different versions of SQL?


Sure.

Using Multiple Versions of SQL Server in a Replication Topology


How to post forum questions.
Need an answer? No, you need a question.
What’s the deal with Excel & SSIS?
My blog at SQLKover.

MCSE Business Intelligence - Microsoft Data Platform MVP
bugg
bugg
SSChasing Mays
SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)SSChasing Mays (646 reputation)

Group: General Forum Members
Points: 646 Visits: 984
Koen Verbeeck (10/17/2013)
bugg (10/17/2013)
Koen Verbeeck (10/17/2013)
What about replication?


Will that work between 2 different versions of SQL?


Sure.

Using Multiple Versions of SQL Server in a Replication Topology


Cool Smile
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search