How to write the query using pivot table?
Hi,I am using the below query using pivot table. i have year column and employee id column in one tableSelect...
View ArticleCorrect installation order for SQL Server 2012 and Visual Studio 2012
What is the correct installation order for SQL Server 2012 Enterprise and Visual Studio 2012 Ultimate?I have read so many conflicting responses online and would appreciate if someone could clarify? Do...
View ArticleWriting Queries
Is there a book online or reference guide of the language used in writing queries in Microsoft SQL Server Management Studio?
View ArticleThings to consider while Creating Indexes in the tables
Hi All,We have some application slow issues becasue of the tables which it is calling are Heap. There are Primary keys created on few tables though. I have to think and design the indexing on those...
View Article"Network-related or instance specific error", Works OK for Administrator
I've been handed a legacy .Net Windows application that was previously used on Windows XP, and asked to debug a few problems encountered on Windows 7 clients. The original developers are all gone....
View ArticleSQCRS_Exec: State:42000 Error:[Microsoft][ODBC SQL Server Driver][SQL...
I keep getting this error even though I have done all the suggestions. This was a restored database everything worked well for 2 days and now i am getting this error. I have autogrowth on and have...
View ArticleWhy the extra constraints?
My Files table has a one-column primary key named PK_Files, clustered. When I run a fragmentation query I get results like this:...
View ArticleReplace apostrophy issue
So some wise guy decided to enter in the string " 'NULL' " if a field was blank. I had converted a DB from Access into SQl and am discovering some annoying issues. This is one of them. I wanted to...
View ArticleMaintenance plan
Hi gurus. as you can tell from my previous post, I am very new to sql, so take it easy on me.I am trying to get ahead and create a maintenance plan for on of my database, so I would like to know what...
View ArticleI can not connect to local SQL2008 server locally by sqlcmd.
I use win2008R2 and SQL2008R2.I can not connect to local SQL2008 server locally by sqlcmd -E -S localhost\MSSQLSERVER.The result was HResult 0x35.I saw the link below and made sure that instance name...
View ArticleLog files are bigger in size
Hi,My Log files has grown very bigger in size..How do I make the log files smaller in size without losing any data??Please Help...Regards,Kunjay Shah
View ArticleNEEDED: More SQL Server Answerers
We need more answerers in this forum! The basic idea is that if our answers get marked, then we know which threads to focus on (no questions left behind), and the people who answer the questions can at...
View ArticleSQL Server 2012
HiCan anyone tell me if the SQL Server 2012 Evaluation copy has any differences from the "full" version? I've experienced an issue when trying to install AX2012 R3 against an evaluation copy of SQL...
View ArticleHow to delete old data from a table without a timestamp field
Hi everyone,I have a SQL Server 2005 and recently I need to delete some outdated data(older than 3 years) from a big table. However, the table doesn't contain a time stamp field so I'm not able to...
View ArticleCould not allocate space for object temporary system object: ... in database...
Using SQL Server 2008 R2. Tempdb resides on disks W and X both of those are 250 GB each. Nothing else resides on these disks. The recovery mode for tempdb is set to Simple and is split in 8 files and...
View ArticleMoving Tempdb location
Hi All,I am using SQLSERVER2012.Iam trying to move tempdb database from one drive to another drive. it was not creating new data and log files in new location. I executed below script and then...
View ArticleInserting between two servers
HI I am running below command on my local server to insert rows from a remote server. INSERT INTO tblEvents(...) SELECT ... FROM [ODBC;Driver=SQL Server;SERVER=<ip...
View ArticleRestore Over OR Delete and restore database ?
Hi,We are going to restore the Production Database Backup to the Testing Environment.We just wonder whether there is any difference between:1) Restore the backup file over the existing Testing Database...
View Article