Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

migrating of data from 2008r2 to 2012 Expand / Collapse
Author
Message
Posted Tuesday, October 08, 2013 4:07 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, March 05, 2014 10:24 PM
Points: 48, Visits: 370
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...?
Post #1502525
Posted Tuesday, October 08, 2013 4:58 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, March 05, 2014 10:24 PM
Points: 48, Visits: 370
i want to push few tables or data to anther application...do we need to use linked servers?
Post #1502544
Posted Tuesday, October 08, 2013 6:18 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:10 AM
Points: 6,997, Visits: 8,410
- 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 ??


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

- 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"


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me but most of the time this is me
Post #1502573
Posted Tuesday, October 08, 2013 11:31 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, March 05, 2014 10:24 PM
Points: 48, Visits: 370
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
Post #1502917
Posted Tuesday, October 08, 2013 11:46 PM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Today @ 12:10 AM
Points: 6,997, Visits: 8,410
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

- 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"


Need a bit of Powershell? How about this

Who am I ? Sometimes this is me but most of the time this is me
Post #1502919
Posted Thursday, October 17, 2013 2:06 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 31, 2014 4:47 AM
Points: 171, Visits: 600
Why not use SSIS to send the data across?
Post #1505523
Posted Thursday, October 17, 2013 2:11 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:41 PM
Points: 12,201, Visits: 9,156
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1505525
Posted Thursday, October 17, 2013 2:37 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 31, 2014 4:47 AM
Points: 171, Visits: 600
Koen Verbeeck (10/17/2013)
What about replication?


Will that work between 2 different versions of SQL?
Post #1505533
Posted Thursday, October 17, 2013 2:55 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Today @ 2:41 PM
Points: 12,201, Visits: 9,156
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 LessThanDot.

MCSA SQL Server 2012 - MCSE Business Intelligence
Post #1505538
Posted Thursday, October 17, 2013 3:05 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Monday, March 31, 2014 4:47 AM
Points: 171, Visits: 600
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 :)
Post #1505541
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse