Partition table with non-clustered index
Hi,I am in sqlserver 2005 developer edition. I have a table awrard_transaction which has refno column as primary key and has a primary key (unique clustered index on it), index name is...
View ArticleHow to find current statement start time.
If a batch which consists of multiple statements is being executed I can find out the start time for the batch from exec_requests (SELECT start_time FROM sys.dm_exec_requests WHERE session_id = @SPID)...
View ArticleAnything to watch out for when enabling compression on TFS SQL DB?
In addition to possible test data and log file cleanup, I would like to consider compressing our TFS database, which is running on SQL 2008 Enterprise Edition (64-bit). The database has experience...
View ArticleColumnstore index switching to row mode with inner join
Hi all,Considering the following "example" query with a columnstore index:SELECT ClientId, SUM(OrderAmount) FROM Order GROUP BY ClientIdExecution plan shows a nice batch execution mode. When I do...
View ArticleLinked Server query to Sybase ASE very slow
On my MSSQL 2008R2 64bit server, I setup a linked server to Sybase by using Sybase ASE OLEDB driver.When I tried to run a SELECT/UPDATE/DELETE linked server query which should be covered by the table's...
View ArticleHow much memory SQL Server needed ?
Hi,How would i calculate sql server memory usage ?.-- Bhavesh Thakkar Sr.Database AdministratorMy BlogLinked In Profile
View ArticleHow to start clustering?
Hi all,Do we need to enable this feature in widows to install failover clustering?Kindly any one provide a proper guide to install SQL SERVER FAILURE CLUSTERING FROM SCRATCH (With Windows)?
View ArticlePowershell to import csv file
Hello all,Running sql 2008 sp1New to PowerShell. Can someone please check the syntax and tell me if something doesn't look right.Trying to load a csv file into a tableThe csv file is comma delimited...
View ArticleFind the user name who is restoring or backup the Database?
How can we find the which user name is restoring/bakcup the datbase?--Ron.
View ArticleSimple question on moving SQL2005 master database
Hi,I need to move the master database on an SQL2005 server from one location to another. I have read numerous articles/questions on this and...
View ArticleQuestion on database replication
SQL Version: sql server 2008 r2 SE OS: windows server 2008 R2 SEWe are implementing a new architecture for one our modules. There are 100 tables in the database and out of which 45 tables are using...
View Articlesp_send_dbmail won't take @query SQL 2005 64bit
I am trying to send query results via email. The command works fine without the @query parameter but gets the following error with it. No query works, I tried several as well as a select, all result in...
View ArticleWhat is the Impact of these type memory settings
I m seeing in of our server, The "Min server memory"has been setter to 6 GB, Max Memory 9 GB and the memory utilizing is 95%. The toatal server memory is 12GB.Is any thind bad by setting Min Server...
View ArticleIn Access 2007, Converting Access accdb to a database of SQL Server 2012...
Hi all,My Computer Team just installed a brand new "Microsoft SQL Server 2012 Express"/Microsoft SQL 2012 Management Studio (SSMS) in my "Windows 7" PC that is part of our "Windows" Computer System....
View ArticleHow to check the size of SQL Error Log
The task is to check if the SQL error log and SQL agent error log size reach x MB, then cycle the logs. This is done programmatically and automatically, not using SSMS or other manual methods.I know...
View Article"EXEC sp_configure 'fill factor', 100" Does not take affect
The current fillfactor of the server is set to 95, I have been trying to change it back to default 100 but the sp_configure commands is not taken into affect. Below is the script I run and the result...
View Articlecombining DBs from multiple SQL servers
Hello,I need a suggestion for optimizing SQL infrastructure.Current situation:about 20 Applicaton servers with local SQL servers:SQL 2005 on Server 2003SQL 2008 on Server 2008Different level of SPs....
View ArticleTransactional Replication Issue
Hi , We are setting up a new Sql Server for our testing environment and migrated the data from Old Server to the New one by Attaching the .Mdf Files.The Old server was already having replication...
View ArticleAttach Database in SQL Server 2008 is not working...........!!!!!
TITLE: Microsoft SQL Server Management Studio ------------------------------ Cannot show requested dialog. ------------------------------ ADDITIONAL INFORMATION: Parameter name: nColIndex Actual value...
View ArticleSQL Server Monitoring Script
Hi,I am looking for daily database server monitoring scripts. I want to run script from one server and generate Excel sheet that contains data for all other database servers:1. Disk space used/free2....
View Article