Cannot open database " " requested by the login. The login failed. SQL Server...
I am getting this message when I try to create a path to a work file from my application.Cannot open database " " requested by the login. The login failed. SQL Server 2008 is installed. I have placed...
View Articlerelease space from data file
Hello,I dropped some tables from a database after careful consideration as they were no longer being used. But interestingly the mdf file did not release the space. Can I release the space without...
View ArticleImpact of index rebuild in publisher database
Hello,I am using transactional replication and want to run purge job on the publisher database. Lets say at the end of purge I am rebuilding all indexes only on those tables where i purged the data...
View ArticleSQL Server Automatic Start Fails
What would be the reason for the SQL Server service not starting and it times out on attempt to start with the following, what is the time in which SQL Server should start and after how long it will...
View ArticleThe log scan number passed to log scan in database 'master' is not valid.
I get the error below when the SQL server tries to start. They have backups of the SQL server files but not BAK files just Symantec files backups of the SQL Server folder. I’ve tried replacing the...
View ArticleSQL server auditing
I have some questions about the auditing1. I can't view audit log remotely from management studio ?2. who can turn off the audit ? all sysadmin on the server ? can I only delegate an account to control...
View ArticleConvert column name in rows by comma separated
Hi,I want to convert column of respective table into rows of all the table of databasesuppose emp table have col1,col2 and col3 columnand dept column have col1,col2,col3,col4 columnmy output...
View ArticleLimitations for upgrading SQL server database engin from SQL 2008 R2...
Dear All,we are planning to upgrade SQL Server 2008 R2 Enterprise edition to SQL Server 2014 Enterprise edition.please suggest the limitations for the up gradation.Thanks in AdvanceVineet...
View ArticleSPID BLOCKED BY THE SAME SPID
HI, MY DOUBT IS ABOUT A PROCES THAT IT IS BLOCKED BY THE SAME PROCES, THE QUERY IS GENERATED BY THE ENTITY FRAMEWORKAS YOU CAN SEE IN THE PICTURE :(, SO IF YOU KNOW THE CAUSE FOR THIS, PLEASE LET ME...
View ArticleSQL Server 2012 Reorg Index Job Blew up the Log File
We have a maintenance plan that nightly (1) runs dbcc checkdb on all databases, (2) reorgs indexes on all databases, compacting large objects, (3) updates statistics, etc. There are three user...
View Articlelog messages
Hi,We are using SQL Server 2012. From last few days I see different messages in db log file.Before I have below log messages.Now I have below additional messages in logfile as below.We have full backup...
View Articlelots of ASYNC_NETWORK_IO wait in SSIS package
getting a lot of ASYNC_NETWORK_IO wait while an SSIS package. two threads working on a dual-core server are both getting ASYNC_NETWORK_IO wait.the data source and target are both local. Even the SSIS...
View ArticleHIGH memory usage in Perf Counters but LOW by SQL components
Hi all,Our SQL Server has the following specs:OS: Windows Server 2008 R2 Enterprise Edition SP1+Cumulative UpdatesRAM: 128GBSQL Server: 2012, Enterprise (SP2), Core-based Licensing (64-bit)Max Memory...
View ArticleHow to find Deadlocks by using SQLProfiler data
Hi All,How to find SP's which is causing for deadlocks by using SQLProfiler.In this which sp is causing deadlocks. i mean SP:STMTCompleted event or RPC:Completed or SQL:STMTCompleted.
View ArticleOnly Clustered Index Seek = Good performance?
Hi I have a really complex query.When I execute it with "set showplan_text on", the word "scan" does not appear in the output.All the operations are "Clustered Index Seeks" in the showplan_text.When I...
View ArticleLSN chain
I have a set of differential backups for which I seem to have lost the full backups taken in between. As a result, I am unable to restore it to the full backup of the database which is quite old.Is it...
View Articlesp_validatelogins issue
Hi Team,sp_validatelogins store proc validating the users by name not by SID. How can we get the SID of user using T-sql statements.lets say , if a person name is changed from abc to abc1....
View ArticleAttach database leaves the original in state Restoring
I used SQL Enterprise manager to attached a previous version of a database under a different name. When I did so the Original was left in the restoring state. The only way I could get the original back...
View ArticleHow can I backup a sql database and restore it as an alternate name
Hello All!I need a little advise on backing up and restoring a database with a different name.I am in the process upgrading our helpdesk software and the database is uses is housed on our shared...
View ArticleSQL Server Filegroup restores
Hello,We have a scenario where I need to back up a specific file group from Server A and restore the file group on to Server B(the DB name and files/filegroups are same), really not sure if this is...
View Article