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

Move System databases

$
0
0

Dear All,

I wanted to find out a way of moving system databases onto different drives, I wanted to know if it is any different from moving user databases. I have the following script which does the user databases Move but I need to find out exactly what the difference are for System databases e.g. "Master database" requires any special procedure as the database server would not be able to start without it etc?

Thank you in advance!


Cluster NT Authority\SYSTEM using Named Piped login

$
0
0

I have a SQL cluster 2012 on windows 2012.

I checked in the sql errorlog found an entry about NT Authority\SYSTEM login using Named Pipe.

I have already make the SQL server and SQL agent service to use domain account to logon as service.

Why there is still something using NT Authority\SYSTEM ?

now I am not abled to disable named pipe protocol, or DIsable  NT Authority\SYSTEM  in SQL login.

anyone has the idea ??

Restarting Of SQL Server

$
0
0

Dear Team,

I know its a silly question but i should know it.

What is the best practice to restart SQL server either by services.msc orConfiguration manager? and what is the reason behind it? Internaly what happens when we restart it by services.msc?

Appreciate your input..

Regards

ChetanV

How To Solve MS SQL server 2012 Temp DB full occupy total C Drive

$
0
0

Dear friends 

I am Using MS SQL server 2012 ,Temp DB automatically grow and entire "C" drive occupying Temp DB after that i restart Server 20 GB Free after one hour again C Drive Full.Kindly share Permanent solution  .

query to show tempdb file usage

$
0
0

Does anyone have a query that shows how much activity each file in the tempdb is getting?

I understand the files should be the same size if the round-robin is going to work properly, and ours have not been.  We're going to try to fix that.  But I wonder if there's a query I can run to illustrate the problem.

Thanks,

Josh

Getting Error in Sp_readerrorlog

$
0
0
Hi All,

While trying to execute sp_readerrolog proc on sql server 2012 , i am getting following error.

Msg 22004, Level 16, State 1, Line 0
Failed to open loopback connection. Please see event log for more information.
Msg 22004, Level 16, State 1, Line 0
error log location not found

What may be the possible reason and how to fix it?
 

-----------------
Aditya Rathour


Column cannot be converted between unicode and non-unicode string datatypes

$
0
0

Need to run a db export from SQL Server 2012 to Access (can be 2003 onwards). on the export when creating the Access tables in the blank mdb file (or accdb) it creates any varchar corresponding column to a Short Text datatype in Access which gets actually converted to nvarchar. so the export fails with "Column <name> cannot be converted between unicode and non-unicode string datatypes". I tested this in SSDT 2013 as well, I know that I can add a data conversion //or derived column (and create the SSIS package) but can it not be some something more like out of the box? I run into this issue when run the export from SSMS (Management studio)

Thank you

An error 1069 - )The service did not start due to logon failure) occurred while performing this service operation ...

$
0
0

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 none expiring domain credential. I understand that this problem only happens when the profile being used by the SQL Servr Agent has changed (password change). What puzzles me is that the login is A ok and no changes has been made to it's password.

 

We always resolve this problem by changing the login used in the SQL Server Agent to local and after that, returning it back to it's original domain login. Unfortunately, we cant always do this everytime something goes wrong.

 

Can anyone please help us shed a light on this? We're using SQL2k with SP3a. Thanks!

 

Error:

An error 1069 - )The service did not start due to logon failure) occurred while performing this service operation on the SQLServerAgent service.

 

 

Regards,

Joseph


Max memory setting on SQL Server 2014

$
0
0

Hi all of you,

is it possible that in SQL Server 2014 is not necessary restart the server when you change memory settings?

I say that because I am watching from taskmgr how sqlservr.exe is using right now without restart nothing the new allocated amount of memory

Thanks for any input or hint related to,

Enric

Intellisense is disabled over and over again

$
0
0

hi all, it is a known issue, isn't? Using all the time SSMS 2014 and happen very often.

do you have any trick for solve this, it's annoying overall when you are querying DMVs

Thanks

maximum number of connections in sql server.

$
0
0

Hi All,

When i executed the query to check ConnectionStatus, i got the below output.

why the number of connection are steady on 29000.Even if there is no activity.

ConnectionStatus(No column name)ConnectionCount
UsedNot Sleeping153
Usedsleeping791
Unusedsleeping29000

Job execution failing due to job owner issue

$
0
0

Hi 

One of my sql agent job started failing with following message : 

Message
The job failed.  Unable to determine if the owner (ABC\XYZ) of job  XXXXXX has server access
(reason: Could not obtain information about Windows NT group/user 'domainlogin', error code 0x534. [SQLSTATE 42000] (Error 15404))

User exists in domain and having and also is a member of local admin group on server.

what may be possible causes and how can be fixed ?

option 1, 4, and 7 for Azure blob storage (WASB[S]) configuration in Polybase

ON DELETE CASCADE Strange behaviour

$
0
0

Hi all,

I've a parent table and several child tables, parent and child are linked by foreign keys, each foreign is "on delete cascade".

I delete 1 row from the parent table and I look at the execution plan, I see, as I expected, that access to the child tables is made with an index seek on the foreign key followed by a nested loop and a table delete (if it is a heap) or clustered index delete (if it is a table with a clustered index).


One and only one of the child tables is accessed in a very bad way, that is with a table scan (48% of the total cost of the whole delete).

and I don't know why!

Notice that:

1) I've updated statistics with fullscan on the foreign key

2) the child tables has 644.000 rows, disctinct values on the foreign key are 623.000 so almost one-to-one

any help is appreciated

SQL Server below normal priority class vs. disabling dynamic priority boosts

$
0
0

I have an interactive application that runs on Windows Embedded Standard 7 (SP1, x64) and uses a local SQL Server Express installation as its database engine.

I have tracked down a performance problem to the SQL Server instance "stealing" too much CPU time from the application: When certain CPU intensive queries are run, the video and audio (!) of my application begin to stutter. We're using DirectShow to play videos, so unfortunately I cannot raise the priority of the threads that are involved in playing the video. (As far as I can tell DirectShow uses thread priority "above normal", i.e. +1, for its audio pump thread. Which IMO is much too low, but as I said, I can't really change that.)

I have found the following ways to fix it:

  1. Run my application with priority class "above normal" and SQL Server with priority class "below normal".
  2. Run my application with priority class "above normal" and SQL Server with priority class "normal" + disable the dynamic priority boosts for SQL Server (SetProcessPriorityBoost).

Theoretically some other combinations work as well (e.g. running my application with "high" + SQL Server "normale" or running my app with "normal" + SQL Server with "idle")... But I don't want to deviate too much from priority class "normal", so those are my preferred solutions.

Question: Which way should I choose? Or, if you have another workaround I could try, I'm up for that as well.


VarBinary(Max) SQL Server

$
0
0
We have an odd situation happening with one of our tables in our database (sql server 2012 Sp1) and I am hoping someone can shed some light on it. This table has 3 columns id(bigint), timestamp(datetime),photo(varbinary(max). This table is part of transactional replication so it also exists in our history database (apart from operational). Both databases are on the same server. We have a nightly clean-up job that removes old data from both operational and history database. This table never has more than few thousand records (in operational database) during the day. Once the clean-up finishes and indexes are rebuild, the unused space from this never gets returned to OS. Next day when new data comes in, instead of using that unused space, table grows in size. When we look at the free space available on the data files we don't see anything available (not that we shrink our data files but just to give an idea). We have run cleantable command couple of times to reclaim this unused space but is this the best way to recover space? Our concern is that if we don't run cleantable command on some type of a schedule, no matter how much free space we have on the hard drive it will always fill up. Any thought or suggestions will be appreciated.

Possibly paths to upgrade from SQL Server 2008 to Sql Server 2014

$
0
0

Dear all,

Does Microsoft provides some tool where you can input one SQL flavour as a source another SQL flavour as a target
and it inform you if possible upgrade?

Thanks in advance,

resource governor 2014 restrict user

$
0
0

Hi

Does any one know if it is possible to use resource governor 2014 to restrict resources used by a user query?

Which is the best stragety for maintenance tasks in a SQL 2014 Always On?

$
0
0

Dear all,

All the databases are in the same AG both primary and secondary replicas.

Availability mode: syncronous

SQL flavour is 2014 EM

 

Well, suppose that I am trying to turn assumptions into facts and get the squaring the circle. :-)

 I’ve been thinking over our model I have to come the conclusion:

 

-Define on weekly basis rebuild/reorganize tasks on the most important databases

-Define on monthly basis maintentance stuff for non user databases (master, tempdb, model..) and for small databases for auditing (almost not in use)

 

The script for do that is clear for me: classical script where according % defragmentation level is applied REBUILD or REORGANIZE using offline when necessary (Lob datatypes). After this script never update statistics. is that correct?

 

Must I update statistics after REBUILD? What does happen with the statistics for the indexes?

My other concern comes how schedule that keeping in mind the following schema:

 

Every hour is performed a backup log in both nodes. Last time, reindex job tasks take more than hour...

Currently after reindex job I have onebackup log to NUL plus one shrink for the LDF.

I think is a bad practice overall for the shrink.

Thanks indeed for your comments and hints on that, I appreciate your time

Enric

 


Always getting same SQL Log messages

$
0
0

Dear all,

When nightly backups are performed, in the same minute always see:

I/O was resumed on database xxxx. No user action is required.

I/O is frozen on database xxxx. No user action is required. However, if I/O is not resumed promptly, you could cancel the backup.

suppose does not hurt the peformance an stability of the server, normal messaging?

Viewing all 15872 articles
Browse latest View live


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