473,407 Members | 2,315 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

how to create a real (not virtual) table from view1 & view2 ni sql server?

Hello all,
my question might be trivial but since my background isn't DB i'll dare
to ask it any way:

how to create a real (not virtual) table from view1 & view2 ni sql
server?

what should i do specificly in the sql server application & what is the
syntax for that?

i thank all of you,
groupy.

May 11 '06 #1
2 1840
hi,
groupy wrote:
Hello all,
my question might be trivial but since my background isn't DB i'll
dare to ask it any way:

how to create a real (not virtual) table from view1 & view2 ni sql
server?

what should i do specificly in the sql server application & what is
the syntax for that?

i thank all of you,
groupy.


what you are asking is potentially dangerorus...
you can achieve the desired result UNIONing the desired views specifying the
INTO clause of the SELECT statement, thus effectively creating a new base
table with the output of the SELECT statement... constraints and indexes
associated with the base objects will not be generated, but as you are in
this case dealing with views, chances are that non keys nor indexes are
present...
the dangerous part is about persistency of the new table... it will not be
updated as the base tables of the referencing views will be...
thus what you are getting is a static snapshot f the point in time you
"created" your new table...
and, except perhaps for reporting tasks, I actually do not see a reason to
perform this operation as you are actually doubbling storage requirements,
you are breaking normalization and so on... again, I can see only a static
reporting requirement, say you need to have a point in time "view" of your
sales, and you need it all a month long, then you can do it, regenerating
this dump (but real) table at each month beginning...

http://msdn.microsoft.com/library/de...a-ses_9sfo.asp
http://msdn2.microsoft.com/en-us/library/ms190750.aspx
--
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtm http://italy.mvps.org
DbaMgr2k ver 0.18.0 - DbaMgr ver 0.62.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
--------- remove DMO to reply
May 11 '06 #2
Dear Andrea ,
Thanks alot for your quick answer.
You helped me a lot to understand the situation.

Groupy.

May 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Josh Lessard | last post by:
Hi all. I'm maintaining a C++ program and I've come across a nasty piece of code that works, but I just don't understand why. I'm not actually this part of the program, but I really want to know...
5
by: skscpp | last post by:
I "think" I understand why a virtual table needs to be constructed when polymorphic classes are being compiled. Now, I also know what a type_info function and type_info node are although I am...
2
by: DMS | last post by:
am new to ASP.NET and IIS web applications, but not to SQL databases. I can successfully build Windows apps using Visual Studio that use ADO. However, for Web Forms, I created data connection and...
11
by: dfurtney | last post by:
SQL Server 7/2000: We have reasonably large tables (3,000,000 rows) that we need to add some indexes for. In a test, it took over 12 hours to CREATE a new INDEX against this table. One of us...
5
by: Bernard | last post by:
Hi, Is there a way to have the virtual table of c++ objects allocated in shared memory (in fact in the same address space as the object is) instead of having it allocated in the process address...
1
by: chenggf | last post by:
How to create the tow virtual directory in one Install program with Microsoft.Net ?
1
by: relient | last post by:
I'm learning about the virtual table in association with virtual methods. I got most of the logic and understanding down (I believe) for when you use 'override' and no 'override' or no 'new'...
12
by: sojin | last post by:
Hi all, I'm a new to c++... and I've some doubts on "virtual" topics. 1) Can abstract base class have V-table? Here's the way,, Class CTemp{
4
by: Owen Zhang | last post by:
I am trying to debug a problem using dbx in sun 5.9. I want to print the virtual table from dbx. Find the real address of the virtual function of the object.
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.