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.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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