ODBC issue
I have an Access FE running both 2007 and 2010 connecting to SQL Server 2008R2. This system has been up and running for many months. There are DSN-less attached tables. I've always used the following...
View ArticlePartition switches are started to take a long time (over a minute for a...
We are using sql 2008 sp2 enterprise on a 64 bit 48 core (Six-Core AMD Opteron(tm) Processor 8439 SE) System Manufacturer: 'HP', System Model: 'ProLiant DL785 G6' with 256GB ram. There is no other...
View Article"Shrink Database" Maintenance Plan Doesn't Shrink DB
Over time, some clients ASYNC tables in their MSCRM (Microsoft Dynamics CRM) database grow very large. We perform the steps in KB968520 to cleanup the table. Afterwards, a large amount of free space is...
View ArticleRebuild Index Task - Specific Objects vs. All Objects - Different Indexes chosen
Using SQL 2008 (10.22.5500) I have an SSIS package that includes Rebuild Index Task for my database. when I sellect "Specific Objects", I find included the clustered index PK_MyTable as part of the...
View ArticleSQL Express database file auto-creation error but web-config changed to Azure...
I have an app that is based on the new MVC4 template with SImple Membership provider. I've deployed the app to an Azure website and changed the connection string from a local express-database to an...
View ArticleSQL DB performance issue
Hi, We had a slow performance issue in our Production DB server. The SQL job was taking 5 to 6 hours to complete one batch processing. Since there was huge data, we planned to purge the data and we...
View ArticleHow to retrieve the name of the database where a stored procedure resides...
Hi, gurus, I want to get the name of the database for a stored procedure with any t-sql statement if it is achievable? The reason is I am looking at a SQL Server agent job, and one of the job step is...
View ArticledatabaseId changed after moving to Dev server from prod server in Trace....
Should i change DATABASEID when i run index tuning wizard on dev server.? here i have captured trace file on Prod server and then after i executed index tuning wizard on this trace on Dev server. here...
View ArticleWhat is this All Density in show_statistics
Hi All, I am on SQL Server 2008. I have a table with 300M rows, with one clustered and one non-clustered index. After collecting stats on the non-clustered index (sample 25 percent), I did dbcc...
View ArticleLIKE clause, index usage and variable value - how they tie up?
Hi, I am on SQL Server 2008. We have a web front end, which gives calls to a third party software (black box), which call stored procedures in our database. These procedures are given by the 3rd party,...
View Articleserver clonned but build is different
Hi, we created server "corp_test" on WM @@version Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on...
View ArticlePlease provide guidance for capacity planning of sql server,we are planning...
Please provide guidance for capacity planning of sql server,we are planning to design server based on the current workload.How do we start and decide number of processors,Ram, disk planning and number...
View ArticleHow? Steps to remove a Schema-bound dependency from a Table and maintain the...
Is there a TSQL code or set of steps to remove a Schema-Bound Dependency from a table? There are plenty of articles about finding or adding a Schema-Bound Dependency, but nothing related to removing...
View ArticleHow to update database data on schedule once a day from another database sql...
Looking for correct approach to update database daily on a schedule from another database and including all changes made but keeping some reporting data. Both sql server 2008 r2. The difference is the...
View ArticleCan auditing report on a GRANT SELECT?
Greetings. I'm trying to get notified when an administrator issues a GRANT SELECT permissions on a table. I believe I've tried all of the database_% audit possibilities, to no avail. Can this be done?...
View ArticleSQL 2008 Primary Data file fragmentation
I have 500 GB total database size. It has a primary data file mdf file with 320 GB size currently in the primary FG. When the primary data file was 200 GB I added 2 data files to the primary file group...
View ArticleScenario: Full Log file
I have a question on a particular scenario. Here's the scenario: Database - Full Recovery Model 1) Full backup on Sat @2300 2) Diff backup everyday @2300 I know that taking Log backups would truncate...
View ArticleInvalid object name 'master.dbo.spt_values'. (.Microsoft SQL Server , Error 208)
I am unable to right click and view the properties on any database on this server I get this error Invalid object name 'master.dbo.spt_values'. (.Microsoft SQL Server , Error 208) Ihave tried to run...
View ArticleIs it possible to determine what caused a duplicate key
Is it possible, after you received a 'cannot insert duplicate key' error, to find out WHAT THE DUPLICATE KEY WAS that caused the error? It seems a trivial thing to do, to report the value that failed,...
View ArticleHow data is get stored in ndf and mdf files in SQL server ? which techniques...
Hi I am working on SQL server , I can create the mdf as well ndf files . My question is how SQL server manages to store data in mdf and ndf files ? What criteria is used to store data in these...
View Article