SQL Server 2012 Diagnostic Information Queries by Glenn Berry (updated...
http://dl.dropbox.com/u/13748067/SQL%20Server%202012%20%20Diagnostic%20Information%20Queries%20%28January%202013%29.sqlThank you Glenn Berry!Frank Garcia
View Articlewhat is sys.dm_pdw_nodes_os_wait_stats
Hi Friends,SQL 2008 SP3/CU6what is this object ? sys.dm_pdw_nodes_os_wait_stats I can't find any BOL about it. it's listed in the master db as DMV but I can't do anything with it ? I need to modify...
View ArticleBest way to connect to SQL Server 2012
Hi all,very simple question: what is the best connection method to an instance of SQL Server 2012? ODBC? OLEDB? Other?
View Articlelock question
we have a developer that thinks a program in one of his applications might be locking a table. The application sometimes goes down for a bit. Unfortunely, we usually hear about it after the...
View ArticleConnection Licensing SS2008 STD Ed.
I have installed SS many times and have never indicated the number of concurrent connections or any licensing info, so I am under the impression that an installed SS2008 STD Ed instance will not refuse...
View Articlehow to run a simple sql query - dumb question
I am new to SQL Server 2008 (the newest version we have). We have been running SQL 2000 for a number of years and so my limited experience is with that version. What my question is, is I am trying to...
View ArticleSQL Server- Large Pages Use WITHOUT trace flag 834
I read Bob Ward's post on SQL server and Large Pages (http://blogs.msdn.com/b/psssql/archive/2009/06/05/sql-server-and-large-pages-explained.aspx). He mentions that even without trace flag 834...
View ArticleUsing Hashbytes and inserting into a table
Hi All,I want to use hashbytes to generage a hash, and then insert into another table. I'm wondering what kind of definition to use when creating the table.Hashbytes will be used to generate a hash of...
View ArticleSQL Server 2008 Extended Event Predicate to target a specific stored procedure
Hi,Could I request for an example of using the extended events predicates to target a specific stored procedure?I am trying to gather as much information when a specific procedure errors or times...
View ArticleGetting many FlushCache messages in SQL Error log
Hello,Since few days ago I am getting several messages like the one below. Any idea what should I do? FlushCache: cleaned up 6611 bufs with 6381 writes in 90940 ms (avoided 462 new dirty bufs) for db...
View Articlehow to convert this query into merge statement in sqlserver 2008 R2?
Hi ,i am facing this issue from last 3 days actually the below query fulfilled my requrirement but this code is rejected by lead and asked to make it as merge statement.my actual query...
View Articlesys.dm_os_wait_stats
Sometimes i had problem with slow working of sql server.After reading some article i find about running sys.dm_os_wait_stats. In my sql server i ran query select * fromsys.dm_os_wait_stats order by...
View ArticleAdd language to FullText Semantic search
I've been reading about new Semantic Indexes in Sql 2012, and it seems like tailor-made for my needs.Unfortunately I hit the wall while trying to implement it in my project.The wall is content of...
View ArticleQueries and stored procedures running slowly.
Hi,I have noticed that AX performance seems pretty poor so ran a Profiler trace. From it I can see that some stored procedures are taking a long time to run. The below is an example. this particular sp...
View ArticleIdle connections: problem or not?
SQL Server Version: SQL Server 2008 R2 SP2 Enterprise 64 bit on Windows 2008 Enterprise Avg Number of Active Connections: 5Avg Idle Connections:350Avg Batch Size/sec: 550I want to know that whether or...
View ArticleWhich is better for a clustered index Identity or a random Bigint column
Hi All,In a datawarehouse style table, I am wondering which one is better for the design of the table, an identity column which has no use for a query perspective. Or a column which is also unique, but...
View Articlehow do i replace the usage of "connect by prior" in SQL SERVER 2008-R2 ?
Hi ,i got one requirement like to write the recursive query. the same issue is resolved in oracle 10g with the help of connect by prior functionality.here i am going to post my table structures with...
View Articleerror when Attach a Database in SQL Server ,,
hello to all of you ,,actually i get trouble when i attach Database in SQL Server 2008 ,,it display message with.. { TITLE: Microsoft SQL Server Management Studio ------------------------------ Attach...
View ArticleWhy can't I do the grant?
Hi, I've already created such login in the schema. USE my_schema; CREATE LOGIN login2 WITH PASSWORD = 'Abc1234'; go but why do I get the problem when granting the privileges to the login? use...
View Article