SQL Server Data Warehousing ForumNeed help with using SQL Server for data warehousing, Change Data Capture, or decision support? Post your questions here.© 2009 Microsoft Corporation. All rights reserved.Sun, 29 Nov 2009 09:48:06 Z6053929a-7d13-41d8-8360-e3bcdfb63cd3http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/8f92033f-e040-46aa-bc4d-8bb1f9a7d299http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/8f92033f-e040-46aa-bc4d-8bb1f9a7d299True2selfhttp://social.msdn.microsoft.com/Profile/en-US/?user=True2selfRapidly changing dimension attrubutes..Hi Everyone,<br/>The scenario I have is,..<br/>I have 4 dimensions and one of them is Property..Property has some fixed attributes...which don't change for each transaction.....and<br/>a list of more than 300 attributes, which are actually part of the fact table….(basically ..these values changes for each transaction level record in fact but belongs to the property dimension).<br/>that lot contains more than a 100 date attributes,.. around a 50 monetary values, more than 10 comments…n some flags.<br/><br/>I don't want to connect the date attributes to time dimension..Bcoz,..there is no analysis...is required on them..<br/>But,..my question is,.....How do I represent(or) store them????<br/><br/>I can not make a junk dimension for all these attributes..bcoz, theere are no fixed range of values...for these attributes...<br/><br/>I tried,. a method...grouping all these attributes under a single name...'Property Chracterstics' and a Propety ID put into a Dimension...and storing the value of 'Property characterstics' into a fact...<br/>But,..Here..it tries to aggregate all the dates....n flags...across the dimensions!!..<br/><br/>not sure .. How I explained it….but,…please let me know if it needs more clarity..Fri, 27 Nov 2009 11:07:13 Z2009-11-27T11:07:13Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/980954e8-b6f9-4ca9-a8e1-91c5e2eeef15http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/980954e8-b6f9-4ca9-a8e1-91c5e2eeef15robsen96http://social.msdn.microsoft.com/Profile/en-US/?user=robsen96Microsoft SQL Server Reporting instead of using SAP Business Warehouse<p>Hy...<br/><br/>has anyone experiences in using Microsoft SQL Server instead of SAP Business Warhouse.<br/><br/>For the moment i did not find any Information if this is usefull.<br/><br/>OK, SQL Server is used as an Database for SAP BW and R/3 / ECC.<br/>But for me this is not integrated enough. I wanted to connect SAP ECC directly to Microsoft SQL Server for BI (Business Intelligence) Reporting.<br/><br/>Thanks for your opinions and experiences, best regards<br/><br/>Robert</p>Mon, 09 Nov 2009 10:35:16 Z2009-11-27T03:57:09Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/2162e45f-993a-4368-88d7-0db53ba9917ahttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/2162e45f-993a-4368-88d7-0db53ba9917airmayhttp://social.msdn.microsoft.com/Profile/en-US/?user=irmayBusiness Intelligence SQL Server 2005 with Windows Vista BussinessI´m developing an integration service project. In the Toolbox, the entire Dataflow items are disabilited. I´m using Windows Vista Bussiness, SQL Server BI 2005. I tried to upgrade to 2008 but I´ve had a lot of problems, even installing the 2005. During it, I read the advise ´This program has incompatibility problems´ <br/><br/>Definitly must be another solution than a OS change.<br/><br/>Fri, 27 Nov 2009 02:07:32 Z2009-11-27T02:07:33Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/c1d4b566-8ae8-4eb5-b04f-8b088634bf2ehttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/c1d4b566-8ae8-4eb5-b04f-8b088634bf2eMustafaHhttp://social.msdn.microsoft.com/Profile/en-US/?user=MustafaHGeneral Question about transfering data to DWH using SSISHello All,<br/><br/>I have a situation in which I have to transfer some data on weekly basis and some data on monthly basis. I do receive data in two formats i.e. excel and text files. When client send us the data they append a data into the same file which they have already sent us last week/month.<br/><br/>So we do have the same data with some changes and the new data appended in the end of each file. But the business requirement is to keep all the dataand transfer all the data regardless of no change in the previous data. for example first week or month i have received the file containing the following data<br/><br/>column A     Column B    Column C    Column D<br/>11                   AA              BB             £20<br/>22                   cc               dd             £30<br/>33                   ee               ff              £40<br/><br/>Now second  week or month, I have received the same file with the following data<br/><br/>column A     Column B    Column C    Column D<br/>11                   AA              BB             £20<br/>22                   cc               dd             £30<br/>33                   ee               ff              £40<br/>44                   gg               hh            £50<br/><br/>Now one row has been added and the first three rows are same. Some times they can remove all the three rows from above file and send a new row. Some times they can make the changes in the previous record and append the new rows as well. to maintain the history management want to tranfer everything from source file regardless it has already been transfered or not.<br/><br/>Now from reporting point of view what would be the best approach. I have added three rows in the destination tables <br/><br/>RowStartDate<br/>RowEndDate<br/>WeekNo<br/><br/>In RowStartDate i am adding the date when package has run (i.e. current date)<br/>In RowEndDate i am adding one month / or 7 days to the rowstartdate to calculate the Rowenddate<br/>In WeekNo, I am extracting the week no from RowStartDate.<br/><br/>Is it a correct approach? or there are some better ways to handle this requirement? Any suggestions please.<br/><br/>Thanks  <br/>Tue, 24 Nov 2009 08:43:15 Z2009-11-26T11:48:25Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ee713f22-aecb-419b-b0c3-cd7e84d9fd7bhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ee713f22-aecb-419b-b0c3-cd7e84d9fd7bGTNovoselhttp://social.msdn.microsoft.com/Profile/en-US/?user=GTNovoselAccessing ODBC Data From SQL Stored ProcedureSQL 2005.<br/><br/>I am looking to develop a stored procedure to query external data via an ODBC (not OLEDB) connection (Merant Progress). <br/><br/>Ideally I had wanted to setup a linked database to do this but without an OLEDB driver for the external data source this does not appear possible.<br/><br/>So....<br/><br/><br/>1. Is it possible to setup a linked database without using an OLEDB driver?<br/><br/>2. If not, then is there a manner to query/access data through an ODBC connection within SQL?<br/><br/>TIA Gary<hr class="sig">Gary in Massena. WinForms Client Development. SQL Server Management and Development.Mon, 23 Nov 2009 15:47:55 Z2009-11-25T16:49:39Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/a71b493e-657a-461f-b1a9-60d5776a6eb1http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/a71b493e-657a-461f-b1a9-60d5776a6eb1Ayub Bhayathttp://social.msdn.microsoft.com/Profile/en-US/?user=Ayub%20BhayatDays into MonthsHi<br/><br/>Am not an expert SQL user and I am trying to format days into calendar months.  <br/><br/>For example the fromdate is: 05/04/2009 and the endDate is 23/03/2010<br/><br/>I have a field for each calendar month in my table from Apr - Mar...for the above I want the code to calculate 25 days go into April 31 into May 30 into June.....etc....and....23 into March<br/><br/>i can do a datediff to get the total number of days but this dosent help with inserting the number of days for each month pertaining to that record<br/><br/>can anyone help?<br/><br/>ThanksMon, 23 Nov 2009 23:50:49 Z2009-11-24T04:54:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/e519e604-8b55-4971-892e-fe9f6f2c2295http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/e519e604-8b55-4971-892e-fe9f6f2c2295kailashbkhttp://social.msdn.microsoft.com/Profile/en-US/?user=kailashbkTable partitions with varchar columnHi All, <div><br/></div> <div>Can anyone tell me if it is possible to have table partitions built on a varchar key(the data is alphanumeric) without any range ?</div> <div><br/></div> <div>Also, can a partitions be created without specifying the range on a numerical key ?</div> <div>Suppose my key has the data like 1,2,3,4,5,6. I want to create separate partitions for keys 2 alone and 3 alone. Also,the rest of the keys 1,4,5,6 must be in another partition.</div> <div><br/></div> <div>Regards,</div> <div>Kailash</div>Fri, 20 Nov 2009 06:57:56 Z2009-11-29T09:48:06Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ed7c2c7a-56c8-43b1-a278-0264dd3ffc6ehttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ed7c2c7a-56c8-43b1-a278-0264dd3ffc6eWSTMhttp://social.msdn.microsoft.com/Profile/en-US/?user=WSTMreporting data warehouse management server is currently unavailblehelp, what is that mean?<br/><br/>please advise, <br/><br/>thanksThu, 19 Nov 2009 22:39:53 Z2009-11-19T22:39:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/b38a95ee-d2a5-4c6e-84de-8af208c990achttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/b38a95ee-d2a5-4c6e-84de-8af208c990acsireeshapulipatihttp://social.msdn.microsoft.com/Profile/en-US/?user=sireeshapulipatiSQL taking forever to executeI'm using AdventureWorksDW<br/><br/>I've written a query to extract average sales by product and sales territory country.<br/>I didn't get any syntax errors, but it's taking forever to execute both in Management Studio and reporting Services.<br/><br/>Can anyone tell me if anything is wrong with the SQL?<br/><br/>MODERATOR EDIT - please use the insert code block button when pasting SQL Code.  It is the last button on the right of the toolbar when composing a post.<br/><br/> <pre lang=x-sql>SELECT DimProductCategory.EnglishProductCategoryName, DimSalesTerritory.SalesTerritoryCountry, SUM(FactInternetSales.SalesAmount)/COUNT(DISTINCT FactInternetSales.SalesOrderNumber) AS AverageSales FROM DimProduct INNER JOIN DimProductSubcategory ON DimProduct.ProductSubcategoryKey = DimProductSubcategory.ProductSubcategoryKey INNER JOIN FactInternetSales ON DimProduct.ProductKey = FactInternetSales.ProductKey CROSS JOIN DimSalesTerritory CROSS JOIN DimTime CROSS JOIN DimProductCategory GROUP BY DimProductCategory.EnglishProductCategoryName, DimSalesTerritory.SalesTerritoryCountry</pre>Thu, 12 Nov 2009 23:20:36 Z2009-11-21T07:57:54Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/4bbb467e-0c86-47b2-bfe7-77bb2ddcbbb3http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/4bbb467e-0c86-47b2-bfe7-77bb2ddcbbb3PowerLianghttp://social.msdn.microsoft.com/Profile/en-US/?user=PowerLiangCreate global cube error<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri;font-size:small">                I have a LastNonEmpty measure in the cube, when I run this query, I got error. </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:Calibri;font-size:small"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';color:blue;font-size:10pt">CREATE</span><span style="font-family:'Courier New';font-size:10pt"> <span style="color:blue">GLOBAL</span> <span style="color:blue">CUBE</span> [Inventory Visibility] <span style="color:blue">STORAGE</span> 'C:\Users\v-polian\Documents\Hardware\work\2968377984\Inventory Visibility.cub' <span style="color:blue">FROM</span> [Inventory Visibility]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">(</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      <span style="color:blue">MEASURE</span> [Inventory Visibility].[Optiant Reorder Point],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      <span style="color:blue">DIMENSION</span> [Inventory Visibility].[Date].[APO Date Hierarchy]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      (</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [(All)],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [APO Year Nbr],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [APO Month Name YY],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [APO Week Start Date],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [Calendar Date]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      ),</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      <span style="color:blue">DIMENSION</span> [Inventory Visibility].[Date].[Fiscal Date Hierarchy]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      (</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [(All)],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [Fiscal Year Nbr],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [Fiscal Quarter Nbr YY],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [Fiscal Month Name YY],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [Fiscal Week End Date],</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">            <span style="color:blue">LEVEL</span> [Calendar Date]</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">      )</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">)</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt">The error message is </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Executing the query ...</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Server: The operation has been cancelled.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Internal error: The operation terminated unsuccessfully.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Errors in the OLAP storage engine: An error occurred while processing the 'Inventory Visibility' partition of the 'APO Planning Fact' measure group for the 'Inventory Visibility' cube from the Inventory Visibility database.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Errors in the OLAP storage engine: The process operation ended because the number of errors encountered during processing reached the defined limit of allowable errors for the operation.</span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:8pt">Execution complete</span><span style="font-family:'Courier New';font-size:10pt"></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-family:'Courier New';font-size:10pt"> </span></p>Thu, 12 Nov 2009 01:46:31 Z2009-11-13T09:57:19Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/1d9fd3df-0546-418e-b313-3bc3953deb90http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/1d9fd3df-0546-418e-b313-3bc3953deb90kailashbkhttp://social.msdn.microsoft.com/Profile/en-US/?user=kailashbkDetermine the partition numberHi All, <div><br/></div> <div>I have created 6 partitions based on a key. My keys are from 100,101.. 105 and a separate partition is created for each key.</div> <div>Can anyone tell me how to determine which partition(partition number) is created for each of the keys.</div> <div><br/></div> <div><span style="font-family:arial;font-size:13px;color:#333333;font-weight:bold;line-height:17px">Following is the result</span></div> <div><br/></div> <div> <div><strong>partition_id</strong><span style="white-space:pre"><strong> </strong></span><strong>    object_id</strong><span style="white-space:pre"><strong> </strong></span><strong>index_id</strong><span style="white-space:pre"><strong> </strong></span><strong>partition_number</strong><span style="white-space:pre"><strong> </strong></span><strong>hobt_id</strong><span style="white-space:pre"><strong> </strong></span><strong>                rows</strong><span style="white-space:pre"><strong> </strong></span></div> <div>72057594068860928<span style="white-space:pre"> </span>1474104292<span style="white-space:pre"> </span>1<span style="white-space:pre"> </span>            1<span style="white-space:pre"> </span>          72057594068860928<span style="white-space:pre"> </span>        0<span style="white-space:pre"> </span>          </div> <div>72057594069123072<span style="white-space:pre"> </span>1474104292<span style="white-space:pre"> </span>1<span style="white-space:pre"> </span>            2<span style="white-space:pre"> </span>          72057594069123072<span style="white-space:pre"> </span>        10575<span style="white-space:pre"> </span>       </div> <div>72057594069319680<span style="white-space:pre"> </span>1474104292<span style="white-space:pre"> </span>1<span style="white-space:pre"> </span>            3<span style="white-space:pre"> </span>          72057594069319680 <span style="white-space:pre"> </span>0<span style="white-space:pre"> </span>           </div> <div>72057594069385216<span style="white-space:pre"> </span>1474104292<span style="white-space:pre"> </span>1<span style="white-space:pre"> </span>            4<span style="white-space:pre"> </span>          72057594069385216 <span style="white-space:pre"> </span>5290<span style="white-space:pre"> </span>        </div> <div>72057594069450752<span style="white-space:pre"> </span>1474104292<span style="white-space:pre"> </span>1<span style="white-space:pre"> </span>            5<span style="white-space:pre"> </span>          72057594069450752 <span style="white-space:pre"> </span>0<span style="white-space:pre"> </span>       </div> <div>72057594070237184<span style="white-space:pre"> </span>1474104292<span style="white-space:pre"> </span>1<span style="white-space:pre"> </span>            6<span style="white-space:pre"> </span>          72057594070237184<span style="white-space:pre"> </span>        0<span style="white-space:pre"> </span></div> </div> <div><br/></div> <div>Regards,</div> <div>Kailash</div> <div><br/></div> <div><br/></div>Tue, 27 Oct 2009 10:40:58 Z2009-11-10T13:50:36Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ae07477d-5b44-475b-bd03-3340370c21bchttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ae07477d-5b44-475b-bd03-3340370c21bcdeepblue2009http://social.msdn.microsoft.com/Profile/en-US/?user=deepblue2009What is the real difference of dimensional data warehouse and the normalized OLTP database? Hi everyone,<br/> <br/> This problem haunts me for a long time.<br/> I know what a dimensional data warehouse is and its schema.<br/> However, I am puzzled why the dimensional data warehouse is query faster than the normalized database.<br/> The dimensional data warehouse is split into many dimensional tables which should be joined by the JOIN operator...<br/> <br/> So, is anyone can tell the real difference and give some basic example?<br/> <br/> Really thanks!Mon, 09 Nov 2009 09:04:34 Z2009-11-20T08:59:42Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/3b7fc3a0-32e2-4c73-99c1-1357ebcc4753http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/3b7fc3a0-32e2-4c73-99c1-1357ebcc4753kailashbkhttp://social.msdn.microsoft.com/Profile/en-US/?user=kailashbkBitmap indexing in SQL Server 2008Hi All,<br/><br/>Is it possible to do bitmap indexing in SQL server 2008 ? Please let me know if there are any useful links.<br/><br/>Regards,<br/>KailashThu, 22 Oct 2009 12:44:54 Z2009-11-09T01:59:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ea95dbc5-c8fc-4e42-b76b-b6c95f1ed17ehttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ea95dbc5-c8fc-4e42-b76b-b6c95f1ed17eesnkhttp://social.msdn.microsoft.com/Profile/en-US/?user=esnkNeed an advise on designing BI infrastructure<p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small"><span style="font-family:Calibri">Our corporate currently has a medium sized (approx 500 GB) data warehouse in SQL SERVER 2005 and all SQL Server’s components database server, SSIS and SSAS are deployed to the single physical server. Considering the current performance and future growth management, we are in the process of re-architecting this BI infrastructure using SQL SERVER technologies.</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small"><span style="font-family:Calibri"><span style=""> </span></span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small"><span style="font-family:Calibri">Could you please share your ideas/experiences/expertise on selecting the following design choices for designing a BI infrastructure for an optimal performance:</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small"><span style="font-family:Calibri"><span style=""> </span></span></span></p> <p class=MsoListParagraph style="margin:0cm 0cm 0pt 36pt;text-indent:-18pt"><span style=""><span style=""><span style="font-size:small;font-family:Calibri">1.</span><span style="font:7pt &quot;Times New Roman&quot;">       </span></span></span><span style="font-size:small"><span style="font-family:Calibri"><strong>System Configuration</strong> : Monolithic (run all SQL Servers components in single physical server) OR Distributed (run all SQL Servers components to different physical servers)</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Calibri"> </span></p> <p class=MsoListParagraph style="margin:0cm 0cm 0pt 36pt;text-indent:-18pt"><span style=""><span style=""><span style="font-size:small;font-family:Calibri">2.</span><span style="font:7pt &quot;Times New Roman&quot;">      <strong> </strong></span></span></span><span style="font-size:small"><span style="font-family:Calibri"><strong>Data Storage</strong>: SAN or DAS</span></span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small;font-family:Calibri"> </span></p> <p class=MsoNormal style="margin:0cm 0cm 0pt"><span style="font-size:small"><span style="font-family:Calibri">Thanks in Advance.</span></span></p>Thu, 05 Nov 2009 17:41:49 Z2009-11-16T04:06:19Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/218776ea-bf14-4cc5-82b7-18dd31bc5f06http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/218776ea-bf14-4cc5-82b7-18dd31bc5f06Skola17http://social.msdn.microsoft.com/Profile/en-US/?user=Skola17Recalculate AggregatesHi All,<br/><br/>I have a situation where I am suppose to calculate the Standard deviation on a fact table.<br/><br/>The question is :<br/><br/>How is it best to calculate this for any subsequent incremental loads?<br/>Does it mean that I have to recompute the standard deviation evert time after inserting the data in the fact?<br/><br/>Sridhar<hr class="sig">SridharTue, 03 Nov 2009 04:42:26 Z2009-11-04T16:18:24Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/492e70d8-345d-4ada-9fa7-9e267bdaa005http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/492e70d8-345d-4ada-9fa7-9e267bdaa005GITTAMhttp://social.msdn.microsoft.com/Profile/en-US/?user=GITTAMsql server2000 LAN connectivity problemhi<br />when I try to connect sql server2000 by a client on LAN I got an error&nbsp; "Access denied or sql server does not exist" how can I solve thisTue, 06 Oct 2009 13:44:32 Z2009-11-04T11:57:04Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/147c2fd7-66d5-429a-9cf8-3c22dd3160aahttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/147c2fd7-66d5-429a-9cf8-3c22dd3160aaMariano77http://social.msdn.microsoft.com/Profile/en-US/?user=Mariano77Newbie: I came up with a couple of Dim and Fact tables... what's next? stuck<p>All,<br /><br />I'm new at Data Warehousing and been reading quite a bit about it, since I figured it's the way to go for my current project. <br />My data deals with hospitals and patients, so I want to be able to create reports on patient visits, admissions, discharges, etc by region, hospital, year, quarter.<br /><br />I came up with a Dimension Table for Dates (where I have Year, Quarter, Month, Date, DayOfWeek, etc) and a second Dimension Table for Hospitals (where I have Region, State, City).<br /><br />My Fact tables deal with the actual Patient Visits -- I have a table for Admissions, one for Discharges. Each row in these tables will include a DateId and a HospitalId that point to the above mentioned dim tables.<br /><br />Now I want to work on reports for this data. My coworker will be using Reporting Services to write the reports and he wants me to write Stored Procedures that he'd run on the reports to get the data. I want to be able to report by Date (Year, Quarter, Month, Year to Date, Last Year, etc) and by Hospitals (in a region, city, state).<br /><br />This is where I'm stuck... I'm not sure how to build the stored procs based on what parameters, and I can't find an example on the net that would help me. Obviously the parameters are the Date Range and the Hospital / City / State but I'm not sure how to tie it all together.<br /><br />Any leads will be appreciated. <br />Thanks!</p>Mon, 12 Oct 2009 18:14:50 Z2009-11-02T15:07:58Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/886dbbc7-fa63-433c-b707-fb179dc2e656http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/886dbbc7-fa63-433c-b707-fb179dc2e656ozsqlhttp://social.msdn.microsoft.com/Profile/en-US/?user=ozsqlCreating Unique Key Identification<p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">Hi Guys,<br/><br/>I am working on a health service project were I need a data validation technic to identify patient and the <span style=""> </span>history of that patient. </span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">Scenario:</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt;text-align:justify"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">If a patient went to A hospital for heart treatment, hospital will give him a date for operation. During course of time if meet with accident and broke his leg he will be admitted to different hospital. Now issue is how I can validate data because as you can imagine there would possibility of same name, DOB, Add etc also keep in mind all this hospitals use different databases. I need to create a unique key to identify that patient and maintain the history of that patient.</span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt;text-align:justify"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">How to solve this issue? </span></p> <p class=MsoNormal style="margin:0cm 0cm 10pt;text-align:justify"><span style="font-size:8pt;color:black;line-height:115%;font-family:'Verdana','sans-serif'">On top of my head we got 430 separate databases and patient can move anywhere from Hospital A to B OR C and than A. </span></p> <p>Thanks and Regards,<br/><br/>D</p>Fri, 23 Oct 2009 03:06:55 Z2009-11-02T18:27:45Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/3927132c-2a44-4479-a240-4e26e8fe49c9http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/3927132c-2a44-4479-a240-4e26e8fe49c9Fred_1000http://social.msdn.microsoft.com/Profile/en-US/?user=Fred_1000Partition FunctionsI am creating scripts that will create partitioned tables.  I would like to include an IF NOT EXISTS wrapper around my code.<br/><br/>How can I determine if a partition function already exsists, for example:<br/><br/>     IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.ROUTINES WHERE ROUTINE_NAME = 'MyPartitionFnName'<br/>           CREATE PARTITION FUNCTION MyPartitionFnName (datetime)....<br/><br/>I would also like to do the same thing for the SCHEME:<br/><br/>     IF NOT EXISTS (SELECT * FROM sys.scheme WHERE schemeName = 'MySchemeName')<br/>           CREATE PARTITION SCHEME MySchemeName<br/><br/><br/>Can this be done?<br/><br/>Thanks in advance.<br/><br/><br/>Fri, 23 Oct 2009 19:25:59 Z2009-10-23T19:59:50Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/6270397a-6214-41a5-82e5-62a8c8302d68http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/6270397a-6214-41a5-82e5-62a8c8302d68guestMShttp://social.msdn.microsoft.com/Profile/en-US/?user=guestMSUsing Change Tracking For DatawarehousingHi all,<br /><br />We would like to use&nbsp;Change Tracking (Standard Edition available only !) to isolate records that have changed during day time&nbsp;to do nightly loads&nbsp;in our DWH (for example, we would like to&nbsp;get all customer changes done today (e.g. all&nbsp;insert/update/delete done on&nbsp;the customer table on&nbsp;the 1st of october 2009 from 8h00 AM&nbsp;till 18h00 PM).<br /><br />Since there is no time information recorded with Change Tracking, how can we filter changes done each day on a given table ? <br />Can someone provide a clear example how to recover those changes ?<br /><br />Can someone also explained&nbsp;how the columns SYS_CHANGE_VERSION and SYS_CHANGE_CREATION_VERSION&nbsp;are intended to work&nbsp;together ?<br />Indeed, I remarked some weird cases while testing Change Tracking with transaction:<br /><br />1) Change Tracking recorded <span style="text-decoration: underline;">only&nbsp;1 change</span> for an &nbsp;insert, update and then delete of a record done&nbsp;in the same&nbsp;transaction: DELETE was recorded, <strong>INSERT and UPDATE weren't.</strong><br />2) Change Tracking recorded <span style="text-decoration: underline;">only&nbsp;1 change</span> for an insert, update of&nbsp;a record done in the same transaction: INSERT was&nbsp;recorded, <strong>UPDATE wasn't</strong>.<br /><br />With case 1) we would&nbsp;end with an error during our DWH load because we will try to delete a nonexistent record (since Change Tracking did not kept the INSERT information, we don't know the record has been created before being deleted).<br /><br />Thanks.<br /><br /><br /><br /><br /><br /><br /><br /><br />&nbsp;<br /><br /><br /><br /><br /><br />Fri, 02 Oct 2009 13:10:49 Z2009-11-05T15:20:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/e05561f3-4d44-486a-bf7a-177be70c8c81http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/e05561f3-4d44-486a-bf7a-177be70c8c81imfdablerhttp://social.msdn.microsoft.com/Profile/en-US/?user=imfdablerTalend certification program<div>Hello, </div> <div><br/></div> <div>I have been using the Talend software for a few months now and am very happy. I have seen the page on the Talend certification and the exam on the website ( http://www.talend.com/partners/index.php ). </div> <div><br/></div> <div>I wonder what it takes to take the exam, if you need to know well Talend. Also is the exam available for everyone and is it free or paying? </div> <div><br/></div> <div>Maybe someone would have an idea? Thank you.</div>Thu, 22 Oct 2009 13:31:08 Z2009-10-23T13:10:57Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/0a42658d-8d32-461f-86a7-43f658388edfhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/0a42658d-8d32-461f-86a7-43f658388edfdb042188http://social.msdn.microsoft.com/Profile/en-US/?user=db042188one size fits all architecture for star's etl<p>is there a whitepaper somewhere that describes a flexible architecture for a star's etl?  I have many goals I'd<br/>like to accomplish with the architecture of my etl but dont necessarily see anybody discussing them on a macro level.<br/>Here are some of my goals:</p> <p>1) I may wish to update previously recorded facts with dimensions like &quot;close date&quot;. </p> <p>2) I may wish to delete instances of some dimensions that are no longer in use</p> <p>3) I may be stuck to MOLAP for a while, but dont want to introduce obstacles to ROLAP and HOLAP.</p> <p>4) Types I and II SCDs are something I want to account for</p> <p>5) Because various measure groups share conformed dimensions, I'd like some kind of precedence between dim<br/>   recording process(es) and all fact processing that depends on those conformed dims</p> <p>6) I'd like sufficient decoupling to target/run one object's ETL if necessary</p> <p>7) I'm sometimes forced to deal with &quot;deltas&quot; (change between yesterday and today) in the absence of transactions<br/>   that record changes in the OLTP, maybe that issue will dictate how I architect things</p> <p>8) Maybe I should consider generating all/some of the ETL automatically, perhaps based on metatdata about my realtionships</p> <p>9) Wherever Incremental Processing Options make sense, I want to use them, but maybe with an option to do full<br/>   now and then</p> <p>10) I want to append time dims periodically as I approach boundary conditions.  For instance, I presently limit<br/>    my time dim entries to no later than one year from today.  So I'd want to insert new rows there maybe once a<br/>    month.  I do this to limit the perfomance issues I believe are present in &quot;In Flight Transaction&quot; scenarios<br/>    when using MDX.  Unfortunately I use the max time dim for accounts whose close date is really null, so I'd<br/>    probably want to update &quot;open&quot; facts across the board with a new close date any time this boundary changes.</p> <p>11) Reusability (for instance between new fact realtionships and old fact relationship expectations/changes)</p> <p>12) Flexibility</p> <p>13) Server and DB flexibility</p> <p>14) maybe restartability  </p> <p>15) I think I'd like a layered/precedence approach that looks somethingh like this:</p> <p> a) somehow record anything of a Type II nature in a sub package, perhaps one subpackage per Type II dim.<br/>        b) record existing fact dim &quot;expectations&quot;, perhaps one sub package per measure group, keep a key to be<br/>           used for identifying &quot;change&quot; scenarios.  Remember close dates.<br/>        c) slide any &quot;Today&quot; tables to &quot;Yesterday&quot; for delta scenarios, maybe one sub package per scenario.<br/>        d) record new facts and their dim expectations with new pks that start after highest existing one, maybe<br/>           new sub package for every measure group.  Remember close dates.   <br/>        e) use all previous dim related data to record and process dim changes, but wait till all facts are done<br/>           running<br/>        f) resolve fks on pre recorded and new facts and process.  Dont use Identity on Fact pks as they've already <br/>           been assigned in what looks like it will be a staging table</p> <p>16) notifications, good and bad</p> <p>17) anything that might support rerunning X number of days of ETL to bring us forward from a known problem<br/>    point to current on one or more objects</p> <p><br/>Does anybody have ideas/strategies/experiences/articles they'd like to share?</p>Mon, 14 Sep 2009 13:41:09 Z2009-10-20T19:53:08Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/fa51d5f9-d825-48d7-8813-03f99a752f14http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/fa51d5f9-d825-48d7-8813-03f99a752f14Olivier _WYMANNhttp://social.msdn.microsoft.com/Profile/en-US/?user=Olivier%20_WYMANNNeed your advices for a SQL Server / SSIS/RS/AS 2005 migration to 2008 (installation methods)Hello<br/><br/>I have a big migration to do on a datawarehouse server, and your feedback is welcomed.<br/><br/>Here's the situation : I have a server (let's call it SVR1) hosting SQL Server 2005, and SSRS/IS/AS 2005. I need to upgrade everything to 2008.<br/><br/>on the current 2005 version are allready many reports, ssis packages, etc, and they need to stay available while we prepare the new 2008 reports/packages. That's why we plan to use a second temporary server (SVR2) to create the new 2008 environment, create the new SSIS packages, reports, etc, and once everything is ready, migrate everything.<br/><br/>The question is : what's the best to do : install a names instance of SQL Server 2008 on the SVR1 server, install SSIS/AS/RS 2008 on SVR2, pointing on the named instance on SVR1 ? or install the complet 2008 environment (including the SQL Server 2008 instance) on SVR2, and once everything is ready, migrate everything on SVR1 ?<br/><br/>Suggestions are welcomed.<br/><br/>Thank you<br/><br/>OlivierTue, 20 Oct 2009 16:28:11 Z2009-10-27T04:32:59Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/98294e52-9133-486a-8e37-723cfe628b30http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/98294e52-9133-486a-8e37-723cfe628b30Roshallhttp://social.msdn.microsoft.com/Profile/en-US/?user=RoshallMicrosoft Fast Track Program...Was curious if anyone used the Fast Track program to help establish/validate your DW program.  I've read some pretty useful information about it and was wondering if anyone had experience with the program.<br/><br/>Thanks<br/>RozSun, 18 Oct 2009 19:50:35 Z2009-10-18T19:50:35Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/70921317-d07d-490d-b12a-7d149f550194http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/70921317-d07d-490d-b12a-7d149f550194manjil44http://social.msdn.microsoft.com/Profile/en-US/?user=manjil44Difference in exits and inlistHi,<br/> <br/> Tell me the difference between using exists and using in list in queries. Which one will work faster?Sat, 17 Oct 2009 10:33:55 Z2009-10-27T04:32:31Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/5be5d688-a29a-4680-aebf-1db8824f9872http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/5be5d688-a29a-4680-aebf-1db8824f9872WHL999http://social.msdn.microsoft.com/Profile/en-US/?user=WHL999Should I rebuild this fact table every day?<p>We&nbsp;have a problem with one of our fact tables.&nbsp; One of the sources of data for this fact table&nbsp;allows retrospective data entry (e.g. this sale was completed 2 months ago) and modification of historical data (e.g. this code "ABC"&nbsp;last week was really an "XYZ").&nbsp; The biggest problem is that our source database doesn't have any auditing so potentially anything can change any time without us knowing.<br /><br />When we designed this fact table, we weren't aware&nbsp;users were making retrospective edits.&nbsp; We're simply just adding whatever activity has happened on the day to the fact table.&nbsp; It was a poor assumption on our part.&nbsp; As a result,&nbsp;we're missing a significant amount of fact data and some of it is incorrect.<br /><br />So the question is, should I just rebuild the whole table every night at the end of the ETL?&nbsp; Or should I put in some change detection logic?&nbsp; For reference, this fact table is just over 4 million records and should grow roughly 20-30k records each day.&nbsp; Is this a "fully rebuildable" size?<br /><br />Another thing is that there are other columns in this fact table that aren't subject to this problem.&nbsp; Should I just rebuild these as well or split it into seperate tables?<br /><br />Any opinions or guidance much appreciated.</p>Tue, 06 Oct 2009 09:40:53 Z2009-10-19T03:24:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/75e62b72-2927-435f-9f8b-539430574827http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/75e62b72-2927-435f-9f8b-539430574827MrTeaTime_http://social.msdn.microsoft.com/Profile/en-US/?user=MrTeaTime_ETL Metadata Warehouse DesignDesign Question:<br /> <br /> I am looking to design a warehouse that essentially captures the ETL metadata associated with a large scale conversion process. The purpose of this warehouse will be to provide an ongoing audit and reporting capability for ETL activity on the whole. By ETL activity I mean extract to cleansed processes including but not limited to crud activities as well as the application of complex business logic to various datapoints. On the whole I believe the most important points of interest are not so much the data within the tables but end to end record counts, and some data level aggregates like sum amounts for customer etc..<br /> <br /> I am struggling with conceptualizing the dimensions by which I would base this on. As a starting point I believe breaking down all processes that manipulate the data, mock time elements,and the discrete data points are a good start. Then looking at deltas in record counts as per these.<br /> <br /> Has anyone implemented something similar? I really haven't found much information out there regarding warehousing etl metadata and audit data. Any advice would be greatly appreciated<hr class="sig">“Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.” -Terry PratchettFri, 09 Oct 2009 17:07:54 Z2009-10-16T07:13:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/c2ff6764-456b-4c94-82ed-b7dfc0a0b05bhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/c2ff6764-456b-4c94-82ed-b7dfc0a0b05bGopalSharmahttp://social.msdn.microsoft.com/Profile/en-US/?user=GopalSharmaAdd Oracle 10g as Linked ServerHi,<br />I want to add an oracle server as linked server in SQL Server 2005.<br /><br />I have followed all the steps given in link : <a href="http://www.ideaexcursion.com/2009/01/05/connecting-to-oracle-from-sql-server/">http://www.ideaexcursion.com/2009/01/05/connecting-to-oracle-from-sql-server/</a><br /><br /><ol> <li> <p>Install <a title="Oracle Database Software Downloads" href="http://www.oracle.com/technology/software/products/database/index.html" target="_blank"><span style="color: #0099cc;">Oracle Database 10g Client Release 2</span></a></p> <ol> <li>Install using the InstantClient option </li> </ol></li> <li> <p>Install Oracle 10g Release 2 <acronym title="Oracle Data Access Components">ODAC</acronym> (<a title="Oracle Data Access Components (ODAC) for Windows 64-bit" href="http://www.oracle.com/technology/software/tech/windows/odpnet/64-bit/index.html" target="_blank"><span style="color: #0099cc;">64-bit</span></a>, <a title="Oracle Data Access Components (ODAC) for Windows 32-bit" href="http://www.oracle.com/technology/software/tech/windows/odpnet/index.html" target="_blank"><span style="color: #0099cc;">32-bit</span></a>)</p> <ol> <li>Select the Oracle Data Access Components option (not .NET!) </li> </ol></li> <li>Edit TNSNAMES.ora </li> <li>&lt;install directory&gt;Product10.2.0ClientnetworkADMINTNSNAMES.ora (i.e. C:OracleProduct10.2.0ClientnetworkADMINTNSNAMES.ora) </li> <li>There is a very specific format to the network configuration file. Here is an example to get you started (just copy &amp; paste multiple entries if necessary): <div class="wp_syntax" style="PADDING-BOTTOM: 0px"> <div class="code"> <pre class="none" style="FONT-FAMILY: monospace">DMDEV = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = SERVERNAME)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = FRIENDLYNAME) ) )</pre> </div> </div> <p>There are a couple of things you need to change:</p> <ul> <li><strong>HOST = SERVERNAME</strong>. The value SERVERNAME should be changed to reflect the actual address or hostname of the target system. </li> <li><strong>SERVICE_NAME = FRIENDLYNAME</strong>. FRIENDLYNAME is the name by which you refer to this actual connection. </li> </ul> </li> <li>REBOOT! </li> <li>Configure provider in SQL Server </li> <div class="wp-caption alignnone" style="width: 160px;"><ol> <li><a href="http://www.ideaexcursion.com/wp2/wp-content/uploads/2008/12/mssqloracleproviders.png"><img class="size-thumbnail wp-image-201" title="Also used as alternate text for the image" src="http://www.ideaexcursion.com/wp2/wp-content/uploads/2008/12/mssqloracleproviders-150x150.png" alt="OraOLEDB.Oracle Provider Menu Item" width="150" height="150" /></a> </li> </ol> <p class="wp-caption-text">OraOLEDB.Oracle Provider Menu Item</p> </div> <p>&nbsp;</p> <li>Databases&rarr;DBName&rarr;Server Objects&rarr;Linked Servers&rarr;Providers&rarr;OraOLEDB.Oracle&rarr;Properties&rarr;Enable &ldquo;Allow inprocess&rdquo; <p><a href="http://www.ideaexcursion.com/wp2/wp-content/uploads/2008/12/mssqloracleinprocess.png"><img class="size-thumbnail wp-image-199" title="Provider Options" src="http://www.ideaexcursion.com/wp2/wp-content/uploads/2008/12/mssqloracleinprocess-150x150.png" alt="Enable &quot;Allow inprocess&quot;" width="150" height="150" /></a></p> </li> <li>Create a linked server to the Oracle Database </li> <li>General <p>&nbsp;</p> <ol> <li><strong>Linked Server</strong>: A name of your choosing which you will use when querying using four-part naming conventions. </li> <li><strong>Provider</strong>: Oracle Provider for OLE DB </li> <li><strong>Product Name</strong>: &ldquo;Oracle&rdquo; is fine here </li> <li><strong>Data Source</strong>: This should match the HOST you defined in TNSNAMES.ora <p>&nbsp;</p> <div class="wp-caption alignnone" style="width: 160px;"><a href="http://www.ideaexcursion.com/wp2/wp-content/uploads/2008/12/mssqloraclelinkedserver.png"><img class="size-thumbnail wp-image-200" title="Linked Server Configuration" src="http://www.ideaexcursion.com/wp2/wp-content/uploads/2008/12/mssqloraclelinkedserver-150x150.png" alt="Create a Linked Server" width="150" height="150" /></a> <p class="wp-caption-text">Create a Linked Server</p> </div> </li> </ol></li> <li>Security </li> <li><ol> <li>Select <strong>Be made using this security context</strong> and supply the remote login and password </li> </ol></li> </ol> <p><strong>BUT I am still not able to query the tables of Oracle database.<br /><br /></strong>This is the error I am getting.<br /><br /><strong>Cannot create a an instance of OLEdb provider "OraOLEDB.oracle" for linked server "&lt;&lt;link server name&gt;&gt;"<br /></strong><br />Please help.......<br /><br /></p>Thu, 08 Oct 2009 07:19:35 Z2009-10-19T03:51:38Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/f2811337-db84-48d1-9a35-184ee69b2871http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/f2811337-db84-48d1-9a35-184ee69b2871Katie Maleckahttp://social.msdn.microsoft.com/Profile/en-US/?user=Katie%20MaleckaData Warehouse Design for Case/Nested Tables in Market Basket AnalysisI'm doing a Market Basket Analysis project which involves data warehousing as well as data mining. To put it briefly, what I want to do is: -load data fetched from a transactional system into a data warehouse; -apply the association rules on the prepared data warehouse as a source.<br /> <br /> The problem I have is reconciling the data warehouse fact/dimension table design with the case/nested approach used in data mining. I imagine that the nested table in data mining should contain all items bought in an individual transaction. I have read that usually the nested table corresponds with the fact table in the data warehouse. However, I cannot find a way to design the fact table in the DW to serve this purpose. I can have a variable amount of products in the basket, so I find it impossible to design the fact table without adding another table: items_in_transaction, as depicted here: http://img39.imageshack.us/img39/4426/itemskl.png -- but I haven't seen anything like that used with the star schema commonly employed for data warehouses, and I don't know how to use this design with the case/nested tables approach (if I select &quot;items_in_transaction&quot; as the nested table, I can only use &quot;Transaction&quot; as the case table, and thus, &quot;Users&quot; are inaccessible for the analysis). Does anyone have an idea for a good DW design taking multiple items in a basket into account, that is suited for the use with case/nested tables?<br /> <br /> Thanks in advance for your help.<br /> KatieSun, 11 Oct 2009 22:03:18 Z2009-10-13T02:53:00Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/86a78ad3-2d50-4408-bec9-464b31c382eehttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/86a78ad3-2d50-4408-bec9-464b31c382eeALI AL SALAMI AL AHWAZIhttp://social.msdn.microsoft.com/Profile/en-US/?user=ALI%20AL%20SALAMI%20AL%20AHWAZIHow use Transparent data encryption (TDE) in Sql Server 2008 Express EditionHI to All<br/>I Have Application that use sql server 2008 express edition and i want to use TDE for Encrypt my Data and I know that this ficture exist in Enterprise Edition<br/>//------<br/>my purpose protect my DataBase to seeing.<br/>i dont want to see my data and tables <br/>i want to sales my application and i dont want any one to see my database<br/>ThanksThu, 10 Sep 2009 10:15:25 Z2009-10-07T13:09:32Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/1df289fb-2e79-46b7-ba48-eed64731a523http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/1df289fb-2e79-46b7-ba48-eed64731a523Prasanna Prabhuhttp://social.msdn.microsoft.com/Profile/en-US/?user=Prasanna%20PrabhuQuestion / Clarification on - SQL Server 2008 Management Data Warehouse and Data Collector<div> <div class="messageHeaderDiv colorWhite fontT2 fontMedGray"> <div class="posRel">I read this article at <a rel="nofollow" href="http://www.informit.com/guides/content.aspx?g=sqlserver&amp;seqNum=202" target="_blank"><span class="yshortcuts">http://www.informit.com/guides/content.aspx?g=sqlserver&amp;seqNum=202</span></a></div> </div> </div> <div> <div style="font-family: arial, helvetica, sans-serif; color: #0080ff; font-size: 10pt;"> <div>Few Questions:</div> <div>&nbsp;</div> <div>1. My&nbsp;understanding is "Data Collector" Tool / Utility / Service resides on the machine whose data we need to collect and not on "Management Datawarehouse Server". Right?&nbsp;If that's the case do&nbsp;you think <span style="text-decoration: underline;">upgrade tool</span> will get challenging over a period of time, within an enterprise?</div> <div>&nbsp;</div> <div>2.&nbsp;I assume the information that needs to be captured, can be defined using an XML file.</div> <div>&nbsp;&nbsp;&nbsp; Can you please&nbsp;share a sample XML file on your page or atleast over at <a rel="nofollow" href="http://sqlcms.codeplex.com/" target="_blank"><span class="yshortcuts">http://sqlcms.codeplex.com/</span></a></div> <div>&nbsp;</div> <div>3.&nbsp;Once the XML file is completely defined with an specific set of information to be captured, can&nbsp;the XML file be copied to the rest of the machine so that we have consistency in information that we are capturing across all machines.</div> <div>&nbsp;</div> <div>4. The path ("C:\temp") in your sample image, can this path be defined as network path?</div> </div> </div>Sun, 04 Oct 2009 22:34:27 Z2009-10-04T22:34:27Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/5ab83d75-82ff-4fca-84a9-ab0a033bd50dhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/5ab83d75-82ff-4fca-84a9-ab0a033bd50derencolakhttp://social.msdn.microsoft.com/Profile/en-US/?user=erencolakUniqueness with summary fact table with too many dimensionsHi,<br/> We have summary fact tables that have &gt; 15 dimensions. We need to put unique indexes but SQL server only supports indexes upto 14 dimensions. <br/> Is there a way around this problem?<br/> Thanks,Mon, 28 Sep 2009 16:25:51 Z2009-10-13T06:48:53Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/cab04b6b-b326-4a79-8ff8-ccc55285e25fhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/cab04b6b-b326-4a79-8ff8-ccc55285e25felmidwillhttp://social.msdn.microsoft.com/Profile/en-US/?user=elmidwillInserting GUID and time range lookup<p>I have two questions, the first one is how can I insert a GUID into every row that is coming into the data path.  Second question, I have an event that shoots numbers to me every millisecond i.e. 9/26/2009 5:54:12.240 , and I have set up a DB that has time listd in 10 minute intervals i.e. 9/26/2009 5:50:00.000, 9/26/2009 6:00:00.000 PM...  I want to be able to do a range lookup on this time.  How would I go about doing that?</p>Wed, 30 Sep 2009 19:47:36 Z2009-09-30T20:27:03Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ac6207d0-5247-4e04-b6d1-e563f49ac296http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/ac6207d0-5247-4e04-b6d1-e563f49ac296learningdbahttp://social.msdn.microsoft.com/Profile/en-US/?user=learningdbalocal and global indexes for partitioned tablesI think I understand the concept of align and unaligned indexes. But what about global and local. In partitioned tables, can I have a global index (that could help me with OLTP like workloads and unque key checking) as well as local indexes, that could help me with roll-in or roll-out scenarios. Perhaps not on the same table at the same time -- ?Sun, 20 Sep 2009 12:58:43 Z2009-09-26T15:10:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/6e54adc0-1aa8-4c57-8374-0bf7e6facd9bhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/6e54adc0-1aa8-4c57-8374-0bf7e6facd9bchempzhttp://social.msdn.microsoft.com/Profile/en-US/?user=chempzdesigning a data warehouse<p>hi,</p> <p>im quite in dilemma how i would design a data warehouse.</p> <p>1. our business deals with service repairs. usually in the oltp system, the header and line are from separate tables. can i still do the same for the fact tables?</p> <p>2. another thing is, the user requires highly detailed level of the reports. what i intend to do is, have a fact table that keeps the summary level. and if they require the detailed level, they could just drillthrough to an ODS table. Since fact table contains foreign keys, so does this mean my ODS should also contain this keys? Is ODS supposedly a denormalized table or is much like a fact table with the foreign keys in it?? Because i am confused how i would be able to link ODS and fact table</p> <p>3. user wants to see repairs that are not yet finished. meaning, their field values might still change. if i pump this inside the summarized data warehouse and the values in the OLTP will change tomorrow, how will i be able to handle this change?</p> <p>thanks a lot</p> <p>chempz</p>Wed, 16 Sep 2009 15:04:41 Z2009-09-27T09:49:28Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/17a4dbfc-42b4-4f2c-8212-4621204db4e0http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/17a4dbfc-42b4-4f2c-8212-4621204db4e0TiffanyJanetBlackhttp://social.msdn.microsoft.com/Profile/en-US/?user=TiffanyJanetBlackBlank value allowed for primary and foreign key?I cant seem to find anything definitive regarding this situation I just uncovered:<br/><br/>Our data warehouse is being built using SSIS 2008 target db is SQL Server 2008.<br/><br/>On our source AS400 system a value of blank ('') has meaning and value.<br/>So now I am building the data warehouse and I come across a table with a record that has '' as the primary key column value.  It is not NULL, it is ''.<br/>I need to know for sure if this is allowed as a primary key value and also can I use it as a foreign key reference?  Can I join on ''?<br/>If the anser is no, which I hope it is, then I will need to request from my AS400 developers to fix all that code.<br/>No one need tell me that '' is horrible practice, believe me I blew a gasket when I saw this and have advised our AS400 lead to add this to the standards documentation.<br/>Thanks!Thu, 24 Sep 2009 15:41:34 Z2009-10-03T07:39:21Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/0433fe5d-9a37-4242-bfea-1ebc3e1720f0http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/0433fe5d-9a37-4242-bfea-1ebc3e1720f0greatbear302http://social.msdn.microsoft.com/Profile/en-US/?user=greatbear302How to insert updated Oracle table into SQL Server 2008<p>im not a DBA, but i have a related problem. we have an oracle warehouse hosted outside our datacenter. i need to come up with a solution to bring over tables from the warehouse every night, into a SQL Server 2008 server on our datacenter. i do not know how to figure out if the row im going to insert in SQLSVR from oracle really needs to be inserted. how do i insert only the changed rows from oracle into sql server?<br/><br/>the following post provied some insight, but can anyone please elaborate on it.<br/><br/><a href="http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/ed2f4781-4d5d-4369-bf3e-1fa018093e92/">http://social.msdn.microsoft.com/Forums/en-US/sqlintegrationservices/thread/ed2f4781-4d5d-4369-bf3e-1fa018093e92/</a></p>Wed, 23 Sep 2009 20:32:25 Z2009-09-24T16:19:41Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/547764d2-31ff-4d01-8bce-9239e83c37fahttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/547764d2-31ff-4d01-8bce-9239e83c37faHMCSharonhttp://social.msdn.microsoft.com/Profile/en-US/?user=HMCSharonCDC in RC0 - cannot enable DB<p>Restored a SQL2005 DB (Standards) to SQL2008.  When try to enable CDC (<font color="#0000ff" size=2>USE</font><font size=2> Standards</font><font color="#808080" size=2>; </font><font color="#0000ff" size=2>GO EXEC</font><font size=2> </font><font color="#008000" size=2>sys</font><font color="#808080" size=2>.</font><font color="#800000" size=2>sp_cdc_enable_db; </font><font color="#0000ff" size=2>GO</font>), receive following message:</p> <p align=left> </p> <p align=left>Msg 22830, Level 16, State 1, Procedure sp_cdc_enable_db_internal, Line 186<br>Could not update the metadata that indicates database Standards is enabled for Change Data Capture. The failure occurred when executing the command 'SetCDCTracked(Value = 1)'. The error returned was 15517: 'Cannot execute as the database principal because the principal &quot;dbo&quot; does not exist, this type of principal cannot be impersonated, or you do not have permission.'. Use the action and error to determine the cause of the failure and resubmit the request.<br>Msg 266, Level 16, State 2, Procedure sp_cdc_enable_db_internal, Line 0<br>Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.<br>Msg 266, Level 16, State 2, Procedure sp_cdc_enable_db, Line 0<br>Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 0, current count = 1.<br>Msg 3998, Level 16, State 1, Line 1<br>Uncommittable transaction is detected at the end of the batch. The transaction is rolled back.</p> <p align=left> </p> <p align=left>I am sysadmin.  I have tried running under SQL service account with is also sysadmin.  Same result.</p> <p align=left>When i build a 'test' database from scatch in SQL2008, i can enable CDC.  Had similar inconsistant experience using CPT5 and trying to enable.  But that is not real world.  I have to bring many 2005 DBs up to 2008.  fyi - we are using LiteSpeed 4.8x for restore.</p> <p align=left><font face=Arial size=2></font> </p>Fri, 20 Jun 2008 16:11:18 Z2009-09-21T08:40:30Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/05ebfe36-1986-424a-9d29-9b5280abc5efhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/05ebfe36-1986-424a-9d29-9b5280abc5efMarinhttp://social.msdn.microsoft.com/Profile/en-US/?user=MarinMerging range in Partition Function is taking hours to completeHi there,<br/> <br/> We have several large partitioned tables and I am trying to implement the sliding window, based on TechNet article. On the test table that contains 10 records per day all works flewlesly. When I try to do the same thing on the real table (120GB per day) it chokes on merging range. <br/> <br/> The whole process should be fast so here are steps that I am doing, please let me know did I missed something:<br/> 1. Create temp partition function with two oldest days<br/> 2. Create temp partition schema based on temp partition function<br/> 3. Create temp table and clustered index on temp partitoin schema<br/> 4. Add next filespace to be &quot;next used&quot; by real partition schema<br/> 5. Split range in partition function so it uses new date<br/> 6. Switch 1st partition to move oldest day data from the real to temp table<br/> 7. Merge 1st and 2nd partition<br/> <br/> Steps 1 - 6 are very fast but the last one (7) takes hours to run!<br/> <br/> Thanks,<br/> MarinTue, 15 Sep 2009 19:25:46 Z2009-09-23T11:04:10Zhttp://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/b2e0cfc8-fdb9-42db-811b-75cb0798e390http://social.msdn.microsoft.com/Forums/en-US/sqldatawarehousing/thread/b2e0cfc8-fdb9-42db-811b-75cb0798e390gsc1ugshttp://social.msdn.microsoft.com/Profile/en-US/?user=gsc1ugsneed to bind to querysI'm trying to bind to querys and would like to know most efficient way to do it<br/><br/>I have these that both need binding as one<br/><br/>SELECT * FROM categories ORDER BY categoryDesc<br/><br/>and <br/><br/>select count(*) as amount from products where idCategory = &quot;&amp;idCat&amp;&quot; and listhidden = 0&quot;<br/><br/>idCat is in a loop from the first query, I dont want to recordsets just the one<br/><br/>Many thxsWed, 16 Sep 2009 18:04:17 Z2009-09-27T10:28:12Z