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

Performance problem with varchar and utf-8

I have a problem with a simple query that takes more than 30 second to complete. The query is a simple "SELECT" from a single table and the resultset contains 64 rows. Im not sure why it takes so long...

View Article


When is the release date for SQL Server 2020 (aka SQL2020)

Hello all,Do you know when is the release date of the SQL Server 2020 (Also named SQL2020 and SQL Server 16.0 (?))?We need to work on the planning for verification testing with SQL2020.Thank you!- Trang

View Article


Usage of SQL Server Query Hints

Hi all,I am using sql server 2017, and I was trying to optimize a query that runs slowly. Surfing some blogs, I came across query hints and used this one:option(use...

View Article

Encryption inserting NULL values.

Greetings. I recently moved a DB that holds DBA service account passwords from a 2012 instance to 2019. The passwords are encrypted using column level encryption. When I run a sproc to decrypt the...

View Article

Image may be NSFW.
Clik here to view.

Polybase scale out group

https://docs.microsoft.com/en-us/sql/relational-databases/polybase/configure-scale-out-groups-windows?view=sql-server-ver15when I come accross the above DOC, and just wondering if the scale out ability...

View Article


Image may be NSFW.
Clik here to view.

SSMS query store reports

May I know if the following Queries with forced plans ,queries with high variance are available on SQL Server 2016, however require much update SSMS to view ?And the Query wait stats are from SQL...

View Article

Postgresql migration tool?

I have a postgres db and would like to convert to SQL Express or standard edition.  Is there a conversion or migration tool available?I can dump the postgres db to a sql file but MS has slightly...

View Article

Image may be NSFW.
Clik here to view.

ANSI_NULL vs ANSI_NULLS database setting

What's the difference between the following ?

View Article


Creating an instance of the COM component with CLSID failed?

Creating an instance of the COM component with CLSID {56AC07DD-46F1-44C0-A6FA-66CB17C79C22} from the IClassFactory failed due to the following error: 80070005 Access is denied. (Exception from HRESULT:...

View Article


Resource database

What actual objects are persisted under the hidden database "resourcedb"

View Article

reuild index under bulk-logged recovery mode

If we set the database recovery option to bulk-logged before Rebuilding index, in-case during the rebuild index the system crash . the rebuild index operation will be ROLLBACK ?

View Article

Extent Allocation on the physical disk

is there any way to  make sure if the extent allocation (64KB) are continuously allocated (uniform extents) on the physical disk? Pre allocate the data files size can do that ?

View Article

Intent locks

what's the differences between the following locks ?Intent Shared (IS)Intent Update (IU)Intent Exclusive (IX)Shared Intent Update (SIU)Shared Intent Exclusive (SIX)Update Intent Exclusive (UIX)

View Article


SQL Server Agent Job Notifications Not Working

We have successfully setup Database Mail, and I am able to right click and 'Send Test E-Mail' and it works perfect. We have a few jobs setup in SQL Server Agent, and if the job fails it should e-mail...

View Article

Image may be NSFW.
Clik here to view.

dm_db_index_physical_stats

are there any calculation for column avg_fragmentation_in_percent ?So avg_fragment_size_in_pages = Page_count/fragment_count.  

View Article


update statistics with sample

I am having a SQL Server 2016 instance , and I found that update statistics with sample 10 percent not always works for small tables. for example I have a table have 10000 rows , and update stats with...

View Article

After server restart, Tempdb not releasing space

Hello,In my SQL instance I  have 1 TempDB mdf and 7 ndf files which all grew to 63 gb and filled up the 500 gb drive.I got permission to reboot server, however, TempDB files did not shrink.What should...

View Article


Query Xevent using TSQL

I have the following 2 xevent, and I am just wondering how to query it using TSQL ?CREATE EVENT SESSION [audit_login] ON SERVER  ADD EVENT sqlserver.error_reported(...

View Article

powershell Backup-SqlDatabase

Anyone know if there are verbose mode / or log output can output the results of Backup-SqlDatabase ?

View Article

alter table to add columns doesnt seem to work

hi we are running 2014 enterprise and the following alter command doesnt seem to work...i tried rowversion also.  I know i've done something similar before but on later versions of sql most...

View Article
Browsing all 15930 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>