1

I have a view - called as View A and three other tables - Table A, Table B and Table c.

Table A , Table B, Table C are connected to each other through Primary and foreign Keys.

Then I created a View called as View A with column fields coming from those tables. I have the same columns available in my excel sheet. How, do I load that data inside the view. So, that the tables get updated.

Note : - SQL Server Import Wizard didn't show the view created. It just showed the 3 tables.

1
  • You cannot directly insert into a view and trigger insertion into underlying tables. The opposite is true, you can insert into underlying tables and expect the data to be reflected into your view. Commented Oct 5, 2017 at 11:22

1 Answer 1

1

A view is a virtual table. A view consists of rows and columns just like a table. The difference between a view and a table is that views are definitions built on top of other tables (or views), and do not hold data themselves. If data is changing in the underlying table, the same change is reflected in the view.

Because a view is virtual you're unable to insert data into them without that data being present in the underlining tables first.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.