Click here to monitor SSC
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
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

Group: General Forum Members
Points: 65 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
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

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

Group: General Forum Members
Points: 6976 Visits: 8839
- 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


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't 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
Valued Member
Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)Valued Member (65 reputation)

Group: General Forum Members
Points: 65 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
SSCertifiable
SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)SSCertifiable (7K reputation)

Group: General Forum Members
Points: 6976 Visits: 8839
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


Don't drive faster than your guardian angel can fly ...
but keeping both feet on the ground won't 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
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

Group: General Forum Members
Points: 303 Visits: 967
Why not use SSIS to send the data across?
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16461 Visits: 13207
What about replication?



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

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
bugg
bugg
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

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


Will that work between 2 different versions of SQL?
Koen Verbeeck
Koen Verbeeck
SSCoach
SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)SSCoach (16K reputation)

Group: General Forum Members
Points: 16461 Visits: 13207
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?

Member of LinkedIn. My blog at SQLKover.

MCSA SQL Server 2012 - MCSE Business Intelligence
bugg
bugg
Old Hand
Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)Old Hand (303 reputation)

Group: General Forum Members
Points: 303 Visits: 967
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