Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Replication (2005)
 Is there a better way to replicate this?

Author  Topic 

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2010-06-12 : 00:47:00
I have a extremly simple replication need for SQL 2005 EXPRESS (NO PUBLISH)

This is all I need to do

(Server 1 Local)

(Server 2 Remote)

I set server 2 up as a linked server.


I just need to at the end of each day take 5 specific tables(NOT THE ENTIRE DATABASE) all with <50000 records and put those tables so they're accessable on a remote server.

How do you suggest I do this?

Thanks!


Success is 10% Intelligence, 70% Determination, and 22% Stupidity.
\_/ _/ _/\_/ _/\_/ _/ _/- 881

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-12 : 01:34:13
1. You can use a linked server or openquery to just query the data directly.
2. You can use a linked server or openquery to transfer the data.
3. You can use bcp or an SSIS package to transfer the data.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2010-06-12 : 13:43:16
So if it was you, you would just suggest just deleting records in actable and re-inserting all records via a linked server? Do you feel there would be a benefit to using subscriber/publisher instead if I was using the non-express addition?

I guess I am looking for the best method.

Thanks!


Success is 10% Intelligence, 70% Determination, and 22% Stupidity.
\_/ _/ _/\_/ _/\_/ _/ _/- 881
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-12 : 17:06:04
It really depends on your requirements. Bulk loading the data would be fastest, so SSIS would work well. If you could use a publisher, then snapshot or transactional replication would work well too.

What are the requirements? How up to date does the data need to be? Can you just truncate/reload each time?

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Vinnie881
Master Smack Fu Yak Hacker

1231 Posts

Posted - 2010-06-12 : 19:48:28
The requirments are quite simplistic. I have a public webserver which that needs to access certain records from our internal database. I do not want the internal database to be accessable via this webserver, but the only information it needs is records from about 5 differant tables (The tables I will bulk load most likely).

The tables just need to be updated 1 x per day. I believe the bulk load method is the best method for me.

Another related question though:

I read a bunch of articles on subscriber/publisher type replication. There doesn't seem anyway to accomplish this unless both servers are accessable by each other, is this correct? Ideally I want a solution where the subscriber/receiving server can not access the SQLSERVER Instance on the publishing/source. I just want the publishing server to be able to connect to the Sucriber. It does not seem like this is a option, but with the linked server, as long as the receiving server is accessable I can publish via setting up a linked server w/o opening any security vulnerabilities (The reason I want this setup instead of setting up a VPN is the receiving server is a remote hosted Virtual Dedicated web server, and I do not want to setup a VPN since the data housed on it is not very important, so I preffer to treat it completly isoolated from everything internal with only the publishing server pushing data to it and not the webserver being able to access the internal network).

Do you feel this is a good method, or should I look into something else?

Thanks!!


Success is 10% Intelligence, 70% Determination, and 22% Stupidity.
\_/ _/ _/\_/ _/\_/ _/ _/- 881
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-13 : 14:18:10
I've read that you can do replication through FTP, but I've got no experience with that.

I think the bulk load method is the best option for you.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-06-13 : 14:27:31
I forgot to mention that I don't see an issue with what you described for replication as long as the publisher can talk to the distributor and the distributor can talk to the subscriber. As long as you are pushing the replicated data, it should work in the one direction that you require.

But you wouldn't be able to use Express as far as I know.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -