Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6994871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:56:52+00:00 2026-05-27T19:56:52+00:00

I am planning to schedule a job on one my database and which basically

  • 0

I am planning to schedule a job on one my database and which basically runs at 5:00 PM everyday.

Database 1 : TestOne TableName: MyTable

Database 2 : TestTwo TableName: MyTable

My schedule job resides in TestOne and Inserts into MyTable and the values has
to come from TestTwo.MyTable.

Is there any example that’s available that does something similar? Is this as simple as getting an user from TestOne.MyTable access rights on TestTwo.MyTable?

I appreciate your inputs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T19:56:53+00:00Added an answer on May 27, 2026 at 7:56 pm

    Some simple scenarios (assuming – i can do the truncate):

    truncate table TestOne.dbo.MyTable
    insert TestOne.dbo.MyTable(fieldslist)
    select fieldslist from TestTwo.dbo.MyTable
    

    OR

    using the merge (more like the incremental, but needs an unique key):

    MERGE TestOne.dbo.MyTable T
    USING (SELECT fieldslist from TestTwo.dbo.MyTable) S
    ON T.UniqueKey = S.UniqueKey
    WHEN MATCHED THEN UPDATE SET
      field1=S.field1,
      ...
    WHEN NOT MATCHED THEN 
        insert (fieldslist)
        VALUES(fieldslist)
    WHEN NOT MATCHED BY SOURCE DELETE;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm planning an application which will involve loading many pictures at one time and
I'm planning to write a program in Ruby to analyse some data which has
I am planning to write WP7 app, which needs to send to server phones
I'm planning to develop a Web/cloud application using python which does the following, 1.
I'm planning a winform which will let the user preview a report (generated with
I'm planning to create an VB.net application for retrieving data from a database (MS
am planning to implement Castle windsor in WCF layer, which is an ASP.Net project.
I am planning on creating a DB driven site/ Application which needs to also
Am planning to use cookies to communicate between two browser windows. Am wondering if
Im planning to create an Alert view with three buttons, my problem is I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.