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

Windows user via group membership and sysadmin role for currently connected user

hello,I am trying to get a list of currently connected user who has sysadmin role. For the Windows login who doesn't have their logins created on the server but are part of Windows group, there seem to...

View Article


how to make .bak up file of a database in SQL server 2008 R2 ?

Greetings,I want to know what is the procedure to take .bak file of a database of sql server 2008 R2 and also how to restore that file , without running any sql query.

View Article


SQL 2008 R2 to SQL Server 2008 degrade passible

Can I install SQL 2008 on SQL 2008 R2 server as   I need 2008 only.  There is no data in the system

View Article

SQL Server 2012 Database Restore Checks

Hi,I have just restored a SQL Server 2012 Database. It's the first time I have done so. I can select data from the tables which suggests it's been successful.The final output message is 'RESTORE...

View Article

spid processes hang

the SQL server 2008R2 is the backend of an application. every now and then there are spids which are shown as not doing anything in activity monitor (do not have any status in the activity monitor -...

View Article


'Could not allocate space for object 'dbo.SORT temporary run storage'

Hello all,I’m trying to transfer/transform some data from one table to another, both on the same database. The source table holds 92M records.To do so I'm using the next statement: INSERT INTO...

View Article

Continue backup on error

Gurus,I know I should not have to continue back up on error. But there is the option to continue backing up even if an error is encountered.Can you give me instances where I may use continue on error...

View Article

How to schedule job to run on the 6th business day

Good Morning ,I have a job that is scheduled to run once a month. Its a .bat file that used the OS (CmdExec) to execute the file, which in turns executes the Package. Now i want to run it on the 6th...

View Article


A network-related or instance-specific error occurred while establishing a...

One of my friend using the sap based application. he is trying to connect the sql database server from sap application and he is trying to connect the sql server remotely from sap client which is on...

View Article


How to find the effective recovery model of a database ?

Hi,When a database is in full recovery model, but it hasn't a full backup, it works as a simple recovery model.So, the question : Is there a query to identify these cases  ? Identify the effective...

View Article

Differential Backups Failing

The differential maintenance plan is failing with this error message  "Cannot perform a differential backup for database "Search_Service_Application_CrawlStoreDB_e9b6abf77def428095e4156c66fb4e06",...

View Article

Image may be NSFW.
Clik here to view.

question regarding index properties for an index

Hi,per the topic.  This is a SQL server 2012 Sp1 with CU4 I was working on optimizing a query and was looking at the index property for a table, in the fragmentation page, I see 0 for everything.  This...

View Article

Get Table Data Output into a text file

Hi Experts,I have below code. Which is taking data from 2 tables and archiving it to some archive database. After archived. Its deleting data from the production table for the specified data range... I...

View Article


SQL Server 2008R2 apply Service Pack2

Hi,How I can apply service pack without backup databases on my instance ?Please Help me.

View Article

Schedule a job to run on specific day

Hi all,I want to schedule a job in SQL agent to run only after 7 days starting from the 28th of every month.Thanks in advance.

View Article


Logic Reads ... counter makes no sense?

How it is possible that selecting less data causes more logical reads?SET STATISTICS IO ON go SELECT [id]      ,[filler1]  FROM [Test1].[dbo].[Tab1]  Where id = 1Table 'Tab1'. Scan count 1, logical...

View Article

Impact of trace flag 272 on SQL Server 2012 apart from disabling identity jump

I am upgrading my application's SQL Server from 2008 R2 to 2012.As discussed in the below URL I am able to see the Identity jump after I upgrade and the server is restarted.Now since I cannot afford...

View Article


sql server 2012 - cluster and non cluster indexes

Cluster indexes and non cluster indexes takes extra space right? Is it ok to have only 5/6 non-cluster indexes on tables (not a single cluster index) ?? Will it take more extra space?I have columns...

View Article

When to do Index Maintence

Hi, how i monitor/manage/control when is index need to be created for reporting stored procedure before end user complained 'time out' ?PS: The amount of data is increasing everyday.

View Article

Avg. Disk Queue Length

Hi techies, I want your expert comments on the below out put of Avg. Disk Queue Length counter of a server.MachineName Date Average Minimum Maximumservername8/2/2013 3:39000servername9/4/2013...

View Article
Browsing all 12963 articles
Browse latest View live


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