Solved

CRM 4.0 and and outside SQL database

Posted on 2011-02-17
3
241 Views
Last Modified: 2012-05-11
Hi Experts,

If I needed to create a copy of the CRM account and lead tables, to make them accessible for a search through a separate SQL database that I would copy them into, does anyone have a recommendation on what is the most efficient way to accomplish this?  
Here's the request.  I'm supposed to create a solution where users can grab, on-demand, a  copy of the tables, and restore them into a separate SQL database.  
They will use this simplified database to search whether a client is already in the database, or if they are a new client, then we'll want to create a new LEAD in this database.  
(The idea behind this is to manage a homegrown loyalty program on a custom entity in the production CRM.)
Then, I'm supposed to take any data that has been added or changed to this outside database, and integrate it into the production CRM.  These changes would be: adding a new lead record, finding that someone exists in the database, recording that they attended an event on a certain day, ...etc.

This is starting to sound like the Offline Mode CRM where we sync it up when we are done.  We don't need a full-fledged offline version of CRM though, just the ability to search if someone exists already either a Lead or an Account.  

What are everyone's thoughts on the most efficient and supported way to do this?  
0
Comment
Question by:bucball2007
  • 2
3 Comments
 
LVL 17

Expert Comment

by:MIKE
ID: 34923691
Backup data on source system,...then Restore the database on the remote system on a nightly basis.

And or vice versa....

???
0
 

Accepted Solution

by:
bucball2007 earned 0 total points
ID: 34973274
Hi CRX,

Thanks for the feedback.  I've been trying out several different approaches. I only need about 10 columns on 5 or less entities copied into a separate sql database.  I think what I'm going to end up doing is a stored procedure to join and query exactly what I need, then insert it based on the project specs.  so far that seems to be working...

thanks!
0
 

Author Closing Comment

by:bucball2007
ID: 35005306
trying to keep the size down on the outside custom database, so I'm only pulling in exactly what I need, and I can query and join it to get it looking the way I want before I insert
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
MS SQL 2014 get SPIDs of users 6 27
Export data with an insert trigger to a linked server 20 22
SQL JOIN 6 39
Mssql SQL query 14 28
I wrote this interesting script that really help me find jobs or procedures when working in a huge environment. I could I have written it as a Procedure but then I would have to have it on each machine or have a link to a server-related search that …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now