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

Tempdb log shrinks every time I reboot

$
0
0

I need to set the initial size for tempdb log (what is allocated when SQL first comes up) to 125gb. I've tried setting it with SSMS and T-SQL and when I do, its size increases to 125GB; but, when I reboot SQL the size drops back down to 15gb.

How can I permanently set the initial size of the temdb log file


Either KB2878139 article is included in "SQL Server 2012 SP1 CU9" or Not

$
0
0

The fix for error "Using 'dbghelp.dll' version '4.0.5' "is came in Microsoft in "SQL Server 2012 SP1 CU6" in article KB2878139 .

I am not sure either KB2878139 article is included in "SQL Server 2012 SP1 CU9" or Not. Please check and confirm.


Thanks

Cursor Expression

$
0
0
Is Cursor Expression in Select list  allowed in SQL Server?  

gMSA & SQLServer linked server

$
0
0

Setup - 2 servers each with one instance of SQL Server 2012 standard edition database. The sql service on both server are running with gMSA service account. Added SPN manually for this service for this account. No duplicate SPNs.

Create linked server on server A to Server B. But when testing connection on linked server, it fails with below error

"Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (Microsoft SQL Server, Error: 18456)"

But the same setup work if I change the service account to regular user account.


Thanks

Shom


Shom

Confusion on tempDB

$
0
0

Hi All,

Every time we restart the sql server service we see tempDB recreated, and tempdb will get created as other database get created i.e from model database. But i see i have 4 datafiles in tempdb and model database has only one datafile. only primary file in tempdb is getting created with size of ModelDB?

So my question is while recreating why tempdb is not dropping remaining 3 data files.

And One more example. I created a test table in model db and restarted the SQL server service. I observed that the same table has also been created on tempdb as well.

Please clarify

Thank you !!!!!!!!!


SQL server Procedure stores plan

$
0
0

Hi ,

  While reading "benefits of stored procedure" I found term  in case of stored procedure sql server stores plan and reuse it that's why procedure are more faster than ad-hoc query .

My question is  sql server stores procedure execution plan permanently into database or just Cache the plan till catch memory not face space problem?

 If it stores permanently! where we can see that.  

 


Regards Vikas Pathak


Log file size is huge and cannot shrink.

$
0
0

I have a live database that is published with merge replication and a couple of push subscriptions. I just noticed that the log file has grown to 500GB. The database is in full recovery. We do weekly full backups, daily log backups. I cannot shrink the log file back down to normal proportions. It should only be about 5GB. The file properties show an initial size equal to the current size, I cannot change that number and I don't know why it is so big now? How do I go about shrinking the log file. the normal DBCC shrink and the SSMS GUI to shrink are not doing anything and say there is 0MB space free!!

Snapshot agents are disabled but still run!

$
0
0
So I have merge replication setup. I have a lot of publishers. We only need to refresh the snapshot when we push a new subscriber, rare at best. Or when we add new articles. So I don't want the snapshots to run on a schedule as it occupies too much resources on the server. I've disabled all the agent jobs for the snapshot in SSMS. However, the snapshot are still running automatically for some reason. How do I completely disable the job so it does not run automatically?

where is missing database space?

$
0
0

I have emptied all user objects out of my database however it says that out of 60000.00 MB only 4782.88 MB (7%) is free.

The sum total of all objects in the database is 20MB, what could be using the rest of the space?

Database is in simple mode.

Job history retention

$
0
0

Hi,

I have job history setting like this:

I would like to see keep backup history for long time (this job setup last year). But I can only see job history earliest at 04/17 this year.

Does anyone have idea what happen to this job history? What  process can purge it? Any suggestion will be appreciated.


Import data from access using t-SQL

$
0
0

Hi experts,

I want to import data from various Access tables to SQL server. I want to do it in t-SQL. I DO NOT want to do it using GUI for obvious reason that it would not do it dynamic way. Any help/idea?

ebro


ebro

Scan Density vs Fragmentation

$
0
0

Morning!

I have seen some of the other threads regarding this .. but I am looking for a good explanation for a vendor.  We are running on sql server 2008r2 and we are running scripts that rebuild indexes based on fragmentation levels being higher than 20%.. however the vendor uses some queries using dbcc showcontig  which is showing we have a couple of indexes that even though their fragmentation is very low (5-15%) the "scan density" (which isn't checked as it isn't part of the dmv's to my knowledge) is also very low (in the 30-50%) range.  Can this be normal? We do use file groups with 2 files located on different drives in each group.   Doing a rebuild of the index does "clean" the scan density.. but should this be necessary.. Should I modify the scripts that are using the dmv's for checking for reasons to rebuild indexes to start using the older dbcc showcontig?  I guess I am looking for an "experts" response as to why we shouldn't care about scan density or an explanation to the contrary.   Thank you very much for taking the time to read my post!

Jay

Memory Dump when creating Extended Event

$
0
0
Hi,

I have an unknown problem with SQL Server 2012 SP1.
In my instance that alwaysON configured on , when i create a custom extended event, memory dump exception will occured every 1 minute 
and users cannot connect to server.
But there are 2 extended events that belongs to server instance itself has not any problem and they are working properly.
is there any workaround to this problem?

Recover all sql logins information from crashed sql server(have master db backup file only option)?

$
0
0

sql server crashed and we built another new server and tried to recover all sql logins from old server. only option is we have backup of all system database.

how to recover sql server logins and transfer/create on new server?

Please help.

sql server ERROR..........

$
0
0

Hi,

My name is arun. i am using windows 8 64-bit os and using visual studio 2012, sql server 2012, so when i connect or add sql server database  from visual studio 2012 its giving error "a network related or instance specific error while established connection to sql server ERROR: 56 unable to load the sql user instance.dll from location specified in registry"  please resolve the problem. in sql server 2012 we need to instal sql server management studio. if yes then plz send link for sql server 2012 management studio. plz take it ASAP Basis.

Thank U!!

Arun


xp_logevent

$
0
0

Hi there,

I need to send the content of a specific table (two columns) to the event log. can it be done ? can I do it through an array?

thanks.

Change initial size Log Database

$
0
0

Hi All,

I have the same situation with http://social.technet.microsoft.com/Forums/en-US/e9c58be8-d4f2-4bb9-9cd6-921583f90afe/log-file-initial-size-is-not-changing?forum=sqldatabaseengine but didn't solve my issue. 

If I change the initial size (smaller size), it revert back. When I want to shrink, it said I have 99% available space. But after I execute it, the size doesn't shrink :(

Autogrowth is by MB, not percentage.

Any idea ?


Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Krisna Ismayanto | My blogs: Krisna Ismayanto | Twitter:@ikrisna

Delete 30 days older databases

$
0
0
I am using SQL Server 2005 in my machines. I need to restore databases quite frequently and need to delete after 30 days. I want create jobs to alert me what are the databases are 30 days older and I can delete ? Thanks in advance.

SQL 2008 R2 Backups (Backup Exec) are failing with SQLVDI error

$
0
0
Hi 

We are experiancing Backup failures with SQL 2008 R2 DB with Backup Exec 2012, below are the errors

Event ID 18210: BackupVirtualDeviceFile::RequestDurableMedia: Flush failure on backup device 'MSQ_00__2efc94bd_289f_4866_8dcb_3f3fde91416d_'. Operating system error 995(The I/O operation has been aborted because of either a thread exit or an application request.).

Event ID 1: SQLVDI: Loc=TriggerAbort. Desc=invoked. ErrorCode=(0). Process=1864. Thread=6220. Server. Instance=MSSQLSERVER. VD=Global\ECD_00__2efc94bd_289f_4866_8dcb_3f3fde91416d__SQLVDIMemoryName_0. 

We upgraded the memory from 8 GB to 12 GB, also as per the kb article we registered sqlvdi.dll with the servers, but still have teh same issue

Expect support to correct teh issue

LMS


reclaim disk space after delete an index

$
0
0

Hi ,

I have deleted unused indexes from a history table to reclaim the disk space was allocated for these indexes , yet the size on the disk is the same , any steps I can follow to achieve this would be greatly appreciated..

indexes size is 70 GB

table size is 45 GB , # of rows is above 200 Million

Thanks in advance

 


Viewing all 15872 articles
Browse latest View live


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