Usage of CTE in a nested select
Hi,Im very new to CTE. I have a nested select statement for CTE like the one below but i keep hitting this error:Msg 1033, Level 15, State 1, Line 13The ORDER BY clause is invalid in views, inline...
View ArticleClustered Index Ordering & Insert Speeds
Hi,We used to have a clustered index which consisted of 5 fields, this was ordered incorrectly which meant new inserts caused a lot of bad page splits.This CI was reordered to be correct and that...
View ArticleSQL: Message, servirity, state
Hi AllWhere can I get all the SQL message , servirity and state list, and their meanings?
View Articlecontent
Hi all,what content contain the ldf in sql server?what content contain clustered index in sql server?
View ArticleIs it ok to set the restricted growth of system database?
Is it ok to set the restricted growth of system database?Thanks
View ArticleCheck scheduler_id's for parrallel queries using Extended Events
Hi,we followed the rule to set the maxdop = numer of schedulers per NUMA node. I now want to check how often parallel queries can use different schedulers within the same NUMA node. Following scripts...
View Articleexcept shrinking how can I release those space from database.
My drive size is 550 GB in which data file exists. I have 500 GB database and I can see that internally 85 GB free space in data files still we receive alerts.except shrinking how can I release those...
View ArticleI want to know why datafiles and log files are increasing in index rebuild...
In index rebuild process my database(data files) are increasing to 120 GB and log file is increase to 110 GB.I want to know why datafiles and log files are increasing . Mainly data files because I...
View ArticleIssue in making rows to columns
Hello All,I am working on a query where I need to make 2 rows data as columns. I have 2 tables Table A and Table B from which I am getting the data.Here is my Query.SELECT DISTINCT A.Name,...
View ArticleMaximum memory on SQL Server 2012 Standard
Dear everyone, I would like to check with all of you about maximum memory on SQL Server 2012 Standard. If refer from http://msdn.microsoft.com/en-us/library/cc645993.aspx that said SQL Server 2012...
View ArticleSQL 2012 tempdb initial size
I install SQL 2012 in cluster and cofigure tempdb: 1 file per core, initial size 1024Mb, but after SQL automatic change initial size to different value. Why SQL automatic change initial size for...
View ArticleUnable to connect to remote SQL server in management studio
I have done all the steps in this...
View ArticleSYS processes, sql_handle, stmt, stmt_start,stmt_end
Hi ALLAre there any method to have processes, sql_handle, stmt_start,stmt_end and the real tsql in the same table?
View ArticleDev Licensing
HelloWhat is the definition of a development server for SQL Server licensing? The reason I ask this is that we have been asked to build a development SQL server with a developer license. However there...
View ArticleSQL SERVER AGNET (sql express)
"SQL SERVER Configuration Manager "The request failed or the service did not respond in timely fashion" Consult the event log pr the applicable logs for details ?can you please help thanksmani
View ArticleSame Stored Proc response time is different for different web servers
Hi,Same website is hosted on multiple web servers and they are running in a load-balance environment. On SQL Sever 2012, Same Stored procedure response time (duration) is double or more for one web...
View Articleanother invalid log scan number question
I just upgraded one of my dev servers from SQL Server 2008 R2 to SQL Server 2012 SP1 (11.0.3000).I am now getting this error.The log scan number (4572:11588:1) passed to log scan in database 'foobar'...
View ArticleSQL Dump File Help Needed
Hi All,I need some help identifying the issue with this query I'm running, whenever I run a particular query using the below optimize for statement, it generate the error below and a dump file(OPTIMIZE...
View ArticleSQL Server limits rows added to a table
Hi,I need to append over 50 million rows to a table in a database. Problem is, as soon as it reaches 3.6 million rows, it just stops inserting rows. There is no error raised. We have to manually...
View Article