473,657 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1856
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
8093
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 how and why it works. I'll post a simplified version of it below and ask my questions afterwards: class Base { void *function_ptr;
5
5502
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 not sure "when" they are constructed by the compiler? Also, any books which talks about any of these 3 subjects in detail or semi-detail would be nice. Thanks.
2
16490
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 sqladapter to my SQL Server - Northwind - which I dragged from Server Explorer. I generate a dataset, and Preview Data in the da, works fine. I then enter vb code on Page_Load event: SqlDataAdapter1.Fill(ds) DataGrid1.DataSource =...
11
27205
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 suggested that we create a temp table with the new index and copy the data from the old table into the new one, then rename it. I understand this took 15 minutes. Why the heck would it be faster to move the data and build multiple indexes...
5
7812
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 space ? This could be useful to share objects between processes without having to call the constructor of the object twice (I think it is the constructor that is creating the virtual table, right ?) Thanks
1
1278
by: chenggf | last post by:
How to create the tow virtual directory in one Install program with Microsoft.Net ?
1
5827
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' modifier. What I'm trying to figure out now is what happens when you do use modifier 'new' on a derived class method inherited from the base class? My understanding for the override mechanism with the following code: class Base
12
4977
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
5463
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
8399
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8504
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6169
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4318
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1622
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.