How to defrag tables by filegroup
I want to be able to run the defrag indexes on tables by filegroup one at a time.Example: Defrag indexes which are on XXX_2012 filegroup only.Scenario:Database size: 12 TB Archive historical tables :...
View ArticleTrying to convert varchar to datetime
I am trying to convert 20114 which is stored as varchar to datetime but I am getting the following errorSyntax error during explicit conversion of VARCHAR value '20114' to a DATETIME field.Can some one...
View ArticleSQL Agent jobs status while running
Dear all,I have around 80 SQL agent jobs.and these jobs will run in the duration of 3 hours. i can not go to agent activity monitor and check the job status everytime as i have other work also.I want a...
View ArticleError while running dtsx package on 2008 R2
I am getting the error below while executing the package,Error: System. Runtime InteropServices.COException [0x80040427]: Execution was cancelled by user. at DTS.PackageClass.Execute{} at MicrosoftHelp...
View ArticleHelp with sql statement
I am new to vb and sql . please bear with me I have a database name database 1. I have column name "column A" and “column B" in all tables. I want to retrieve tables name and sum of (column A – column...
View ArticleExecution Plan Drilldown Issue
I am trying to list the execution plan in xml (SET SHOWPLAN ON) of a given sp in a query that returns other things as well. To do that I have been trying to use sp_helptext to return the contents of...
View ArticleClustered indexes
[i]Clustered indexes also have some disadvantages compared to heaps. When you insert a new row into a full page, SQL Server has to split the page into two pages and move half of the rows to the second...
View Articlesql server 2012
hi folks,this is Imran, and kind of new bee to sql server 2012, I wanted to know what are the pre-requisite for changing domain name and ip address, like my database server will get new domain and ip...
View ArticleQuery error
Hi i am getting the below error when i run this query.Msg 241, Level 16, State 1, Line 2Conversion failed when converting datetime from character string.Declare @EndDate Datetimeselect @EndDate =...
View ArticleGetting Error while executing a package
Error is as below,Progress: Execute DTS 2000 Package Task initiated - 0 percent completeError: System.Runtime.InteropService.COMException {0x80040427}SQL Platform I have is SQL 2008 R2,Help is...
View ArticlePerfmon counters rebuild
HiI have installed sql server 2014 trail pack in windows 2008 special pack1.Its working fine.but perfmon counters are not available.so how to rebuild perfmon counters for sql server.with...
View ArticleSQL express version
Hi Guys,I know I might be in the wrong topic group but I am new here and don't know how to use it.I am currently doing sql at UNISA and I have an sql assignment question that I don't know how to...
View ArticleI can not connect to a data base in a linked server
Hi i have two server on the main server and on the main server i have 2 databases.I create a link in another server to the main server and the connections is ok.but this connection works well in...
View ArticleSql Server Authentication
Please help me, what are the system procedures and system functions that are used for validating whether a user is a valid user or not when we click on "connect" button for sql server.
View ArticleLinked Server Distributed transaction Error
Hi,I am trying to execute procedure through linked server ,but after executing the same it is giving me following error.OLE DB provider "SQLNCLI" for linked server "XYZ"returned message "No transaction...
View ArticleReduce the size of database
hello The Size of my database has been increased to 10-20 GB, although the RAM of my server is quite good, still it takes lot of time to open reports ....is there is any way to reduce the size of...
View ArticlePlace system and data files on the salme disk
Hi,Our DBA is currently installing a SQL cluster attached to a SAN. In order to optimize disk space usage, he informed us that he will be placing the database data files on the same disk where system...
View ArticleTempdb data file fills up very often
Tempdb fills up very often.tempdb configuration is name fileid filename filegroup size maxsize growth usagetempdev 1 N:\Data\tempdb.mdf PRIMARY 29428480 KB Unlimited 10% data onlytemplog 2...
View ArticleHigh Memory consuming by Database
Hello Everyone,I have a database which size is 250 GB and it contains the information about 70 Lak users with photograph.but as per our reservation the database consuming 64 GB of memory of database...
View ArticleUpgrade to SQL Server 2008 R2 SP2 from SQL Server 2005 SP3
I noticed that SQL Server 2005 SP3 is not in the in the supported version to be upgraded to SQL Server 2008 R2 as shown in the link below. Please let me know if there any issues with in place...
View Article