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

Who dropped my table!

Hi,I have Audit enabled on my DB,But the last captured record shows that an update trigger had been enabled, But no drop on tables.Who and How this happend?!

View Article


VB6.0 ADO2.6 and SQL 2016

Does SQL 2016 still support VB6.0 ADO2.6 OLEDB connection? Can we upgrade our SQL 2012 to SQL 2016 without front code conversion? The majority legacy code is still in VB6.0 ADO2.6 OLEDB to connect to...

View Article


Huge data files - low disk space

Hi All, I have a database of around 950 GB on a SQL 2014 Enterprise server. The database has 4 database files, all of them on the same drive. The free space is getting less and less, so I have to do...

View Article

locking and not locking

One connection starts a transaction and selects with xlock:select * from mytable with (xlock);Another connection tries to read and succeeds:select id from mytable;Another connection tries to read and...

View Article

Database Rebuild index failed with the following error: "Lock request time...

Hi,I have run the job every weekend. The job was failed show the below error. Executing the query "ALTER INDEX [IX_Customer_CustomerID] ON [dbo].[Custom..." failed with the following error: "Lock...

View Article


Abnormal TRN log growth while DBs are in SIMPLE recovery mode

 Hello experts!  Our databases are in SIMPLE recovery mode and most of our transaction are set to perform BULK load using SSIS, even then we are hitting abnormal transaction log sizes on few databases....

View Article

import excel file

Hi experts, Can I automate a weekly insertion of an excel file into a sql table without having office installed in the sql server box? My options b are: asking the person to upload the file in csv or...

View Article

Hung job isn't been stopped post restart of SQL AGENT

Hi Friends,Recently, I have faced one issue one of the backup job is hung state for a particular step ,I tried to reboot the SQL AGENT to stop the hung backup job ,but post reboot also job is still in...

View Article


Checkdb of 150 GB database is taking too much time

Microsoft SQL Server 2014 - 12.0.4100.1 Enterprise Edition: Core-based Licensing (64-bit) Checkdb of 150 GB database is taking too much time.Thanks

View Article


Collation bug?

I get a duplicate-error on this. Is this a bug with the collation in the Microsoft SQL Server? declare @t table (c varchar(50) collate SQL_Scandinavian_CP850_CI_AS  primary key) insert into @t (c)...

View Article

Prevent DMVs from clearing

I noticed that my sys.dm_exec_query_stats DMV is getting cleared very frequently (30 seconds to 60 seconds). Is there a way to prevent that? I know it can be cleared because of memory pressure or...

View Article

can indexes be built in tempdb over perm tables

Hi. We run sql 2012 enterprise. Because of what we do here, we often find ourselves wishing there were certain indexes on perm tables we don't control ...just for the duration of our query execution....

View Article

SQL Authentication

Is it possible for the client to force use kerbero instead of NTLM?or the method can only choose by SQL server side ?

View Article


Role required for xp_cmdshell

Hello,  Whats Role/ Privileges are required to enable xp_cmdshell? currently we have granted sysadmin role to the application user which is an audit observation and  we also can't assign CONTROL SERVER...

View Article

Database cannot be opened because it is offline. . . but actually it is online

HI All,  I have this database migrated from 2008r2 enterprise to 2016 standard. I had to modify one of my stored procedures in one of SQL 2014 standard to re-point it to the new destination (2016...

View Article


Many entries per second: LOGIN FAILED - NULL SID - Network error code 0x2746

I enabled failed authentication audit logging in SQL server today.  Immediately the log fills with the following entries.  I have spent the day scouring the web trying to figure out what is causing it....

View Article

SQL DB size

Hello, My Production DB size is 700 GB. There is table with the name of A and this table size is 30 GB. I have used SQL truncate command to cleanup data. After table A truncate still DB size is showing...

View Article


Linked server to MySQL Problem

Hi guys,I've a linked server through OleDB to MySQL database , I use it for getting data and write into mysql single table, it works fine but when there are many query transaction it occurs a lot of...

View Article

An attempt was made to send an email when no email session has been established

Hi Team,Am created a one sql job and schedule in locally but am getting bellow error message, please help on this issue.Error: An attempt was made to send an email when no email session has been...

View Article

sql server agent conditional job

Hi Team,Am planning to create a one sql job based on condition.For example: This is my queryselect C1,C2,C3,C4,C5 from table where createdOn > convert(date,getdate())and C1='Value' and C6=1 and C4...

View Article
Browsing all 5123 articles
Browse latest View live


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