I have a situation please suggest some transactional solution.

hi,
    I have two databases one is entry database (DB1) Where entery is done, other database is reporting database (D2).
we are trying to transfer data using stored procedure from db1 to db2. the  sp will be scheduled to run after every 20 to 30 sec.
in db1 we keep three cols in all tables transferedcol, updatedcol, activecol.
--activecol gets 1 if when record is entered first time and remain same while updation.
this col gets 2 if deleted( we do not do physical deletion we only mark 2 in activecol and updagtedcol)
--transferedcol gets 1 if not transfered to db2, if transfered to db2 then we put 0 in it.
if record gets updated then it gets 1 again so that we can transfer it again.
--updatedcol gets 0 for new entry of  each record and 1 if updated after transfer of the record to db2 else if any one tries to updated it before transfer then it will be 0 for new record , after the transfer of that record if some one updates the record
then it gets 1 and remains 1 throught out the life . yes it gets 2 if record is deleted ( deletion is not  physical , it is logical by setting 2 in activecol and updatedcol).
in db2 we have only required cols for reporting,  but if required we can keep some cols like transfered ,active and updated.
this db2 has fk and table gets record from joins of many tables of db1 which also has  fks
that is schema is not same.
Q1) i want to transfer only the records having transfered col marked as 1 and after transfering i want to make them 0 from the stored procedure which runs after every 20 30 sec.
please suggest some solution with isolation level.
note: on db1 i want that entery should not be blocked to much and at the same it want stored procedure to transfer the data from db1 to db2 so that people can see the report at the very time.
yours sincerley

    I have two databases one is entry database (DB1) Where entery is done, other database is reporting database (D2).
we are trying to transfer data using stored procedure from db1 to db2. the  sp will be scheduled to run after every 20 to 30 sec.
Have you considered replication?
BOL: "SQL Server Replication
Replication is a set of technologies for copying and distributing data and database objects from one database to another and then synchronizing between databases to maintain consistency. Using replication, you can distribute data to different locations and
to remote or mobile users over local and wide area networks, dial-up connections, wireless connections, and the Internet.
Transactional replication is typically used in server-to-server scenarios that require high throughput, including: improving scalability and availability; data warehousing and reporting; integrating data from multiple sites; integrating heterogeneous data;
and offloading batch processing. Merge replication is primarily designed for mobile applications or distributed server applications that have possible data conflicts. Common scenarios include: exchanging data with mobile users; consumer point of sale (POS)
applications; and integration of data from multiple sites. Snapshot replication is used to provide the initial data set for transactional and merge replication; it can also be used when complete refreshes of data are appropriate. With these three types of
replication, SQL Server provides a powerful and flexible system for synchronizing data across your enterprise. Replication to SQLCE 3.5 and SQLCE 4.0 is supported on both Windows Server 2012 and Windows 8.
As an alternative to replication, you can synchronize databases by using Microsoft Sync Framework. Sync Framework includes components and an intuitive and flexible API that make it easy to synchronize among SQL Server, SQL Server Express, SQL Server Compact,
and SQL Azure databases. Sync Framework also includes classes that can be adapted to synchronize between a SQL Server database and any other database that is compatible with ADO.NET."
Kalman Toth Database & OLAP Architect
SQL Server 2014 Database Design
New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

Similar Messages

  • TS1398 I am unable to connect wifi on my phone 4s since last 2 weeks... I am living in shanghai and did not have this issue since 2 weeks... iPad works fine... Please suggest some measures... Tried the on off reset settings etc.

    I am unable to connect wifi on my phone 4s since last 2 weeks... I am living in shanghai and did not have this issue since 2 weeks... iPad works fine... Please suggest some measures... Tried the on off reset settings etc. but no luck ...
    In fact after updating the software to the latest version I am having more of this... Sometimes the wifi button freezes an I can't even slide it to on / off...
    Thanks

    Noooo! Actually I too had d same prob wit my iPhone 4S. When I connect to my wifi network it won't get connected or it wil be grey scaled! I took it to d istore and since I had warranty they replaced my IPhone. It iPad charger has high volt than ur iPhone charger so when u connect wit it, there is a chance where large amount of current passes thru ur iPhone. So for sure it wil damage ur motherboard and its parts! Many said that iOS 6 or 6.0.1 or 6.1 was d reason for tis wifi prob! But apple never made its mistake wit it's software. If and only if u hav hardware prob u wil hav these sort of wifi prob Bluetooth prob! So best way s to replace ur iPhone!

  • HT4623 I was installing the ios 6 on my iphone 3GS and an error occured and since then it's hanged up and not working. Please suggest some solution

    I was installing the ios 6 on my iphone 3GS and an error occured and since then it's hanged up and not working. Please suggest some solution

    the same thing here! each time its suppose to register with my network, it cant. im wondering if its a hardware problem

  • Please suggest some swing/bean book(Beginer free downloadable)

    Please suggest some dedicated swing/bean book(free downloadable)
    as I am at beginer level.
    It would be nice if it covers all major topics and suits quick
    understanding.

    Good starting place...
    http://java.sun.com/docs/books/tutorial/uiswing/
    and here...
    http://developer.java.sun.com/developer/onlineTraining/GUI/Swing1/shortcourse.html
    then here...
    http://developer.java.sun.com/developer/onlineTraining/GUI/Swing2/shortcourse.html

  • Please suggest some ideas

    We are going to develop a huge application using 11g/WebServices/JSF/ADF. Oracle JDeveloper is completely new for us. It is kind of Microsoft Visual Studio and really confusing. There isn't much online help.
    Please provide some suggestions regarding web services security, when do we need backing bean, how do we effectively use adfc-config.xml/faces-config.xml, handling inputs, designing the page etc.

    Hello,
    firstly the web service SOA development is not yet available in JDev 11g.
    There is plenty of documentation available on JDev and ADF, the complete developer guide book is here:
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/toc.htm
    I would use caution if you are intending to develop a large application and are new to the framework. Ideally you would want to start of with a small to medium size application because it will be very challenging to learn the framework and design your large application at the same time.
    Brenden

  • Please suggest some useful links for ABAP APO initial understandings

    Hi Experts, could you please suggest me some links to understand the basis of APO ABAP coding skills and how it is different from normal ABAP coding. Thanks Mamata

    APO-Technical - Supply Chain Management (SCM) - SCN Wiki
    http://scn.sap.com/community/scm/apo/blog/2013/05

  • Can someone please suggest some good projects for learning about usrp and labview for beginners?​??

    Can some1 please me suggest  some good things to work out on USRP using labview.. 

    https://decibel.ni.com/content/groups/ni-usrp-exam​ple-labview-vis?view=documents
    Omar

  • Hi i have moved from uk to india, i have changed my country in itunes store, when i am entering my payment details its not accepting it. more worse is all my applications which i have downloaded in uk are not working now. please suggest me a solution

    hi i have moved from uk to india, i have changed my country in itunes store, when i am entering my payment details its not accepting. more worse is all my applications which i have downloaded in uk are not working now. please suggest me a solution

    papillondefer wrote:
    I want to be able to keep app's, music, movies and my Cloud/Match exactly the same.  How do I do this?
    Because of different local copyright laws and licensing you cannot keep everything exactly the same except for iCloud, which is not affected. You will have to create a new Apple ID for use on the UK iTunes Store with a form of payment drawn on a local bank and an address in the UK. As long as you have downloaded all your purchases and the computer is still authorized to play all protected video content that won't change, however Apps may give you trouble when updating because once associated with an Apple ID you can only switch between stores every 90 days.
    As for iTunes Match you must contact Australian iTunes Store support to cancel the subscription and you will have to resubscribe on the UK store.

  • Please suggest on: SAP Solution Manager Installation

    Hi Experts,
    We are going to install SAP Solution Manager in our landscape. Our present SAP version is: ECC 6.0 and Database is: Oracle 10.2.0.2 and OS is: AIX 5.3
    1. Please suggest us which is the suitable Solution manager version for our environment?
    2. What are the pre-requisites and needful steps to take before starting the installation?
    3. Where can I get complete step by step documents for this activity?
    4. Which OS & DB  is suitable for our environment?
    Thanks in advance!
    Veera

    Can I also ask for some confirmation about a couple of things.  I have looked at the SAP documents but I can't find a definite answer to these questions:
    1.  David Kroone - you say that Solution manager should be set up on a new server but I understand that it is possible to run it on one of our existing R/3 servers.  Is this correct?  Does anyone have any comments about this?
    2.  David - you also say that we can pick any OS & DB for the Solution Manager server. We are running R/3 on Oracle/Solaris but would prefer to run Solution Manager on a Windows server running SQLServer.  Is this definitely OK?  (it would be cheaper though you advise that using the same platform could make it simpler - is this because Solution Manager works better on the same platform or is it just because we would then have a more homogeneous environment?)
    3.  We are currently on 4.7 but plan to move to ECC6 this summer.  We want (need?) to install Solution Manager before we upgrade to ECC6.  Should this affect our decision in anyway?
    Sorry to re-ask the same questions but it's difficult to find a precise answer in the SAP documents.

  • TS1389 Repeatedly prompts of authorize this computer but there is no solution for this & it still prompts authorize this computer. Please suggest me another solutions

    i tried above all sugget to prevent repeatedly prompts of authorize this computer but there is no solution for this & it still prompts authorize this computer. Please suggest me another solutions

    Hello Kuldip13,
    It sounds like iTunes keeps asking you to authorize the computer. If you have already tried all the steps within the article you came from:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/TS1389
    I would next check to see if the same Apple ID is signed into, that was used to play these purchases with this article:
    Recovering a forgotten iTunes Store account name
    http://support.apple.com/kb/ht1920
    Open iTunes
    Highlight one of the items you have purchased (You can find your purchases in your Purchases playlist).
    Choose File > Get Info.
    Click the Summary tab.
    The Account Name area will list the account used to purchase the item. Unless you have changed accounts, this is your iTunes Store account name.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Please suggest some apps

    hi all,
    i'm trying to find in advance all the applications i'll need so that my transition is smooth and uneventful. i've already done a search and i think i have a fairly good idea in some cases of which programs to use, but i'm always interested in hearing what you think. any suggestions would be appreciated.
    essentially, i'm looking for the linux equivalents of:
    7-zip:
    small and simple compression program. what do you use?
    bestpractice (http://www.xs4all.nl/~mp2004/bp/):
    it's a simple application that allows me to split, modulate, etc. music files so i can transcribe or practice songs. is there anything like this for arch?
    foobar2000:
    i know this has been asked many times, but i'm wondering if there are any programs with the following features:
    -mass tagging (so i can remove tags from multiple files at once)
    -fix vbr headers
    -programmable hotkeys
    -foobar-style shuffle (internal randomized list of tracks)
    -small, light, fast (especially when it comes to loading directories)
    -tabbed playlists
    -noise sharpening plugin
    k-meleon:
    just looking for something lean and fast. i think i've settled on midori, but i don't like the accelerators (i'd rather use ctrl + tab and ctrl + shift + tab to change tabs) and there's no accelerators file to edit.
    miranda:
    i think i've settled on pidgin, but i'm planning on using either pidgin-light or pidgin-mini. what's the difference between them? which one is smaller? do i use pacman to install them?
    office 2007:
    openoffice is too large and unwieldy for me. i'm looking for something simple, and i think abiword and gnumeric should be fine. and i suppose i could always load a vm to use office 2007. do you have any better suggestions here?
    file manager:
    thunar-light is probably the best for me, but i'm not sure how to install it. do i use pacman?
    thanks again!

    7-zip
    For general compression, I actually just use tar. (e.g. tar -cjf output.tar.bz2 input/).
    For 7z compression you can use p7zip.
    foobar2000:
    - I don't usually use GUI music players, but you might want to check out some of the MPD Clients on this page (the GTK+ and Qt sections)
    k-meleon:
    - I can't stand K-Meleon, but it's comparable to Kazehakase (which I also can't stand)
    miranda:
    Pidgin.
    i think i've settled on pidgin, but i'm planning on using either pidgin-light or pidgin-mini. what's the difference between them?
    No damn clue what the difference is. We only have vanilla Pidgin AFAIK.
    do i use pacman to install them?
    yes:
    pacman -S pidgin
    file manager:
    I use Thunar, and I like it. I also hear good things about PCManFM, the default file manager of LXDE.
    thunar-light is probably the best for me,
    Again, not a clue what thunar-light is. Just use Thunar.
    but i'm not sure how to install it. do i use pacman?
    You use pacman to install pretty much everything.
    pacman -S thunar

  • Managing Windows Server licences (please suggest some tool)

    Hi
    Does any body know any good tool for discovering Windows Server keys, and managing licences on different Windows Server versions? I Tried VAMT, but i would preffer something with keys database, that could tell me "You have this many keys left for this
    versions of windows server" after including the keys from VLSC.
    Any ideas about a tool to manage licences?

    Hi,
    The Microsoft Software Inventory Analyzer will scan a network and give you a report of which Microsoft products are currently installed on each computer. Maybe you can use it to figure out how many licenses you will need to purchase or how many extra
    licenses you have:
    http://www.microsoft.com/sam/en/ca/msia.aspx
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • HT4628 i have mac book pro, it was working fine with my wi fi but today i found it does not show wi fi indication "on" so no internet working. please suggest me the solution.

    I have mac book pro. It was working fine on my wi fi but today it doesn't show wi fi indication and my wi fi link is not mentioned in the list. but it shows other links which are not mine.
    I reset my wi fi but no any result. but at the sametime my iphone is working alright on the same wi fi that means wi fi is ok. Please guide me !!!

    Hey nondeplume,
    I'd check out the following article and see if that helps resolve the connection issues you're experiencing on your MacBook Pro:
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    http://support.apple.com/kb/HT4628
    Hope that helps,
    David

  • When i paste some copied color text or formatted cells from excel to my mail draft while composing a mail, it is being pasted as plain text. No back groud or text colors are copied to it. Please suggest a possible solution for this issue.

    Colors & Formatted Cells from Excel application can not be copied to my mail composer as it is. Only Plain text is copied.

    Wish I could be king. But you described the problem perfectly and I am still but a pawn. All I can say is that I trashed the mail preferences (com.apple.mail.plist) on my Mac Mini, and now my MacBook seems to work right.
    Sorry. :>) But that is the truth... The MacBook now has actually sometimes displayed pasted text in its actual, different, font and style as I paste it into a partially composed new mail message.
    In other (more rational) words, the problem seems to be tied to pasting only certain types of text. I have not been able yet to pinpoint what. Yes, frustrating indeed. The only work-around has been to re-train my fingers to command-option-shift V, for "paste and match style" (like you, I do not want to always use only plain text). Maybe someone else will eventually weigh in with a real solution. The solution I want is just to be able to consistently see any font variations within my message before I send the email.
    The info about the different ppi scales between Windows and Mac is interesting, although not relevant to this particular problem. It does explain the apparent overall size differences I have seen before.

  • PLEASE SUGGEST SOME OPTIMIZER HINTS TO TUNE QUERY

    Below is explain plan for query
    SELECT STATEMENT  ALL_ROWSCost: 607,111  Bytes: 169  Cardinality: 1                                                         
         18 HASH GROUP BY  Cost: 607,111  Bytes: 169  Cardinality: 1                                                    
              17 FILTER                                               
                   14 TABLE ACCESS BY LOCAL INDEX ROWID TABLE GL.GL_JE_LINES Cost: 88  Bytes: 72  Cardinality: 2                                          
                        13 NESTED LOOPS  Cost: 408,270  Bytes: 11,384,009  Cardinality: 67,361                                     
                             10 HASH JOIN RIGHT OUTER  Cost: 11,954  Bytes: 5,578,020  Cardinality: 41,940                                
                                  1 TABLE ACCESS FULL TABLE GL.GL_JE_CATEGORIES_TL Cost: 9  Bytes: 7,530  Cardinality: 251                           
                                  9 HASH JOIN  Cost: 11,942  Bytes: 4,319,820  Cardinality: 41,940                           
                                       7 MERGE JOIN CARTESIAN  Cost: 4,171  Bytes: 4,233  Cardinality: 51                      
                                            2 TABLE ACCESS FULL TABLE XXFC.XXFC_COMPARATIVO_SD_GL_MAPEO Cost: 27  Bytes: 59,740  Cardinality: 1,030                 
                                            6 BUFFER SORT  Cost: 1.84467440737096E19  Bytes: 1,275  Cardinality: 51                 
                                                 5 SORT UNIQUE  Cost: 4  Bytes: 1,275  Cardinality: 51            
                                                      4 TABLE ACCESS BY INDEX ROWID TABLE GL.GL_PERIODS Cost: 4  Bytes: 1,275  Cardinality: 51       
                                                           3 INDEX RANGE SCAN INDEX XXFC.IDX_GL_PERIODS_PORTAL Cost: 1  Cardinality: 51 
                                       8 TABLE ACCESS FULL TABLE GL.GL_CODE_COMBINATIONS Cost: 7,684  Bytes: 45,138,000  Cardinality: 2,256,900                      
                             12 PARTITION RANGE ITERATOR  Cost: 3  Cardinality: 108  Partition #: 15                                
                                  11 INDEX RANGE SCAN INDEX GL.GL_JE_LINES_N1 Cost: 3  Cardinality: 108  Partition #: 15                           
                   16 TABLE ACCESS BY GLOBAL INDEX ROWID TABLE GL.GL_JE_HEADERS Cost: 3  Bytes: 23  Cardinality: 1  Partition #: 17                                          
                        15 INDEX UNIQUE SCAN INDEX (UNIQUE) GL.GL_JE_HEADERS_U1 Cost: 2  Cardinality: 1                                     

    You must provide sufficient information for us to answer your question. Please read Rob Van Wijk's helpful guide on the sort of things we need to know (and incidentally how you can start to solve your problem yourself): [When your query takes too long|http://forums.oracle.com/forums/thread.jspa?threadID=501834&tstart=0]. Randolf Geist has knocked up a [HOW TO: Post a SQL statement tuning request  |http://forums.oracle.com/forums/thread.jspa?threadID=863295] which is a template of the helpful way to layout a tuning question. Also, read [his blog on the topic|http://oracle-randolf.blogspot.com/2009/02/basic-sql-statement-performance.html]
    You might also benefit from reading [Tom Kyte’s advice on how to ask questions|http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html].
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

Maybe you are looking for