BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Sathish_jammy
Lapis Lazuli | Level 10

Dear Experts,

 

I attend a telephonic interview with CSS Corp. They ask me technical questions from MS-SQL Server.

I need to know whether the method is possible in SAS.

The question is: Assume you have 2 tables which have the same rows and columns. 

If I modify the existing value / Add the new row in Table_1, how the table_2 automatically update the new value?.

 

Is there any possible methods to do automatic updates.

Please share your ideas.

Thanks in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

I'm guessing that you are talking about the capability of many relational databases, including SQL Server, to automatically replicate tables between databases so that the target table is an exact copy of the source one. Is this what you mean? This feature is particularly useful when synchronising data between primary and secondary data centres. 

 

SAS doesn't have this capability built into the product. You could build your own version of it if required though.

View solution in original post

2 REPLIES 2
SASKiwi
PROC Star

I'm guessing that you are talking about the capability of many relational databases, including SQL Server, to automatically replicate tables between databases so that the target table is an exact copy of the source one. Is this what you mean? This feature is particularly useful when synchronising data between primary and secondary data centres. 

 

SAS doesn't have this capability built into the product. You could build your own version of it if required though.

ScottBass
Rhodochrosite | Level 12

As @SASKiwi said, SAS does not support replication in the way SQL Server does.

 

"Table"_2 could be a view of table 1 though.  But that's not the same as two separate physical tables that are automatically kept in sync by configuration at the table or database level.


Please post your question as a self-contained data step in the form of "have" (source) and "want" (desired results).
I won't contribute to your post if I can't cut-and-paste your syntactically correct code into SAS.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 845 views
  • 2 likes
  • 3 in conversation