Adding default constraint not tracked by CDC
It appears CDC doesn't track data changes that results from adding a column with a default value. E.g. the below doesn't result in any rows in the capture instance. ALTER TABLE tableA ADD column1 INT...
View ArticleBackup And Restore
When moving a SQL db to a test environment from a dev environment as well as a new production for first install of the db is it best to install it using scripts or to do a full backup of all the...
View ArticleCDC Returns Different Results on the Same DML Statement
Hi all,I use an UPDATE statement on a table that is enabled for CDC. When I query the related function to retrieve list of changes, I see that my updates are interpreted as DELETE and INSERT. I mean...
View ArticleRefreshing Database
How do we refresh databases? can u please write down the steps to do that and under what circumstances we refresh databases and why should we refresh them? how often de we need to do that? thanks alot...
View ArticleSearch table name in Server
Hi All,I am new to SQL Server.I have a table name but I don't know where this particular table exists.Could you please help me by giving the query to search entire server.Note:- As I have to search 4...
View ArticleData Warehouse Dimension Design for Factless Fact Table
I have a question regarding a new Cube i am starting. The cube is related to a risk management process. the fact table wont hold any facts, just the list of Risks present. I have a question regarding...
View Articlelooking for set based analysis tools
Hi,I'm looking for tools specialized in SET analysis. or analysis of population, like the Set Analyzer tool from BusinessObjects.I'm looking for a good end user tool.thanks.
View ArticleRecover CDC tables from transaction logs
I need to restore CDC tables from transaction logs? As far as I understand - CDC reads these logs, and catches specially marked records. However, when this is done, CDC isn’t able to process those...
View ArticleSQL 2008 loading-importing data with different collations?
Hello are there any things to be aware and/or consider of when importing/loading data with different destination table-column collations? Thanks in advance.
View ArticleWhat isolation level would you use for a OLAP database ?
Hi,We have an datawarehouse database which is used for a SSAS cube. now there are a few users whou can read from the database. One user made a report query which took 2 hours to run.Now he went home,...
View ArticlePartition Management tool for remote databases?
Hello, I am using the partition management tool from codeplex. I posted this blog question there too. We want to use this tool to allow for dynamic partition switching out. It simplifies the...
View ArticleWhy some many different types of dimensions?
How many of the following are useful? And supported by 2012.?Regular dimension Standard star dimension.Time Dimension A special case of the standard star dimension.Parent-child dimension Used to model...
View Article"Request to run job dbxxxxx refused" error in merge replication
hi all, I'm doing merge replication whole of my database but when I create the subscription I encounter this error: **SQLServerAgent Error: Request to run job DBXX-XX--bazresiostani2-2 (from User sa)...
View Articlehow to create new table from existing table with same structure(including...
Hi, Can any one assist me to create a new table with new name of the existing table with same structure including indexes, keys etc., in SQL Server 2008? I tried the following...
View ArticleXCOPY command RETRY
Hi All,I have the below command in Stored proc to copy files from Server workdirectory to Netwrok path. But unfortunately it fails randomly for few files. For Eg: if the work directory has 10 files, 5...
View ArticleDoes columnstore index use the Buffer Pool?
Hi, I am currently running TPC-H benchmark from Benchmark factory and have implemented the columnstore index on the largest table (Lineitem). My servers have 128GB RAM , 4 socket and 8 cores /socket. I...
View ArticleDifference between Primary key with clustered index and primary key with...
Hi, I have created two tables. table one has the following fields, Id -> unique clustered index. table two has the following fields, Tid...
View ArticleResource that explains the design of AdventureWorksDW schema data warehouse
Hi,Lots of the examples from SQL Server resources use the AdventureWorksDW data warehouse. Unfortunately none starts to explain what the schema entails and how it was derived amd the relationships.Does...
View ArticleHow foreign key references two more tables?
Hi I have created 3 tables with primary keys.create table dbo.test_index(id int identity(1,1) not null , name varchar(255) Constraint Pk_Ind_Id primary key(id) ) create table dbo.Test_Const (id...
View ArticleChange tracking on multiple tables to one table sync
Hi All,If I have two tables in souce DB syncing to one table in target DB, how do I use SQL 2008 change tracking feature to track it?The following is an example that we use for one table to one table...
View Article