SMO question: Cannot attach database using captured SQL
Hi,I have the following codeServerConnection conn = new ServerConnection(".\\SQLEXPRESS"); Server svr = new Server(conn); svr.ConnectionContext.SqlExecutionModes = SqlExecutionModes.CaptureSql;...
View ArticleApril's TechNet Wiki SS DBE Guru Winners announced!!
The results for March'sTechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2014/04/17/the-microsoft-technet-guru-awards-march-2014.aspx <- results...
View ArticleAn error 1069 - )The service did not start due to logon failure) occurred...
Hi All, We seem to be being plagued by the error below by our SQL Server agent. This happens almost everytime we restart the server that has been running for a day or two. Our SQL Server Agent uses a...
View ArticleMarch's TechNet Wiki SS DBE Guru Winners announced!!
The results for March'sTechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2014/04/17/the-microsoft-technet-guru-awards-march-2014.aspx <- results...
View ArticleFlushCache cleaned up
Hi,I find below error is SQL Server (2012) log file:FlushCache: cleaned up 90898 bufs with 7900 writes in 1876 ms (avoided 248001 new dirty bufs) for db 5:0Last target outstanding:24800 avgWriteLatency...
View ArticleBuffer Pool Extention - SQL 2014
Hello All,I tried enabling buffer pool Extension feature on SQL 2014. To stress and compare an OLTP database results, we used Quest Benchmark factory tool.Here is my environment...
View Articleservice accounts
I am trying to change the service accounts for a sql server instance and its related sql agent. the OS is windows 8.the default account (which has admin privileges) on the machine was the original...
View ArticleSQL Server Maximum Write Performance
Hi SQL Gurus,I want to know if we are already getting the fastest SqlSever Write Performance for our application.We created a sample application that performs a BulkCopy operation to a local SQL Server...
View ArticleDecimal conversion
Hello all,drawing a blank here...Monday morningI have this:DECLARE @PREWEEK INT = 72159 DECLARE @FIRSTWEEK INT = 70200 SELECT CONVERT(VARCHAR,Abs(100 - ( 100 * CAST( CAST(@PREWEEK AS DECIMAL(12,3)) /...
View ArticleFrequenet dead locks in SQL Server 2008 R2 SP2
Hi,We are experiencing frequent dead locks in our application. We are using MSSQL Server 2008 R2 SP2 version. When our application is configured for 5-6 app servers, this issue is occurring frequently....
View Articlesp_rename not working
sp_rename not working not renamining properly....Is there any attributes additional to work with this??After rename sp_helptext returing old sp name...
View ArticleIOPS by application
HiOur main production is used by our OLTP system and OLAP system(QLIKVIEW). We are now considering to split this into two servers. For the capacity planing we need to find out the IPOS by the OLTP...
View ArticleSQL Server 2012: Need ROLAP Partitioning Advice
I am in the development phase of producing a ROLAP model which will accommodate price index changes over time (10 years). When I asked individual users how most of the information of interest will be...
View ArticleDatabase Engine won't start - master DB log file issue
I had a server patched and reboot yesterday and now the SQL services won't start because it's saying it can't find the master log file. I checked the path and the log file is present. Any...
View ArticleSQL Server has encountered 3456 occurrence(s) of I/O requests taking longer...
Have seen this mentioned elsewhere and seen advice to check disk condition etc. Before I go down that road I wanted to check whether DB integrity checks running at the same time could cause this...
View ArticleCannot start MSSQLServer service
I recently re-installed SSMS on my machine and am able to connect to remote databases. But I cannot connect to the local instance. Neither can I start the MSSQLService from the configuration manager. I...
View ArticleHelp with DMV sys.dm_exec_query_stats
Below is one of Glenn Berry's SQL Performance queries for SQL 2005. It gets Avg Elapsed Time of stored procedures in cache . I need some help understanding what the query is doing. I want to get the...
View ArticleUpdate staticts job taking longer time in a production server
For DB optimization I run re-organize, Rebuild, Update statics, Shrink database, History clean up jobs, In this update statics takes 5+ hours to complete with database size 280 GB, Can some one explain...
View ArticleWait Events in SQL
Hi,I am getting many Wait Events in SQL Server 2012. Please let me know how can I resolve these wait...
View ArticleSQL Query issue
HI - I have one peculiar issue with sql query. Below query is not returning any rows. The issue lies with store_code(st.store_code = 'MAUR') filterselect st.store_code, s.source_title,c.*from...
View Article