T-Log backup after an index rebuild in bulk_logged recovery model
I have a db that I am trying to optimize the index rebuild process for. Because it is using up a lot of log space, I have switched the recovery model to bulk_logged mode, performed the index rebuild...
View ArticleWill bcp data compatiliby between different versions of SQL Server?
Hi, I am use the bcp utility to export and import table data in SQL Server native format. I just wonder whether the data file compatible with different versions of SQL Server? For example, I use the...
View ArticleWhen creating a linked server in SQL Server 2014 to other SQL Servers, the...
I have a new SQL Server 2014 server that a consultant installed and configured. I'm trying create all of the linked SQL Servers that were on the old SQL Server. Each time I do so, whether by script...
View ArticleDefault behavior of Index Rebuild
HelloI know that specifying the ONLINE = ON or OFF defines if an index is rebuilt online or offline. What is the default behavior if you don't specify anything? For example: ALTER INDEX...
View ArticleSQL Agent WMI Alert for file exist on remote server location
I have a SQL Agent Job that needs to be run only when there is a file existence on some remote server location that is shared like (\servername\foldername).I Was trying to use WMI Alert in SQL Agent...
View ArticleCannot obtain the required interface ("IID_IDBSchemaRowset")
I hope some oone can help with this.I have a sql 2005 32 bit sp3 STD Edi running on Windows 2003 sp2 Std EdiI am using a domain account and am local admin on the box. The SQL and the SQL agent are both...
View ArticleSeverity 016, 20 : An error occurred in a Service Broker/Database Mirroring...
Hi, Today morning I got an error log as, the first error : Length specified in network packet payload did not match number of bytes read; the connection has been closed. Please contact the vendor of...
View ArticleSQL Job not running but Job History showing in executing status
Hi All,We got a server restart on the server, later some time we had checked for one SQL Job currently the job is not running but in SQL Job history the job is showing in execution status.While tried...
View ArticleSQL server 2008 - SharePoint 2010 farm restoration
Hi, I have been taking the backup of databases of all web application of my SharePoint farm using SQL server management studio 2008. I want to know that in case of crisis, will the restoration of each...
View ArticleHow to select distinct record?
Hi, I have a table, as follows: ID | Name | MyID1 | Alan | 22 | Alan | 23 | John | 3 I want to select the records as follows: If two records have the duplicate values in...
View ArticleThere is insufficient system memory in resource pool 'default' to run this query
Over the past year we have been suffering a situation where many different queries at the same time will fail with the following error (or a variation in a different resource Governor group): There is...
View ArticleAttach database
Hi There,I start my software in visual studios express 2015, created the database using code first migration, ms sql express 2012. Now when I tried to attached my database using ms sql 2012, I had the...
View ArticleCannot obtain the required interface ("IID_IDBSchemaRowset")
I hope some oone can help with this.I have a sql 2005 32 bit sp3 STD Edi running on Windows 2003 sp2 Std EdiI am using a domain account and am local admin on the box. The SQL and the SQL agent are both...
View ArticleBackup log: transaction log files not in chain
I configured a full backup of a database (member of an AG group) every night as 23:00. And after that a log backup on each hour sharp. After an unsuccessful restore, I looked at the LSNs of all the...
View ArticleStored procedure going from seconds to hours.
Hi experts,I have this legacy code… It’s an SP called SF_MergeOpportunityComplete It ran in seconds for the last year or so, but this past month, it went from 5 seconds to taking 7 or 8 hours…Inside...
View ArticleConnect to LAN BASED connection pc to pc using SQL and VB.NET
i created a program using vb.net and sql server i want to access the other pc in that database that is save in my pc (sql server), pc to pc connection, but when the program run to other pc this pc or...
View ArticleCopy data to Amazon RDS
We are moving to "Amazon RDS for SQL Server" for our reporting needs and we need to keep a copy of our datamarts in Amazon RDS as well. We have a nightly job to upload data to the datamart everyday and...
View ArticleCreate A Custom alert
Hi,Recently I noticed that the state of some of my databases have changed unexpectedly.So I need that if the following query returned any row ,then an email must be sent to my outlook account to show...
View ArticleUse of _total in instance of Alert creation for Percent log counter
Hello All,I want to create a alert for transaction log alert if percent log space used is more than 80% on all databases using the SQL Server alert.I have selected the following things while creating...
View ArticleDBCC error :Msg 8944, Level 16, State 16, Line 1
HiRecently i recieved below errors from one of the databases: Msg 8944, Level 16, State 16, Line 1Table error: Object ID 1218259545, index ID 1, partition ID 72057594983350272, alloc unit ID...
View Article