Best way to remove a data file from a database
Best way to remove a data file from a database? The primary data file can't be removed and the other files are all in the same filegroup. Is there a best way to remove a data file? Thank youPaula
View Articletemp tables not dropped SQL Server 2012
I have a server that houses a database application that makes heavy use of temp tables. It appears that temp tables are not getting dropped from the tempdb. In perfmon the temp table count is hanging...
View ArticleQuerying dm_resource_governor_resource_pools gives different results...
For example pool1 has active memgrant count = 1 when i run the query. when sa runs the query the value is 0.How can I troubleshoot? EDIT - problem solved the active memgrant count was including the...
View ArticleCreate linked server to MS-Access database from MS-Sql server
Hi,I need to create linked server from MS-Sql server to MS-Access database. Unfortunately Sql server is 64-bit version, But MS-Access is 32-bit. can anyone please suggest how to connect MS-Access from...
View ArticleIssue running procedures through SQL Server Agent
Hello,We have a 2 stored procedures that runs will load data and will make use of cmdshell to move the files across the server.<o:p></o:p>These procs runs fine when executed manually but do...
View ArticleSQL Server 2008 R2 web edtion return error "A storage engine operation failed...
I have a CMS system that running a schedule sync the data to another server, recently i notice that task failed with the error message "A storage engine operation failed with error code 25104". I check...
View ArticleLinked Server issue which connects to mainframe
I have a linked server which connects to Mainframe in production. The job was scheduled and running for a long time. This is failing now frequently with below error. But job is able to run manually...
View Article[Forum FAQ] SQL Network Configuration 64bit is missing in SQL Server...
IntroductionWhen we open SQL Server Configuration Manager by using the SQLServerManager.msc file, it will determine the bit version of the operation system and decide to connect to the 32-bit or 64-bit...
View Articledifference between "print" statements and "select" statements , TSQL
What is the difference between "print" statements and "select" statements when it omces to debugging and watching varibles in the stored procs .....
View ArticleMaintenance plan for SQL Server 2012 Database in AlwaysOn Availability Group
Hi all,I need assistance creating a maintenance plan that will backup a databases logs in order to prevent them from filling up the drive they are located on. I have looked at some blogs but they do...
View ArticleCannot drop a login because the user is logged on
I want to be able to drop a login forcefully even if the login is currently logged on, its a SQL login. I have tried setting the database offline and online but that does not seem to do the trick, the...
View ArticleSQL Server Transaction log corruption
Hi,I have a strange problem in one of the SQL 2012 SP1 database. Sometimes my transaction log file grow unexpectedly than the preallocated space and i had to shrink it back . I usually preallocate...
View Articleresilient file system on SQL 2014
I know that you were not able able to run SQL 2012 with ReFS. It seems that this has been fix with SQL 2014. Is it still recommend to use NTFS or can the SQL Engine & databases now reside on a...
View ArticleSQL agent proxy account for Powershell
I am trying to use a sql agent proxy account for PowerShell. Created the ad account, credential and the proxy but because the PowerShell accesses a bunch o sql servers it errors out.Even when I created...
View Articlelinked servers force named pipe
Hi,I use the following syntax to create a linked server with named pipe protocol :@datasrc=N'np:MyCollectivePI'The test connection to the linked server failed... OLE DB provider "PIOLEDB" for linked...
View Article[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture...
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and ApplicationI facing this problem while connecting to oracle DB 11g....
View Articledatabase indexing
I have been creating indexes manually in the database and only on those tables on which requires. But I have to check it daily. Now I want to schedule it through maintenance plan. If I will do it then...
View ArticleFree space to the rest of the database from a single table
Hi,I have a table where we did a compression the JPG that make up the LOB data. This made the table about 70% smaller. However, I can see that the unused space for the table is 56GB vs 41GB of actual...
View Articletrigger sql agent upon a data load completion
hi all,i insert/update data from server A to server Bonce the above step is successful, i want to try to start the sql agent job on server B.how can i set the sql agent job on server b to check and...
View ArticleLog file size is huge and cannot shrink.
I have a live database that is published with merge replication and a couple of push subscriptions. I just noticed that the log file has grown to 500GB. The database is in full recovery. We do weekly...
View Article