Quantcast
Channel: SQL Server Database Engine forum
Browsing all 12963 articles
Browse latest View live

Does running this command helps sql server 2008 r2 for best performance

Sir, 1)DBCC SQLPERF('sys.dm_os_wait_stats', CLEAR)2)DBCC FREESYSTEMCACHE ('ALL')3)DBCC FREESESSIONCACHE4)DBCC FREEPROCCACHE5)DBCC DROPCLEANBUFFERSIf not the commands then what will be best idea to...

View Article


Help resolving connectivity Issue to SQL Server 2005 x64 SP4

We currently moved our Windows Server 2008 R2 Servers with SQL Server 2005 x64 SP4 to Active Directory. After moving the servers to Active Directory, we noticed that all of our processes that access...

View Article


Problem with schema

Hi, I attach one .mdf file to SS 2012, while the .mdf file is also created by the same version. But the relevant schema is read-only. How to resolve this?Many Thanks & Best Regards, Hua Min

View Article

To get a SYSTEM NAME even using sa or Group login other than Windows...

how to get system name in username when we write a select query Select SUser_sname() in sql server 2008 r2.Actually , requirement  is  I have to give a sql serevr login to the client.NOTE : I cant...

View Article

Issue with Merge command not finishing

SQL Server Standard 2008 R2I have a rather complex MERGE command with when matched, not matched target, and not matched source.  It runs just fine on a data set of 360K rows, but does not complete on a...

View Article


Error while trying to upgrade SQL 2008 (SP2) to SQL 2012: There was a failure...

Hi,I am trying to upgrade one of our SQL Server Enterprise (2008 (SP2)) to 2012. I am using the upgrade option but it gives me the following error:Error Code 0x85640002: There was a failure to...

View Article

How do I determine which persons or applications currently use a particular...

We have an old SQL 2000 server that we need to move databases from. Some of those databases show no new rows in key tables for over 2 years.  An sp_who2 on the box yields no obvious user/service...

View Article

Image may be NSFW.
Clik here to view.

Running UDF's from SSMS?

Hi ya there,Sql2k8 is the current version used here.I'm just trying to run one UDF either tabled or scalar one from the tree and I don't see how to do it. is not possible?TIA,Primary platform is...

View Article


Clearing and Keeping the Log

Hi All I am doing a program where at the end of everyday there is a backup.BACKUP DATABASE [BASE] TO DISK = @path WITH NOFORMAT, NOINIT, NAME = N'BASE-Full Database Backup', SKIP, NOREWIND, NOUNLOAD,...

View Article


calculate the average usage time of a product by model and manufacturer for...

Hello guys  I wonder how I could calculate the average usage time of a product by model andmanufacturer for this product.  If anyone can help me I will be grateful.considering this table:CREATE TABLE...

View Article

Attach pdf files or DWG to a table

HiHow can i attach pdf files or DWG  or.... to a table?Best

View Article

About DMV [dm_os_memory_broker_clerks] for SQL2012

I just find a DMV named [dm_os_memory_broker_clerks] in SQL2012, but I can't find any description for it including MSDN, is any anyone can help to explain it or give some material for it? Please click...

View Article

Missing green arrow on the sql server icon in object Explorer

I am using SQL Server 2008 R2 on windows 2008 server. i am able to get connected to management studio but the status light with white circle. the status lights in my Enterprise manager are no longer...

View Article


cannot read unicode

hi, I want to perform a SELECT command and inside it i use a "unicode persian character" comparison like :[ SELECT * from products where Category = 'نام' ]but sql server returns no data and just...

View Article

Rebuiliding indexes and impact on average_fragmentation.

I ran this query on our sql 2008 server: select           object_name(object_id) ,index_type_desc,          avg_fragmentation_in_percent from sys.dm_db_index_physical_stats (DB_ID('MyDB'), NULL, NULL,...

View Article


Server maintenance

Hi We used to perform the server and database maintenance in the weekend but users start using theserver in weekend also. I need to avoid the downtime of the server while the maintenance it maycause...

View Article

An 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 Article


Change compatibility level to 110 disables indexes with computed column on...

I have a very large DB which I need to change its compatibility level to 110.I have 4 indexes on computed column on the function Soundex in this DB.When changing the compatibility level, I get a...

View Article

Change Tracking: No access to parent table after delete.

Synopsis: I’m using Change Tracking to track changes in a Child table.  I’d like to group them by a Parent key, and keep track of one MAX value. Works great, except for deletes.  Details:Two tables,...

View Article

Image may be NSFW.
Clik here to view.

You can be our next Spring SS DBE Guru !!

In the northern hemisphere at least, Spring is here! (apparently)And at TechNet Wiki, we're hoping you're all hatching new ideas for this month's TechNet Guru competition!We're looking for more shoots...

View Article
Browsing all 12963 articles
Browse latest View live