CDC capture instances
I am new to CDC and am running into an issue. I am playing around with capture instances where I have specified the columns I am tracking. I create a capture instance for a few columns and make some...
View ArticleSetting up linked Server in SQL 2008 R2
I'm trying to setup a linked server connection from SQL 2008 R2 to a SQL 2000 machine. Here's my linked server settings: EXEC master.dbo.sp_addlinkedserver @server = N'SOMESERVER.COM',...
View ArticlePlan Guide Template Forced Parameterization Not Working (SIMPLE QUERY)
Hi, I need assistance with getting a forced parameterization query plan to work. The database has 'optimize for ad hoc workloads' disabled. The database is also set to a compatibility mode of 100. You...
View Articleembedded database in .NET program
Hello, I'm pretty much new to what I'm going to do. And I've got only a few days. I need to develop a C#.NET program that will invoke a stored procedure on SQL Server 2008/2012. Then I will need to...
View ArticlePerformance Issues
Hi Gurus, I just got a new job and we have a Data Warehouse and a bunch of SSIS packages/stored procedures that build the Data Warehouse overnight. Every other day, the jobs fail complaining about...
View ArticleRebuild Index ONLINE = ON vs DROP/Create index
I came across with the following scenario: The system started to perform very poorly. I checked sys.dm_exec_requests and there were several UPDATE calls waiting on the resource KEY XX:YYYYYYYYYYYYY....
View Articleneed space every 3 digits from last
Hi all, i have a column CITY, in that i have data like 'BANGALORE' but i need 'BAN GAL ORE' i mean every 3 digits need a space from last(need to start from right) how can i get like this plz help me...
View ArticleSQL Job ExecCMD spans multiple lines
We currently have following code run as a T-SQL step in a SQL jon UPDATE Table1 SET Col1 = <somevalue> SET Col2 = <somevalue> SET Col3 = <somevalue> WHERE Col4 = <somevalue> We...
View ArticleDatabases are not getting displayed in SSMS
Hi, im using sql server 2012 and im stuck with a strange problem. i tried to restore a database snapshot to a database. usually it doesnt take much time to restore, but now it took 5 mins and still...
View ArticleDBCC Checkdb running for ~4days
Hi, DBCC Checkdb was taking 2 days until last week and now it is running for almost 4 days and showing that it only completed ~38% as per following data from sys.dm_exec_requests and most of the waits...
View ArticleQuerying LDAP via Linked Server in SQL Server
Hi all I need to query a WebLogic Embedded LDAP version 10.3 (11g) from SQL Server 2008 and I have found several posts online that describes how to query LDAP - trouble is that I can't make it work. My...
View ArticleAdd Identity Column to an Existing Table - SQL server 2008
I have a table T_ACTIVITY_ERRORS which has fields ACTIVITY_NUMBER,ERROR_ID, ERROR_COMMENTS etc and the number of records in the table are close to 20,000. I want to add a new column ACTIVITY_ERROR_ID (...
View ArticleSQL 2008 connectivity error
Hello, There are intermittent connection failure errors in one of our production SQL 2008 database server. Our database server is SQL 2008 SP2 on windows 2008 R2. The application is a resource...
View ArticleDACPAC powershell deployment issue
Hi, I am using SQLServer 2008 R2 with SP1 and getting an error while deploying a DACPAC by using powershell script. The DACPAC has been generated by using MS VisualStudio 2010 Version 10.0.402191...
View ArticleUtility Control Point
I am trying to explore the R2 feature Utility Control point and i figured that it creates a lot of SQL Server jobs. Is there are good white paper or some such that talks what role or task each of these...
View ArticleCDC and sys.dm_db_task_space_usage.internal_object_alloc_page_count
Gurus - I have CDC setup (2008 R2) and the job is set to run continuous. The job calls the cdc scan procedure with default parameters maxtran = 500 maxscans = 10 continuous = 5 pollinginterval = 5...
View ArticleSQL Agent Job is failing due to job has been suspended
Hi All, I am working on Migration Project, so after installed sql server i restored msdb database and edited maintatince plans with new connection string and when i am trying to run any job i am...
View ArticleHow to fire trigger-like code when a login becomes a user of a database
Here's the scenario we want to achieve - 1) Login authenticates to SQL instance 2) Login becomes a user in the XYZ database 3) Some sort of code fires when a login becomes a user in the XYZ database -...
View ArticleDATABASE
Hello Please I need help with question> Does database has versions? If yes please what are they? My teacher asked the class to go research for database versions... and we have submit it on...
View Article