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

RESTORE database [Test] FROM...

While restoring DB, i found this command be executed: What's the meaning of this command RESTORE database [Test] FROM VIRTUAL_DEVICE='VDI_0D684B14-FB1B-4D57-860F-F426EB0C0FDE_0',...

View Article


Same set of SPs executed with Same Parameters, But CPU is Higher in First Set ?

Hi. i executed 4 SPs with 4000 different parameters and obtained average CPU as follows SP 1 - 0.247 SP 2 - 0.235 SP 3 - 0.337 SP 4 - 0.129 The next Day, the same 4 SPs were executed; but CPUs were...

View Article


How to run the query and show the plan?

Hi All, I am on SQL Server 2008. I want to run a query and also see the plan which was used in that exact query run, on sql command prompt (not SSMS). How can I do that? If I do "set showplan_text on"...

View Article

Deadlocks missing information - temp objects?

I am experiencing deadlocks in an application (example below) but the information about these from the management views does not have a lot of information in them. 1. The sql handles have no...

View Article

Sms to mobile phone using SQL server

hello every one        any body please help me how to send SMS through SQL SERVER to mobile phone and how to schedule using sql to send automatically.

View Article


an application open huge number of connections

Hello,   i have an application connected to SQL server 2008 x64 SP2 and open huge number of connection in spite of the medium number of users are really using this connection i took random 5 min it was...

View Article

TSXCache.bin missing

I am working with a 2008 msx and 2005 sp3 tsx.  When attempting to send maintenance plan to tsx I get an error saying the tsxcache.bin cannot be opened.  The file is not there.  I can fake a file of...

View Article

SQL user authtication fails

Dear all, I have SQL express 2008 R2 on which so far I was connecting to it using Windows account. I have install it to support SQL authentification mecanism. Now I need to create a SQL user account to...

View Article


schema does not exist or you do not have permission to use it SQL Server 2012

I created two schemas inside the same database by right-clicking the Security node and selecting New -> Schema.  They are both owned by dbo. In SSMS new query window I am able to create tables...

View Article


Wired problem with index on view - error 1947

Hello all, In AdventureWorks database (SQL 2008, 2012 - no difference) I have a view defined as follows: create view [dbo].[SalesOrderAddressView] with schemabinding as select soh.SalesOrderID,...

View Article

Getting object-id of an object on which a lock just timed out.

I use ODBC API to talk to SQL Server. If SQLExecDirect returns SQL_ERROR, I use SQLGetDiagRec to get information about the error. If SQLGetDiagRec returns a native error of 1222, you know it is a lock...

View Article

Image may be NSFW.
Clik here to view.

Increase Message length of SQL JOB history - SQL Server 2008 R2

Hi friends, I want to know if we can increase the lenght of the message that is shown in the SQL Job History.  There are options to increase the "Maximum job history log size (in rows)" and "Maximum...

View Article

SQL Agent Job is failing due to job has been suspended

Hi All, I am working on Migration Project,  so after installed sql server i restored msdb database and edited maintatince plans with new connection string and when i am trying to run any job i am...

View Article


How can i exclude database(Restore mode) from auditing?

I have databse audit job (having storeedprocedure)which runs every day for auditing the databases(Storedprocedure - Alldatabaseaudit). One of the DB is in restore mode.how can i exclude the database...

View Article

Rebuild Index ONLINE = ON vs DROP/Create index

I came across with the following scenario: The system started to perform very poorly. I checked sys.dm_exec_requests and there were several UPDATE calls waiting on the resource KEY XX:YYYYYYYYYYYYY....

View Article


Crystal Reports growing tempdb

Hi,     I have a crystal report that runs through a scheduling package through a third party runtime.  When the report is run that way it blows the tempdb.  If the developer gives me only the code it...

View Article

Attach Database failing

Hi all, Hope I am posting in the right forum. My operating system is Windows 7 Professional 64-bit. I have Microsoft SQL Server 2008 R2 version 10.50.1617. I have a database mdf file which was made in...

View Article


SqlDependency query notification subscriptions cause row updates to lock...

I'm using SqlDependency to monitor a table for changes.  However, whenever SqlDependency begins monitoring a table, any updates to that table inside a transaction cause the entire table to get locked....

View Article

SQL 2008 R2 Best Practices for Updating Statistics for a 1.5 TB VLDB

We currently have a ~1.5 TB VLDB (SQL 2008 R2) that services both OLTP and DSS workloads pretty much on a 24x7x365 basis. For many years we have been updating statistics (full scan- 100% sample size)...

View Article

SqlDumpExceptionHandler: Process 3920 generated fatal exception c0000005...

  Hi Guys,   How are you. i hope you all are having fun. well i have an issue on one of the production box. Version of the box:  Microsoft SQL Server  2000 - 8.00.2187 (Intel X86)   Mar  9 2006...

View Article
Browsing all 12554 articles
Browse latest View live


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