Equivalent of Materialized Views in SQL Server

Hi
we are migrating  Oracle Database to SQL Server 2012 and is looking for solution, equivalent to Materialized Views in Oracle.
we had tried to implement indexed View, but that was not possible, because the MVs have outer joins, subqueries, aggregate functions and also there is no column in it which can act as a Primary Key.
Please Help to get a solution for this issue.
Regards
Joyasree Mondal

>use tempdb
>drop table t
>go
>create table t(id int, constraint pk_t primary key (id))
>
>go
>insert into t(id)
>select top 1000 cast( cast( newid() as binary(4) ) as int)
>from sys.objects o, sys.columns c
>go 100
>
>
>select id
>from t with (index=pk_t, tablockx)
>
>
>select id
>from t with (index=pk_t, nolock)
Still the same order.
>> No, its always in the key order like I've shown here.
> You are extrapolating from a single example.
Actually, this information doesn't even come from my exampleS (there were quite a few so far). Its written in the article you posted here. My examples are meant to confirm that and explain why the ORDER BY clause is redundant in some cases.
> I have.  ORDER BY in a view used to always return ordered results.  Then it didn't.
Examples? References?
>GROUP BY without an ORDER BY used to always return ordered results.  Then it didn't.  Many queries have >change the result ordering when you get a parallel plan.
Now you finally admit ordered results would always be returned, even without an order by clause. We are in the right track it appears. The reason for this change of behavior is a variation in the logical operator used by the query optimizer, and not the
way the engine reads pages from disk.
In the beginning of times there was stream aggregate, an operator that would require its input to be sorted. And this is how a GROUP BY clause would ensure results were always ordered.
But then his ugly cousin came and messed things up. He doesnt need an ordered input so yeah, order would be random. AGAIN, there are still ways of enforcing order here, through query hints, without requiring an order by clause, so this changes nothing.
You have confirmed that for a given operator, results will always be ordered. Your own argument has, once again, proven my point.
> Right.  But there are different _kinds_ of scans.  An ordered scan, where SQL Server reads rows based on the logical order of the index is just one kind. 
It only won't scan in key order (by scheduling reads) if you change the transaction isolation level and hope for the worse. Because the key order scan is the best performing way of reading pages, this behavior (although possible) wasan't even observed in
the example with NOLOCK/TABLOCK (known to cause allocation-order scans in larger tables) you posted above.
> Other kinds include the parallel scan, the reverse scan,
References?
> the merry-go-round scan,
Only applies to table scans, not indexes.
http://technet.microsoft.com/en-us/library/ms191475%28v=SQL.105%29.aspx
> And the allocation-order (or unordered) scan. 
Only if you specify TABLOCK or NOLOCK query hints, which I haven't done. This is something that goes without saying, it's irrelevant to an indexed view scenario such as this one.
Some people have also said it will perform an allocation-order scan if the index is too fragmented in SQL Server 2005, but as of 2012 it (probably) won't, as I have shown here. There is also no document anywhere in the internet (you are free to search for
it), that would point us otherwise. If you have access to additional information, I would be more than happy if you could share it with us.
Reference: http://sqlmag.com/database-development/quaere-verum-clustered-index-scans-part-iii
> And don't take my word for it.  Take Conor Cunningham's:
>If you need order in your query results, put in an ORDER BY.  It's that simple.  Anything else is like >riding in a car without a seatbelt.
>No Seatbelt - Expecting Order without ORDER BY
Again, with all due respect, did you read your own article? Did you read what I said earlier about having multiple I/O threads as a whole other situation? If you add new variables, OF COURSE the results will be different. Parallelism was disabled in the
server I performed these tests on, but still you can control this by query hints, and you can enforce execution plans by using plan gudes.
Its like I always say - it's always about the 0.001% of situations, the exceptions, rather than the general rule.
Tell Mr Connor to add MAXDOP 1 to his querys OPTION clause and see if results are still unordered lol
References:
http://msdn.microsoft.com/en-us/library/ms190417.aspx
http://msdn.microsoft.com/en-us/library/ms181714.aspx
http://technet.microsoft.com/en-us/library/ms188611%28v=sql.105%29.aspx
http://blogs.msdn.com/b/conor_cunningham_msft/archive/2008/08/27/no-seatbelt-expecting-order-without-order-by.aspx
Imagining uncontrollable factors that would get an ordered input to be retrieved in an unordered manner is one of SQL Server's myths. There are a whole other people around who think the same way because of some experiences they had when they didn't know
how to control the execution plan, and adding an order by clause is a very popular and easy shortcut to a complex problem. "In the worst cases it will just be redundant", they say. What they like to forget is that sorting has an often high cost,
and it can be avoided by taking advantage of indexes.

Similar Messages

  • Synatax and Example of Materialized Views in SQL server?

    Syntax and Example of Materialized Views in SQL server?

    Also see
    http://sqlperformance.com/2014/01/sql-plan/indexed-views-and-statistics
    http://www.brentozar.com/archive/2013/11/what-you-can-and-cant-do-with-indexed-views/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How do I create a view in SQL Server in Visual Studio Express 2013 for Desktop?

    Hi
    I've got a SQL Server database set up using the internal SQL Server in Visual Studio Express 2013 for Desktop. I want to create a view (using tables with one to many relationships) but I don't
    know how to do it.
    Where can I find a good tutorial on creating views in SQL Server in Visual Studio Express 2013 for Desktop? I think Visual Studio Express 2013 for Desktop doesn't have some view designer that
    exists in the non-express version of Visual Studio (if I'm not mistaken). So I think I'd need a tutorial on how to do the actual SQL, unless there is some tool I don't know about.
    Thanks

    Hi ,
    According to your description, if you install SQL Server SQL Server 2014 Express and SQL Server Manager Studio tools (SSMS), if you want to create a view, you can use SSMS. Then if you want to connect to and Diagram your SQL Express Database in Visual Studio
    2013, you can attach the database file by using the .NET Framework Data Provider for SQL Server in Visual Studio, and create a database diagram via expanding the “Database Diagrams” node.
     For more information, there is similar issue about how to connect to and Diagram your SQL Express Database in Visual Studio 2012 , you can review the following article,
    http://blogs.msdn.com/b/bethmassi/archive/2011/10/27/how-to-connect-to-and-diagram-your-sql-express-database-in-visual-studio-lightswitch.aspx.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Possible to view MS SQL Server Log in SAP GUI?

    Hi,
    I am wondering if I can view the SQL Server log in SAP GUI using a transaction code.
    I don't readily see how to do this with the TEs.  It would be helpful to see things like: who has tried to log into the SQL Server via a Database Management tool : agnostic to SAP.: is SQL Server Management Studio or DBArtisan or other services.
    thanks
    Chris

    Hi chris
    Yes,you can view the Sql server log in transaction code ST04 & DBA Cockpit in SAPGUI.
    Kindly refer the SAP notes.
    139945 - SAP Database Monitor for MS SQL Server
    1027512 - MSSQL: DBA cockpit for basis release 7.00 and later
    Regards
    Ram

  • How to view SQL for a materialized view in SQL Developer (Oracle 11g R2)

    Good Morning,
    I am new to SQL Developer 3.1.07 and just installed it on a Windows 7 PC yesterday.
    There's a materialized view for which I need to view (and eventually update) the SQL. The mat'lized view is in another schema, but my Oracle user does have access to the schema and to this particular mat'lized view. My user also has SELECT, INSERT, UPDATE, DELETE, DEBUG, and ALTER permissions. When I select (click on) the matl'ized view in the object tree on the left, a multi-tab window opens with information in the Columns, Indexes, Grants, Dependencies and Details tabs, but the SQL pane is blank. I don't know if there's some other GRANT that I need in Oracle, or if there's something else I need to do in SQL Developer to see the matl'ized view SQL.
    Thanks
    Bob Gardner
    [email protected]

    1007420 wrote:
    There's a materialized view for which I need to view (and eventually update) the SQL. The mat'lized view is in another schema, but my Oracle user does have access to the schema and to this particular mat'lized view. My user also has SELECT, INSERT, UPDATE, DELETE, DEBUG, and ALTER permissions. When I select (click on) the matl'ized view in the object tree on the left, a multi-tab window opens with information in the Columns, Indexes, Grants, Dependencies and Details tabs, but the SQL pane is blank. I don't know if there's some other GRANT that I need in Oracle, or if there's something else I need to do in SQL Developer to see the matl'ized view SQL.SQL*Developer can be tricky regarding what it shows for other schemas. I'm not sure what privileges you might need besides the one you listed except RESOURCE on the MV, or maybe CREATE ANY MATERIALIZED VIEW.
    Can you use DBMS_METADATA.GET_DDL to get the data you want (may/may not work due to privileges)?

  • SQL Geometry View in SQL Server 2008 R2

    I will preface by saying I'm not an expert on SQL Spatial and am just learning to use the Geometry functions...
    I am an analyst for a county government and am trying to do the following... we have a parcel dataset that has around 100k features and I'm trying to run a view that finds what county supervisor district each polygon is located within.
    If I use the code below I get 2 different values for a parcel where polygons are not coincident.
    polygonA = parcels
    polygonB = supervisor districts
    SHAPE = geometry storage field
    (polygonA.SHAPE.STIntersects(polygonB.SHAPE) = 1)
    If I use the code below on a small set of data, I get the desired results, but if I try to execute this on our entire parcel dataset, SQL Server times out.
    (polygonA.SHAPE.STCentroid().STIntersects(polygonB.SHAPE) = 1)
    We are using SQL Server 2008 R2 with Geometry storage.
    Any advice would be greatly appreciated in how to improve the performance of the query...if possible.

    If I use the code below on a small set of data, I get the desired results, but if I try to execute this on our entire parcel dataset,
    SQL Server times out.
    You could create a
    Spatial Index on your data to improve performance; see
    CREATE SPATIAL INDEX (Transact-SQL)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Problem refreshing Materialized View in SQL Developer

    I have a database schema with a Materialized View (MV) that updates a products table shown on a website. This schema was recently imported to an 11g database from 8i, but since this import I have been unable to refresh my schema’s Materialized View.
    The MV_PRODUCT_MASTER Materialized View attaches price data to product data that is stored in a normal WEB_PRODUCT table, and create an MV table as a result. The output MV table is what the website pulls data from to display to the site users. Since it is an MV table, this table cannot be edited directly. In order to change, say, a product description, I need to alter the description field in WEB_PRODUCT and manually refresh the MV_PRODUCT_MASTER table. Only through the refresh will the upstream edits appear in the MV_PRODUCT_MASTER table and be visible on the website.
    In my old 7.6.0.11 copy of TOAD, I could manually refresh these MVs easily, by opening the “Snapshots” tab, right clicking on the MV I wanted to refresh and selecting the “Refresh” option. Since the schema was imported to 11g, I have been using the Oracle SQLDeveloper tool to manage the schema. SQLDeveloper doesn’t have a clear method for manually refreshing an MV, or else the method I am using isn’t working.
    If I right click on the MV_PRODUCT_MASTER Materialized View object, and choose “Other Actions”, I see the following choices:
    Shrink Materialized View
    Compile Materialized View
    Force Materialized View Refresh
    Rebuild Materialized View
    …I assumed that “Force Materialized View Refresh” was the right choice, and chose that. This option displays the SQL:
    alter materialized view "WEBADMIN"."MV_PRODUCT_MASTER" consider fresh
    When I apply this, I get the message: “Materialized view “MV_PRODUCT_MASTER” has been set torefreshed”. However, no changes appear in the MV output table. i.e. if I make a specific change to a row in the WEB_PRODUCT table, the change is not being carried into the MV_PRODUCT_MASTER table, so that indicated that the refresh is not actually happening. The MV table appears to believe it is being refreshed:
    REWRITE_CAPABILITY     GENERAL
    REFRESH_MODE     DEMAND
    REFRESH_METHOD     COMPLETE
    BUILD_MODE     IMMEDIATE
    FAST_REFRESHABLE     NO
    LAST_REFRESH_TYPE     COMPLETE
    LAST_REFRESH_DATE     06-APR-10
    STALENESS     UNKNOWN
    …but it isn’t showing any changes.
    What am I doing wrong? Is there a plain SQL statement I can run in order to run these refreshes, instead of using the SQLDeveloper GUI? Thanks for any advice on this.

    Hi Blama,
    DDL for Index-organized Materialized Views is generated in the Early Adopter release 4.1.0.866, which is now available for download.
    The Organization on the Table that is implemented as the Materialized View should be set to INDEX, and the Table's IOT properties will be used during DDL generation.
    David

  • What is the red block on left of Materialized View in SQL Object Browser

    Hi
    In APEX 4.0 i have a few Materialized Views - all work fine, but when I view them in the SQL Workshop Object Browser, a little red block appears on the left hand side of the MV name.
    I'm curious to know what this might mean.
    Thanks
    Mike

    Hi Jari
    That is what is puzzling me, because if I examine the Details tab of the particular MV it shows as VALID.
    The same shows when I run in SQL:-
    select status
    from all_snapshots where NAME = 'MV_NAME';
    The status is valid.
    It is not a problem - just puzzling?!
    Thanks anyway.
    Mike

  • Populate combobox grid view from sql server

    hello,
    is it possible to populate combo box from entries in sql server database
    also is it possible to populate grid view from entries in database including image files stored in binary format
    regards,

    Yes and yes.

  • Index organized Materialized View in SQL Developer Datamodeler

    Hello SQL Developer Datamodeler Team,
    I'm using version 4.0.2.840 and looking for a how-to to change a MV to an IOMV.
    So far I do the following:
    Create Table in Relational Model
    Create MV in Oracle 11g Physical Model
    Double Click Table in Oracle 11g Physical Model
    Set "Implement as MV" to my MV
    OK
    Now I can't find an option for index organized in Physical Model Materialized View properties.
    The setting "Organization: Head/Index" for Physical Model MV-Basetable properties does not change the generated DDL.
    Also, setting this to "Index" does not enable the window's "IOT Properties"-tab (like it does for normal tables).
    Is it possible to create an Index organized Materialized View in current SQL Developer Datamodeler?
    Thank you & Best regards,
    Blama

    Hi Blama,
    DDL for Index-organized Materialized Views is generated in the Early Adopter release 4.1.0.866, which is now available for download.
    The Organization on the Table that is implemented as the Materialized View should be set to INDEX, and the Table's IOT properties will be used during DDL generation.
    David

  • Equivalent for TOP 1 of SQL Server used in subqueries

    Hi all,
    I am trying to migrate a sql query from SQL Server to Oracle 9i, which uses the SQL Server TOP keyword in correlated subqueries.
    How should I write it in Oracle?
    The query is more complicated, but in principle looks like:
    SELECT TAB1.t1_id, TAB2_t2_id,
    ISNULL((select top 1 val_num
    from values where values.val_id = TAB1.val_id ) ,0),
    TAB1.date,
         (select top 1 TAB3.t3_id from TAB3 where TAB3.name = TAB1.name)
    FROM TAB1, TAB2
    WHERE TAB1.org_id = TAB2.org_id
         AND TAB1.date > TO_DATE('2006-01-01', 'YYYY-MM-DD')
         TAB2.required IS NOT NULL
    If I would remove in each subquery the "top 1" and add "and rownum = 1", it will not work.
    Any suggestions?
    Thanks,
    Paul

    http://www.ispirer.com/doc/sqlways38/Output/SQLWays-1-044.html

  • Creating multiple views in SQL Server 2008 database through sqlcmd

    I've written a script that generates a ddl file. The ddl file contains all the table creation, view creation and stored proc creation SQL statements for refreshing my database. The ddl file gets run by sqlcmd.
    From reading other forum posts, it seems that views and stored procedures can only be created through the sqlcmd command when they are part of an individual batch. Can someone please direct me to the documentation on how to do this?
    My DDL is below pertaining to view creation:
    CREATE VIEW [global].[viewDstLocations]
      WITH SCHEMABINDING
     AS
       SELECT REPLACE(STR(c.dstYear, 2), ' ', '0') AS 'DSTyear',
              a.countryCode AS 'CountryCode',
              a.countryDivision AS 'CountryDivision',
              a.stateCode AS 'StateCode',
              a.locationCode AS 'LocationCode',
              a.locationType AS 'LocationType',
              a.gmtVariation AS 'GMTvariation',
              c.dstVariation AS 'DSTvariation',
              REPLACE(SUBSTRING(CONVERT(VARCHAR(8), c.dstStartTs, 8), 1, 5), ':', '')  AS 'DSTstart_time',
              CONVERT(VARCHAR(8), c.dstStartTs, 12) AS 'DSTstart_date',
              c.statusMarkerStart AS 'StatusMarker_start',
              REPLACE(SUBSTRING(CONVERT(VARCHAR(8), c.dstEndTs, 8), 1, 5), ':', '')  AS 'DSTend_time',
              CONVERT(VARCHAR(8), c.dstEndTs, 12) AS 'DSTend_date',
              c.statusMarkerEnd AS 'StatusMarker_end',
              c.dataIndicator AS 'DataIndicator',
              b.locationName AS 'LocationName',
              a.latitude AS 'Latitude',
              a.longtitude AS 'Longtitude'
          FROM [global].[dstLocations] a
             LEFT JOIN [global].[dstLocationNames] b ON (b.locationId = a.locationId AND b.locale = 'en_US')
                LEFT JOIN [global].[dstLocationInfo] c ON (c.locationId = a.locationId);
    GO;
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'DST location info shown in the legacy table structure as well as data format.',
     @level0type=N'SCHEMA', @level0name=N'global', @level1type=N'VIEW', @level1name=N'viewDstLocations';
    GO;
    CREATE VIEW [global].[viewTypes]
      WITH SCHEMABINDING
     AS
       SELECT a.levelTypeId, a.levelTypeName, a.levelDepth, b.productId, b.productName, c.baseLevelTypeId, c.baseLevelTypeName
          FROM [global].[levelTypes] a
             LEFT JOIN [global].[products] b ON (b.levelTypeId = a.levelTypeId)
                LEFT JOIN [global].[baseLevelTypes] c ON (c.levelTypeId = a.levelTypeId);
    GO;
    EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Displays level types and their associated products and base level types.' , @level0type=N'SCHEMA',@level0name=N'global', @level1type=N'VIEW',@level1name=N'viewTypes';
    GO;
    <<Several other views>>

    Kalman,
    I've followed that approach, but was getting an error. Hopefully this gives enough detail:
    First, I use a .bat file to generate the sql file as you suggest. The structure is as follows:
    USE [MYDB] 
    GO
    <<All my create scripts, without GO between them>>
    GO;
    <<All my view scripts, without GO between them>>
    GO;
    <<All my strored procedures, without GO between them>>
    GO;
    Then, I run the generated SQL with the -i option as you mentioned.
    I get back the resulting error below:
    Msg 156, Level 15, State 1, Server DEV-238SQLEXPRESS, Procedure viewDstLocations, Line 2
    Incorrect syntax near the keyword 'EXEC'.
    Msg 156, Level 15, State 1, Server DEV-238SQLEXPRESS, Procedure spGeneralDeleteNodeAndSubtree, Line 2
    Incorrect syntax near the keyword 'PROCEDURE'.
    Msg 137, Level 15, State 2, Server DEV-238SQLEXPRESS, Procedure spGeneralDeleteNodeAndSubtree, Line 2
    Must declare the scalar variable "@parentId".
    Msg 137, Level 15, State 2, Server DEV-238SQLEXPRESS, Procedure spGeneralDeleteNodeAndSubtree, Line 2
    Must declare the scalar variable "@levelTypeId".
    Msg 137, Level 15, State 1, Server DEV-238SQLEXPRESS, Procedure spGeneralDeleteNodeAndSubtree, Line 2
    Must declare the scalar variable "@name".
    Msg 137, Level 15, State 2, Server DEV-238SQLEXPRESS, Procedure spGeneralDeleteNodeAndSubtree, Line 2
    Must declare the scalar variable "@name".
    Msg 134, Level 15, State 1, Server DEV-238SQLEXPRESS, Procedure spGeneralDeleteNodeAndSubtree, Line 2
    The variable name errormsg has already been declared. Variable names must be unique within a query batch or stored procedure.
    From the documentation, I saw that CREATE VIEW needs to be the first statement in a batch. I assume this to mean I will need to break out my view and stored procedures to separate files and call the sqlcmd command multiple times, once for the table creation
    and then once for each view and once for each stored procedure. If there is a way to still do this as only one file, that would answer my original question.
    If there is anything else I can paste or send, please let me know.

  • Spatial view in sql server

    Hi everybody 
                i want to create spatial view in the sqlserver 2008 . i m creating relationship between entity . i m pasting my sql query :
    SELECT     sde.STATE.OBJECTID, sde.STATE.StateID, sde.STATE.StateName, sde.STATE.SHAPE, SUM(sde.Population.Population) AS Expr1
    FROM         sde.STATE INNER JOIN
                          sde.Population INNER JOIN
                          sde.TEHSIL ON sde.Population.TehsilID = sde.TEHSIL.TehsilID INNER JOIN
                          sde.DISTRICT ON sde.TEHSIL.DistrictID = sde.DISTRICT.DistrictID ON sde.STATE.StateID = sde.DISTRICT.StateID
    GROUP BY sde.STATE.OBJECTID, sde.STATE.StateID, sde.STATE.StateName, sde.STATE.SHAPE
    when i try to save this query it gives the error .
    The type "gemometry " is not comparable .It can not be used in the GROUP BY clause.
    when i not include shape in GROUP BY clause it gives following error
    Column 'sde.STATE.SHAPE ' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause
    please if any one has created just informed me

    Should just be a matter of doing the aggregation in a subquery.  Try:
    SELECT  sde.STATE.OBJECTID     
          , sde.STATE.StateID     
          , sde.STATE.StateName     
          , sde.STATE.SHAPE,     
          , q1.SumOfPopulation     
    FROM    sde.STATE      
            JOIN (      
                    SELECT   StateID,     
                           , SUM(sde.Population.Population) as SumOfPopulation     
                    FROM     sde.STATE      
                             JOIN sde.DISTRICT ON sde.STATE.StateID = sde.DISTRICT.StateID     
                             JOIN sde.TEHSIL ON sde.TEHSIL.DistrictID = sde.DISTRICT.DistrictID    
                             JOIN sde.Population ON sde.Population.TehsilID = sde.TEHSIL.TehsilID  
                    GROUP BY StateID  
             ) q1 ON q1.StateID = sde.STATE.StateID    

  • Updating Views in sql server

    Hi,
    I am trying to update a view but the result is 0 row(s) updated
    ALTER VIEW vw_AuthorizedStationeries
    AS
    SELECT StationeryID,
    CreatedOn,
    StationeryName
    FROM dbo.Stationeries
    WHERE Authorized = 1
    GO
    -----------------Update Views-------------------
    UPDATE vw_AuthorizedStationeries
    SET
    CreatedOn = GETDATE()
    WHERE
    StationeryName = 'StationThree'
    GO
    What am I doing wrong?
    I am trying to update the column 'CreatedOn' with todays date where the row is 'StationThree'.
    Is it even possible to what I am trying to do using Views?
    Thanks!

    Its possible so far as view retrieves a record which satisfies your specified condition ie 
    StationeryName = 'StationThree'
    You can check if there are records satisfying condition using below query
    SELECT COUNT(*)
    FROM dbo.Stationeries
    WHERE Authorized = 1
    AND StationeryName = 'StationThree'
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SQL Server Distributed Partitioning Views how to add a new node online

    We are using distributed partitioning views in SQL Server 2012 Enterprise Edition for scaling out our data across more than one servers. Now we faced to question how to add a new node (server) into the scale outed db servers system without sending the servers
    down, so our users will be able to use them during the process as well.
    For example we have 4 servers with scaled out data. When we add the new empty server, the CHECKINGs for the partitioning columns should be reorganized. But during the process the partitioning views are not working.
    The High Availability, Always On or Failover Cluster approaches seem are not resolve the problems.
    So my question is how to add new node online?
    KH

    Thank you Erland for the reply.
    Yes, it's sounds as possible solution but has some not resolvable nuance in it. Let's say we copied some data from Node5 to new added Node6. Let's assume in Node5 we had data in Table1 with partitioning column's values 100,101,102,103,104,105,106.  Now
    we want to copy part of the rows with partitioning column's values 103,104,105,106 from Node5.Table1 into Node6.Table1. With this Node5 will contain less data and will work more quickly (less IO, less CPU usage etc), and the rest data will be contained on
    Node6. But because of Node5 is already in use, the Node5.Table1 contains CHECK CONSTRAINT = ParttionColumn should be from 100 up to 106. This is check for Node5. The Distributed Partitioning Views are already using the CHECKs to identify what server should
    be used to get data from.
    Now when we copied part of the Node5.Table1 rows to Node6.Table1 the views are still using the 103-106 rows from Node5.Table1 because the CHECK points there. Then we include the newest Node6.Table1 in the distributed partitioning views. OK, but we should
    set some CHECK on new Node6.Table1 which will be used by views. We can't set intersecting checking like Node5 has CHECK 100-106 and Node6 has CHECK 103-106. We also can't edit Node5 check and set it 100-102 untill the data will be removed in it. But this means
    that the data will not be available during the execution. 
    So, any ideas ?
    KH

Maybe you are looking for

  • Global data getting reset when running under IIS?

    We have a scenario using IIS with an ASP.NET web service written in VB.NET. When a call to the web service is made, the web service calls a native dll (written in C, compiled using VS2010) using platform invoke, which in turn calls into our product A

  • Cannot install CS6 on Macbook Pro OSX 10.8

    So I took advantage of a sale for educators and bought Photoshop CS6 and I'm following the instructions, I downloaded the Akamai download manager and followed the instructions on the .pdf that it came with. After the download concluded, I click on op

  • Hardware requirement for Web Dynpro for ABAP

    Hi Friends,                 I am a  starter in Web Dynpro for ABAP and about to develop web dynpro application in ABAP.Can anyone please guide me on the hardware requirement for this application of SAP?        Presently I have ECC 5.0 installed in 1

  • Error when adding document lines using DIAPI

    Error: "Item no. is missing  [ORDR.ObjType]" Hi I m getting [mentioned above] error when i try to add more line in rdr1 that is same as existing row, and try to update document object. <b>Problem:</b>There is already one row in rdr1 and i have to add

  • Dreamweaver list/menu in Contribute

    Hello, In dreamweaver I have made a form for people to make a reservation for a boattrip. In this form you can choose from a list/menu to select a specific date for your trip. Before, I always updated these dates in Dreamweaver myself. But now I'd li