Quantcast
Channel: SQL Server Database Engine Forum
Viewing all 15872 articles
Browse latest View live

Any Plain English to SQL translator??

$
0
0

Hi folks,

I am new here. I am trying to add a natural language (English) database interface to my database. So one can simply type what s/he wants to know in English, then the application can translate the English sentence into SQL query against the database. I did a little search online, it seems that MS used to provide this functionality in SQL Server 2000 (called 'English Query'). Unfortunately, English Query discontinued in SQL Server 2005 and later versions. Is there any alternative that can accomplish similar task? Please advice....

Btw, my database is running on SQL Server 2005

Best,

Ethronj


Delayed_durability purpose?

$
0
0

Hi there, I am questioning myself about either use or not use this setting in live..

As per my understanding if you activate this parameter you can reduce the latency when you are writing against the transaction log of the database affected. is it so? I also read that if you have a high proportion of transactions smaller than 60 kb and when you don't have either shared or full flash SSD behind, it could bring you benefits.

How can I figure out the average size of my transactions?

Thanks a lot,

SQL Server 2014 Instructions to create link server to Redshift

$
0
0

Hi,

Thank you ahead of time for any help. I have sql server 2014 32 bit on my machine and trying to create a link server connection to redshift. Below are the steps I took to try and setup these connections:

1. I downloaded both 32 & 64 bit Amazon Redshift ODBC drivers and ran the connection test and both worked.

2. I then use Access database to connect to redshift server and that also worked

Below are the providers i have for my SQL server and have no clue on how to setup the connection to redshift. I have a server string, user name, password, port and database name to log into Redshift. Please any help will be nice.

thank you




Edwin Lopera

Moving Sql 2008 "MS_AgentSigningCertificate.cer" file to a differen drive

$
0
0

We are moving our sql 2008 DB files from drive D to drive E. I noticed that a "cer" file, mentioned in the Title, is also located on Drive D. 

1. What is this file used for?

2. Will moving the cer file to Drive E r (effectively removing it from D) cause any issues?

TIA,

edm2


SQL Server 2012 memory configuration

$
0
0

Hi All,

We have to total 256 GB physical memory on our PROD DB server & We have total 3 DB's with the max DB size is 208978.19 MB.

Currently we have below memory configuration for MS SQL:

Min memory: 64000 MB & Max memory: 216000 MB.

Can you please advise the above memory configuration is correct or is there any changes required?

1. This is dedicated DB server and we have installed DB engine & SSRS. 

2. We have configured DB mirroring from primary DB to secondary DB.

3. OS version: Windows server 2008 R2


Issue in Sql Server 2016

$
0
0

SQL Server Services of 2016 installed on one of our server stops frequently.

When I check SQL Server Error Log, I get following error Msg, Error: 17311, Severity: 16, State: 1.

SQL Server is terminating because of fatal exception c0000005. This error may be caused by an unhandled Win32 or C++ exception, or by an access violation encountered during exception handling. Check the SQL error log for any related stack dumps or messages. This exception forces SQL Server to shutdown. To recover from this error, restart the server (unless SQLAgent is configured to auto restart).

SQL Server instance unreachable

$
0
0

SQL Server instance was unreachable(down) at 2.00Pm and a dump was created at 2.01pm.

I have observed  "Warning: Failure to calculate super-latch promotion threshold".

We haven't observed any blockings or long running queries during that time.There is no information at SQL log also.

Could somebody help me to find out the root cause for the server down?



Problem to dbmail

$
0
0
Hi,
I get
Msg 14624, Level 16, State 1, Procedure sp_send_dbmail, Line 260
At least one of the following parameters must be specified. "@recipients, @copy_recipients, @blind_copy_recipients".


but I already have put parameters to @recipients, @copy_recipients, when calling sp_send_dbmail. Why?

Many Thanks & Best Regards, Hua Min


SQL server service stop working, receive error ex_handle_except encountered exception C0000005 - Server terminating

$
0
0

Hello ,

This issue is only after reboot of the server. When the SQL server service stop and we started it again this do not happen untill the next reboot. It stop working around an hour after the reboot.

After debugging SQLDump0032.mdmp file we receive this:

Report for SQLDump0032.mdmp
Type of Analysis Performed Crash Analysis
Machine Name DERAGDBP03
Operating System Windows Server 2008 R2 Service Pack 1
Number Of Processors 24
Process ID 1992
Process Image E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe
System Up-Time 01:08:14
Process Up-Time 01:07:34
Thread 0 - System ID 8220
Entry point MSO+23234
Create time 7/7/2016 6:06:02 PM
Time spent in user mode 0 Days 0:0:0.109
Time spent in kernel mode 0 Days 0:0:0.624
Full Call Stack
Function   Arg 1   Arg 2   Arg 3   Arg 4 Source
KERNELBASE!RaiseException+3d   00000000`04483158   00000000`00000000   00000000`00000000   00000000`00fbda36
sqlservr+2bc0aac   00000000`00000000   00000000`00000000   00000000`00fbda36   00000000`02f84598
sqlservr+35f3158   00000000`00000000   00000000`00fbda36   00000000`02f84598   000042ac`00000000



Exception Information
In SQLDump0032.mdmp the assembly instruction at sqlservr+20f4598 in E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe has caused an unknown exception (0x000042ac) on thread 0
Module Information
Image Name:E:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Binn\sqlservr.exe Symbol Type:None
Base address:0x00000000`00000000 Time Stamp:Wed Aug 20 00:32:24 2014
Checksum:0x00000000`00000000 Comments:
COM DLL:False Company Name:
ISAPIExtension:False File Description:
ISAPIFilter:False File Version:
Managed DLL:False Internal Name:
VB DLL:False Legal Copyright:
Loaded Image Name:sqlservr.exe Legal Trademarks:
Mapped Image Name: Original filename:
Module name:sqlservr Private Build:
Single Threaded:False Product Name:
Module Size:60.13 MBytes Product Version:
Symbol File Name:sqlservr.exe Special Build:&


Please advise what could make the SQL service stop working?

     

Thank you.


Unrecoverable error occurred during Flush operation

$
0
0

We have been backing up our on premise sql instances (3 different servers) to various azure storage accounts for the past several months without issue. 

Starting on July 14th, we have been increasingly unable to complete backups with the following message recorded in the logs:

A nonrecoverable I/O error occurred on file "https://<removed>.blob.core.windows.net/sql-full/<removed>.bak:" Backup to URL received an exception from the remote endpoint. Exception Message: Unrecoverable error occurred during Flush operation.  Msg 3013, Level 16, State 1, Server <removed>, Line 1  BACKUP DATABASE is terminating abnormally.  Outcome: Failed  Duration: 00:03:05  Date and time: 2016-07-17 03:33:05   

The error is occurring on full, differential and log backups.

We are using SQL 2014 standard (sp 2) running on fully patched Windows 2012 R2 servers. At the point the errors started happening we had only installed sp 1, but have since installed sp 2 to see if it would help. 

We generally use Ola Hallengren's backup scripts executed via sql jobs, but we have also tried manually backing up directly to azure via SSMS and that has failed as well.

We've searched around but have been unable to find any solution. 

Any suggestions on how to resolve this issue would be greatly appreciated.

fn_trace_gettable can read an active trace file!

$
0
0

Has that always been true? I was under the impression you had to stop the trace to read it, but I just tried it in SQL 2014 and it seems to read just fine even active.

Thanks,

Josh

Login auditing

$
0
0

Hi there,

how can I get who is logging to my server both successfully and failed? It is authorized domain users from different AD and before decommission some of them (not being used but I am not totally sure) need facts.

I  know that you can enable on Security page on Server Properties(SSMS) but I don’t find the .log file.

\Program Files\Microsoft SQL Server\MSSQL12.instace1\MSSQL\Log  ??

Thanks in advance


Reclaiming data file free space after deleting a large amount of data

$
0
0

Hello all,

My database size is 72GB. I have deleted large amount of data.after deleted data the database size is 72GB.

How to Reclaiming data file free space after deleting a large amount of data .please suggest me.Please see the database current size and available space.please help me.

Unable to start execution of step 1 (reason: Error authenticating proxy

$
0
0

Dear All,

I have SSIS job which I'm running through proxy but I keep receiving the following error even though there is nothing wrong with the 'password', is there anything else I can check please?
Unable to start execution of step 1 (reason: Error authenticating proxy 'proxy name', system error: Logon failure: unknown user name or bad password.).  The step failed.

Thank you in advance!

Performance issues on BO

$
0
0

Hi,

We have SQL server DB which get refreshed with LIVE db every night and this restored DB is used for business objects reporting purposes, we are having performance problems some reports are running over 8 hours. 

First place I looked at was indexing and found some missing indexes on heavy used tables and built them and some reports are OK but still having performance issues. 

Next was looking at memory problems, then we increased ram to another 6GB from 28 to 34GB. But when I see plan cache on the server it almost empty for restored DB.

We have some additional index included in part of restore process. 

Just to confirm does restoring the DB clears all plan cache?

Is it causes any proformance problems? Or should I safely exclude this from my troubleshooting list?

Any help appreciated.

Regards, 


satwick


Update statistics for File Table

$
0
0

Hi, 

I have a Database with Filetable size of 20GB. The Update Statistics maintenance task is taking more than 4 hours without any result (no Success nor Failed) for updating the statistics of the FileTable. 

Why the Update statistics for filetable takes so long ? We are performing the Update Statistics for FileTable separately. Is there any recommendations for updating the Statistics for FileTable. 

which time interval or snapshot db. backup captures

$
0
0

hello Gurus,

my backups are running 90 - 120 min.

Does backup captures changes after the beginning of the backup.


gene

Which ver of SQL should I download for Win 10

$
0
0
I have a Dell with Wind 10 x64 bit plenty of memory and disk space. I am confused as to which version of SQL do I download? I need it for some proprietary software to run.

Clarify the purpose of column "buckets_max_length" in DMV sys.dm_os_memory_cache_hash_tables, and why it isn't used to calculate cache thresholds

$
0
0

In this article describing dmv sys.dm_os_memory_cache_hash_tables, column "buckets_max_length" is defined to mean "Maximum number of cache entries in a bucket." 

From this description, I would infer that the threshold for desired maximum number of entries in a particular cache would be calculated as (buckets_count * buckets_max_length). Following this logic, running the following query on my system yields the results shown below:

SELECT  name as cache_name
      , buckets_count as buckets
      , buckets_max_length as entries_per_bucket
      , (buckets_count * buckets_max_length) as max_entries_for_cache
FROM    sys.dm_os_memory_cache_hash_tables
WHERE   [type] IN ('CACHESTORE_SQLCP', 'CACHESTORE_OBJCP', 'CACHESTORE_PHDR');

--  RESULTS  --
cache_name     buckets   entries_per_bucket  max_entries_for_cache
Object Plans   40009     4                   160036
SQL Plans      40009     7                   280063
Bound Trees    4001      24                  96024

However, in this article on SQL Caching, the description given in the section titled "Local Memory Pressure" regarding the calculation of an upper boundary on cache entries is as follows:

"In addition to memory pressure occurring when the total amount of memory reaches a particular limit, SQL Server also indicates memory pressure when the number of plans in a store exceeds four times the hash table size for that store, regardless of the actual size of the plans."

This definition is re-referenced in this recent hotfix article for SQL Server, where it is stated:

"The maximum number of entries that a plan cache can hold is four times of the buckets count."

While this definition is consistent with my assumption above for the "Object Plans" cache, which has a buckets_max_length = 4, it is inconsitent for other caches with other defined max_length values, leading me to question my very sanity. :)

Can someone help me clear up the real intended meaning AND internal use of buckets_max_length? I'd like to be able to detect when internal caches might be under pressure due to too many entries or to much space used, and getting a clear understanding of this dmv would help.


Apply SQL Server 2008 R2 SP3 on passive node and getting an error message "The SQL Server failover cluster instance 'SQL_Report' was not correctly detected"

$
0
0

Trying to apply the SQL Server 2008 R2 SP3 on passive node but getting an error message that "The SQL Server failover cluster instance 'SQL_REPORT' was not correctly detected. The instance was discovered on the local node but it was not found to be active. To continue, confirm the state of the instance installed on all applicable nodes of the cluster and the state of the failover cluster resources".

Instance SQL_REPORT overall summary:
  Final result:                  The patch installer has failed to update the shared features. To determine the reason for failure, review the log files.
  Exit code (Decimal):           -2068578304
  Exit facility code:            1204
  Exit error code:               0
  Exit message:                  The SQL Server failover cluster instance 'SQL_REPORT' was not correctly detected. The instance was discovered on the local node but it was not found to be active. To continue, confirm the state of the instance installed on all applicable nodes of the cluster and the state of the failover cluster resources.
  Start time:                    2016-07-19 16:23:54
  End time:                      2016-07-19 16:24:51
  Requested action:              Patch

This is a Windows Server 2008 r2 and I successfully apply the 2008sp3 on the node two and failover the resources but this one is giving me the errors. 

Viewing all 15872 articles
Browse latest View live


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