Quantcast
Channel: SQL Server Database Engine forum
Viewing all 6624 articles
Browse latest View live

What is wait type UCS_SESSION_REGISTRATION?

$
0
0

On one of my SQL 2012 servers I see this wait type is responsible for very high waits - often as high as 60% of the wall clock time. What exactly does it represent? I can find no documentation on it anywhere.

Full SQL version is 11.0.3513. That's 2012 SP1 with security KB 3045317 applied.


Chuck


Moving Central Management Servers (Registered Servers)

$
0
0

Hi, 

We have all our SQL servers registered in "Central Management Servers" (CMS) in an instance that is due to be decommissioned.   What would the simplest way of moving this CMS to a new instance, is there any way of doing this so that users are unaware and don't have to do anything? It took a while to get people using this central repository and any "inconvenience" and they will be back using their own registered servers. 

Also, as I understand it users need to be members of the ServerGroupReaderRole (msdb) role in order to access this CMS.  This is a bit of a pain and I would like anyone who has SSMS installed to have this role/right by default, what's the simplest way to do this? 

Any suggestions? 

Thanks 

Performance issues after upgrading to 2014

$
0
0

Hello,

We upgraded a dev database from sql server 2012 sp2 to 2014 (o/s is Windows 2008r2 sp1).  We are seeing bazillions of recompiles which kill our memory, and the related semaphore waits.  Apparently something changed with regard to variables in 2014?  Is there a fix for this?


Dianne

SQL Server Windows NT 64 bit - very high memory usage - Have to restart server every 18 hours - please help.

$
0
0

Hi there,

On our newly configured SQL Server Windows NT 64 bit - very high memory usage show up.
We have to reboot it to get it to normal (like to 10% RAM) - RAM usage grows continuously - and in about 18 hours it reaches 95% and our website slows down by a great margin. We reboot the server to get it back to normal and so on.

During such outage I ran ---- Select * from sys.dm_exec_requests ----- and result is here.

If I can provide any more information please let me know.

Thanks so much for help.

Alwayson To impove the lock and block

$
0
0

Hi,

we have a reporting job that will query the mainDB and do so come calculation and insert into reportingDB, there are a lot of blocking and performance issue when it query  the mainDB so we have plan to read the secondary replica and do the processing there later to insert back into primaryDB (reportingDB).. for this we have implemented linked server but it gets  timeout, I do not want to change the remote query timeout on server level so is there anyway to do this,

Any one making use of secondary replica to do get the data by job?


Thanks


Best Regards Moug

not able to shrink the log file

$
0
0

Hello Experts,

I am trying to shrink the log file as it is eating my disk space. increased to 100GB.

I am trying with below queries but no luck. could you please suggest me on this.

message after running the query

"Cannot shrink log file 2 (mydatabase_log) because the logical log file located at the end of the file is in use.

(1 row(s) affected)
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
"

(1)----------

use mydatabase

alter database mydatabase set recovery simple with no_wait

dbcc shrinkfile(mydatabase_log,1)

alter database [mydatabase] set recovery full with no_wait

(2)--------------
USE mydatabase;
GO
-- Truncate the log by changing the database recovery model to SIMPLE.
ALTER DATABASE mydatabase
SET RECOVERY SIMPLE;
GO
-- Shrink the truncated log file to 1 MB.
DBCC SHRINKFILE (mydatabase_log, 1);
GO
-- Reset the database recovery model.
ALTER DATABASE mydatabase
SET RECOVERY FULL;
GO

----------------

Thanks,

Prasad

Changing ANSI_PADDING on a table

$
0
0

Hi,

I have a question relating to the ANSI_PADDING setting on some existing tables in a SQL Server 2008 R2 database I am working with.

When I generated the tables originally I basically programmatically created them by building CREATE scripts within my code. Since I did not explicitly set ANSI_PADDING to ON all these tables they seem to have been created with ANSI_PADDING as OFF. Some of these tables, which I now need to add columns to, contain varchar(n) and varbinary(n) columns. When I try to alter the tables through Management Studio, SQL Server gives me a warning: "One or more tables have ANSI_PADDING 'off' and will be recreated with ANSI_PADDING 'on'" - this seems to be generated by the ALTER statement which by default sets ANSI_PADDING to ON. Another iteration of the same warning - "Columns have different ANSI_PADDING settings. New columns will be created with ANSI_PADDING 'on'".

From what I read regarding ANSI_PADDING it seems ON is definitely the way to go.

I just need to know if changing the value may result in any of the existing data in the table to be changed or may have any other unintended side effect, as this may cause problems for me.

Riaan


HOW TO SOLVE MULTIPLE ROWS RESULT FROM INNER JOIN QUERY

$
0
0

i have 3 tables:

 TABLE [dbo].[Tbl_Products](
[Product_ID] [int] IDENTITY(1,1) NOT NULL,
[Product_Name] [nvarchar](50) NOT NULL,
[Catagory_ID] [int] NOT NULL,
[Entry_Date] [date] NOT NULL,
[User_ID] [int] NULL,
[Barcode_Line] [nvarchar](max) NULL

======================

 TABLE [dbo].[Tbl_PurchaseHeader](
[purchaseOrder] [int] NOT NULL,
[ProductId] [int] NOT NULL,
[SupplierId] [int] NOT NULL,
[CatagoryId] [int] NOT NULL,
[StockId] [int] NOT NULL

=======================

TABLE [dbo].[Tbl_PurchaseDetails](
[PurchaseOrder] [int] NOT NULL,
[BuyPrice] [numeric](18, 3) NOT NULL,
[SellPrice] [numeric](18, 3) NOT NULL,
[TotalPrice] [numeric](18, 3) NOT NULL,
[AllPieces] [int] NOT NULL,
[AllPieceBoxes] [int] NOT NULL,
[BoxesNo] [int] NOT NULL,
[BoxBuyPrice] [numeric](18, 3) NOT NULL,
[BoxSellPrice] [numeric](18, 3) NOT NULL,
[PiecesInBox] [int] NOT NULL,
[BuyDate] [datetime] NOT NULL

=============================

am using this query to get ( Product name from tbl_products , Buy Price - Total Price- Total Quantity from Tbl_Details )

but am getting a multiple result if the order purchase has more than 1 item :

SELECT DISTINCT B.Product_Name,A.AllPieceBoxes,
A.BuyPrice,A.TotalPrice,A.BuyPrice
FROM
Tbl_Products B INNER JOIN Tbl_PurchaseHeader C
ON C.ProductId=B.Product_ID INNER JOIN Tbl_PurchaseDetails A
ON A.PurchaseOrder=C.purchaseOrder
WHERE A.PurchaseOrder=3


SQL Server 2008 R2 Database Copy - Fails with "multi-part identifier [...] could not be bound"

$
0
0

Hi,


I'm trying to use the Tasks/Copy Database function to create a copy of quite a large (by our standards, at least) database. the copy runs OK for a while and then fails with the following error in the log:


OnError,PLRETSQL01V,PLRE\svc_tst_plretsql01v,GraceII_OSCAR_UK_Daily_Copy,{357FE1C1-C473-4A3D-B7D0-E534FEE60EC0},{87E65163-55BD-4E6F-AF10-08A051ADB817},03/12/2015 12:20:30,03/12/2015 12:20:30,0,0x,ERROR : errorCode=0 description=The multi-part identifier "dbo.Retrocession.StageTableKey" could not be bound. helpFile= helpContext=0 idofInterfaceWithError={C81DFC5A-3B22-4DA3-BD3B-10BF861A7F9C}


The stack trace below the error doesn't look too helpful:


StackTrace:    at Microsoft.SqlServer.Management.Dts.DtsTransferProvider.ExecuteTransfer()
   at Microsoft.SqlServer.Management.Smo.Transfer.TransferData()
   at Microsoft.SqlServer.Dts.Tasks.TransferObjectsTask.TransferObjectsTask.TransferDatabasesUsingSMOTransfer()
OnProgress,PLRETSQL01V,PLRE\svc_tst_plretsql01v,PLRETSQL01V_PLRETSQL01V_Transfer Objects Task,{05CD9DB6-3F7A-4E70-9A9C-D411B3EA76B2},{87E65163-55BD-4E6F-AF10-08A051ADB817},03/12/2015 12:20:30,03/12/2015 12:20:30,0,0x,Database transfer failed for 1 database(s).
OnProgress,PLRETSQL01V,PLRE\svc_tst_plretsql01v,PLRETSQL01V_PLRETSQL01V_Transfer Objects Task,{05CD9DB6-3F7A-4E70-9A9C-D411B3EA76B2},{87E65163-55BD-4E6F-AF10-08A051ADB817},03/12/2015 12:20:30,03/12/2015 12:20:30,100,0x,Transfer objects finished execution.
OnTaskFailed,PLRETSQL01V,PLRE\svc_tst_plretsql01v,PLRETSQL01V_PLRETSQL01V_Transfer Objects Task,{05CD9DB6-3F7A-4E70-9A9C-D411B3EA76B2},{87E65163-55BD-4E6F-AF10-08A051ADB817},03/12/2015 12:20:30,03/12/2015 12:20:30,0,0x,(null)
OnPostExecute,PLRETSQL01V,PLRE\svc_tst_plretsql01v,PLRETSQL01V_PLRETSQL01V_Transfer Objects Task,{05CD9DB6-3F7A-4E70-9A9C-D411B3EA76B2},{87E65163-55BD-4E6F-AF10-08A051ADB817},03/12/2015 12:20:30,03/12/2015 12:20:30,0,0x,(null)
OnWarning,PLRETSQL01V,PLRE\svc_tst_plretsql01v,GraceII_OSCAR_UK_Daily_Copy,{357FE1C1-C473-4A3D-B7D0-E534FEE60EC0},{87E65163-55BD-4E6F-AF10-08A051ADB817},03/12/2015 12:20:30,03/12/2015 12:20:30,-2147381246,0x,SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

Could someone please give me some tips to help me figure out what's failing here? I've googled the error message (the start of it anyway) along with "MS SQL Server 2008 R2" and "copy database" but I haven't found anything relevant.

Thanks in advance,


Tony Spratt.

Update Statistics with Fullscan, does it cause blocking?

$
0
0

Update Statistics with Fullscan, does it cause Blocking / Locking?

Can we do this while a series of 50 million inserts are running on the table, is the real question.

TEMPDB - DBCC SHRINKFILE Does not free disk space (SQL SERVER 2008)

$
0
0

After a sudden growth of the TEMPDB data file to approximately 66 GB on production environment i have followed the second method available on MS KB (Method 2: Use the DBCC SHRINKDATABASE command) :

https://support.microsoft.com/en-us/kb/307487

However, after issuing the below script to shrink the file it didn't work and the file remains not shrink with the same 66 GB although the used space of the file now is  220 MB and free space is about 65 GB:

use tempdb
   go

   dbcc shrinkfile (tempdev, 'target size in MB')
   go
   -- this command shrinks the primary data file

   dbcc shrinkfile (templog, 'target size in MB')
   go
 

Is there any required actions to be applied prior to running the DBCC SHRINKFILE script ?

Update  :

When we try the SHRINKDATABASE option , one of the temp db files got shrink while the other showed the following message:

DBCC SHRINKDATABASE: Page 1:8477818 could not be moved because it is a work table page.

Regards


How to send mails from SQL Server - stored procedures?

$
0
0

Hi,

I want to know the equivalent of the followingbbwhich is Informix stored procedure :

MAILX -S 'TXIX STORED PROCEDURE FAILED' CSENDEM YEEW MARKM";

in MSSQL server .

How do we send the mail with this message  from MSSQL server stored procedure?

Regards,

Login local server failed after update Windows 8.1 to Windows 10

$
0
0

Yesterday I updated my PC system from Windows 8.1 to Windows 10. I cannot login my local SQL server 2012. But I can work normally remote SQL Server with Microsoft SQL Server Management Studio. The local server information is :

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)(Microsoft SQL Server, Error: 2)

CDC confusion - operation sequence of 3,4,1,2 returned as 1,4 by net changes function

$
0
0
I'm struggling to understand what I'm seeing in CDC's returned data and I wonder if anyone can tell me whether they can make sense of it.

I am seeing the following output from a query directly against the change table for a given primary key value - An update followed by a delete and then an insert, (but the delete and insert have the same start lsn)
__$start_lsn                           __$seqval              __$operation    __$update_mask
-------------------------             ----------------------  ------------ ---------------------------------------------
0x00BE03A8000457990085  0x00BE03A800045799001E  3            0x000000000000000000000000000000001000000000
0x00BE03A8000457990085  0x00BE03A800045799001E  4            0x000000000000000000000000000000001000000000
0x00BE04EA00005BC40059  0x00BE04EA00005B030173  1            0x01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
0x00BE04EA00005BC40059  0x00BE04EA00005B030173  2            0x01FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF 



If I execute a call to get net changes with the arguments 0x00BE03A8000457990085, 0x00BE04EA00005BC40059, 'all', I get the follwing:

__$start_lsn             __$operation    __$update_mask
----------------------   ------------    ------------------
0x00BE04EA00005BC40059  1               NULL
0x00BE04EA00005BC40059  4               NULL        



I'm not entirely sure about this, but I would expect to see just a single update (4) row from the get net changes function, given that the start and end lsn passed as the arguments specify an interval wherein the row existed at both the start and end of the interval. But I'm also confused about the "delete followed by insert" recorded in the change table, especially since both rows have not only the same (natural) primary key value, but also the same surrogate (identity column) value.

My best guess is that something in the system code might be doing weird stuff with identity insert and reusing the same natural key, and that this is confusing CDC. Can anyone clarify what I'm seeing here?

Aggregate (COUNT) query returning incorrect results in SQL Server 2012 CU6

$
0
0

Our production database server is running SQL Server 2012 v11.0.5613.0 (CU6 + MS15-058). Every couple of months, one of our queries gets into a weird state where it stops returning results. I think this is a problem with the query optimizer -- either a bug with the optimizer, or an issue with how it is optimizing the query as-written. I could use some assistance is figuring out which it is, and if there are any workarounds.

While I have a live repro in our production DB right now, I don't have any exact steps for creating an isolated repro. However I'm happy to provide whatever information or traces I can to figure out what's going on.

The query looks roughly like this (in structure, actual names are removed/renamed for readability):

SELECT	COUNT(Field2) AS Rows,
	COUNT(DISTINCT Field) AS Names,
	COUNT(Field2) AS Reviews
FROM( SELECT  * FROM (
	SELECT 	W.Field,
		[... more named fields...]
		C.Field2,
		[... more named fields...]
	FROM (SELECT * FROM vwContent (nolock) WHERE iPublication=@iPublication) C
	INNER JOIN fn (NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL) W
		ON C.Field = W.Field
	INNER JOIN (
		SELECT [KEY] AS Field
		FROM CONTAINSTABLE(tbData, Search, @szSearch)
	) K	ON W.Field = K.Field
)inn
) summary

I find that if I add an OPTION (MAXDOP 1) at the end of the query, then it returns the correct results. Otherwise, it just returns 0 as the count, once the DB gets into this state. If we restart SQL Server, then it does start working, at least for a little while.

Does this sound like any currently known issue with 2012?



Rebuilding Index Online Blocks and Causes Resource Consumption Spikes

$
0
0

I have a large terabyte database with about three tables north of 25 GB in size. The database has an extremely high amount of write transactions happening throughout the day. The tables are heavily fragmented. When I attempt an online index rebuild, there is enough intermittent blocking to cause an outage of the associated application. In addition, the machine's CPU and disk latency skyrockets.

Anyone have any suggestions in how to approach?


Adam

Backup process is still executing even after completion of backup

$
0
0

 Hi

I have a database of 7 TB,  and I normally use sys.dm_exec_requests to track the progress and to understand estimated time to completion of backup. Backup progress is showing 100% but still process is writing to file even after completion of 100%, I would like to understand what it is writing to backup file.

Thanks & Regards

Kalyan


Kalyan Akula

Wrong Results with DateAdd ms

$
0
0

Hi Folks,

Here is a little script that should produce the very last datetime value in the month for a given datetime value.

CREATE FUNCTION [dbo].[fnLastDayOfMonth]
	(
	@DATE datetime   -- Parameter: (2015-12-10 00:00:00.000)
	)
	RETURNS datetime
	BEGIN
		DECLARE @Result					datetime
		DECLARE @Result1			datetime
		DECLARE @Result2			datetime

		--Jump to next month
		SET @Result = DateAdd(m,1,@date)
		--Result here: (2016-01-10 00:00:00.000) OK
		--set to 1st of next month
		SET @Result = Convert(nvarchar(4),Year(@Result)) + Right('0' + Convert(nvarchar(4),Month(@Result)),2) + '01'
		--Result here: (2016-01-01 00:00:00.000) OK
		--subtract 1 ms
		SET @Result1 = DateAdd(ms,-1,@Result)
		SET @Result2 = DateAdd(ms,-2,@Result)
		RETURN @Result1
		--Result here (2016-01-01 00:00:00.000) Should be (2015-12-31 23:59:59.999)
		RETURN @Result2
		--Result here (2015-12-31 23:59:59.997) Should be (2015-12-31 23:59:59.998)
	END

	--SELECT [dbo].[fnLastDayOfMonth]('2015-12-10 00:00:00.000')

If You run the SELECT at the bottom of the script you get the results i have stated in the comments  (of course, to get @Result2 you have to comment the lineRETURN @Result1).

It looks like there is no way to get to 2015-12-31 23:59:59.999

The same happens when I use datetime2.

Can anyone give me a reason for this behaviour (I'm using 2008R2)
Thanks for your help

Roland


It's no problem, it's just the syntax




Cannot restore DB

$
0
0

Hi All,

My DB is apparently corrupted, i cannot restore the DB. We are running Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64) on Windows 2012.

"SQL Server detecto un error de E/S de coherancia logico: suma de comprobacion incorrecta (se esperaba: 0xef36230a, existente 0x6f3b4309). Ocurrio durante la pagina (1:1464) en la base de datos con id 7 ..."

I ran  DBCC CHECKDB, I see in the report:

Resultados de DBCC para 'myDB'.
Mensaje de Service Broker 9675, estado 1: Tipos de mensajes analizados: 14.
Mensaje de Service Broker 9676, estado 1: Contratos de servicio analizados: 6.
Mensaje de Service Broker 9667, estado 1: Servicios analizados: 3.
Mensaje de Service Broker 9668, estado 1: Colas de servicios analizadas: 3.
Mensaje de Service Broker 9669, estado 1: Extremos de conversación analizados: 0.
Mensaje de Service Broker 9674, estado 1: Grupos de conversación analizados: 0.
Mensaje de Service Broker 9670, estado 1: Enlaces de servicio remoto analizados: 0.
Mensaje de Service Broker 9605, estado 1: Prioridades de conversación analizadas: 0.

Resultados de DBCC para 'sys.sysrscols'.
Hay 6510 filas in 116 páginas para el objeto "sys.sysrscols".
Resultados de DBCC para 'sys.sysrowsets'.
Hay 514 filas in 21 páginas para el objeto "sys.sysrowsets".
Resultados de DBCC para 'sys.sysallocunits'.
Hay 535 filas in 25 páginas para el objeto "sys.sysallocunits".
Resultados de DBCC para 'sys.sysfiles1'.
Hay 2 filas in 1 páginas para el objeto "sys.sysfiles1".
Resultados de DBCC para 'sys.syspriorities'.
Hay 0 filas in 0 páginas para el objeto "sys.syspriorities".
Resultados de DBCC para 'sys.sysfgfrag'.
Hay 2 filas in 1 páginas para el objeto "sys.sysfgfrag".
Resultados de DBCC para 'sys.sysphfg'.
Hay 1 filas in 1 páginas para el objeto "sys.sysphfg".
Resultados de DBCC para 'sys.sysprufiles'.
Hay 2 filas in 1 páginas para el objeto "sys.sysprufiles".
Resultados de DBCC para 'sys.sysftinds'.
Hay 0 filas in 0 páginas para el objeto "sys.sysftinds".
Resultados de DBCC para 'sys.sysowners'.
Hay 15 filas in 1 páginas para el objeto "sys.sysowners".
Resultados de DBCC para 'sys.sysprivs'.
Hay 145 filas in 1 páginas para el objeto "sys.sysprivs".
Resultados de DBCC para 'sys.sysschobjs'.
Hay 1343 filas in 24 páginas para el objeto "sys.sysschobjs".
Resultados de DBCC para 'sys.syscolpars'.
Hay 6583 filas in 127 páginas para el objeto "sys.syscolpars".
Resultados de DBCC para 'sys.sysnsobjs'.
Hay 1 filas in 1 páginas para el objeto "sys.sysnsobjs".
Resultados de DBCC para 'sys.syscerts'.
Hay 0 filas in 0 páginas para el objeto "sys.syscerts".
Resultados de DBCC para 'sys.sysxprops'.
Hay 2415 filas in 127 páginas para el objeto "sys.sysxprops".
Resultados de DBCC para 'sys.sysscalartypes'.
Hay 34 filas in 1 páginas para el objeto "sys.sysscalartypes".
Resultados de DBCC para 'sys.systypedsubobjs'.
Hay 0 filas in 0 páginas para el objeto "sys.systypedsubobjs".
Resultados de DBCC para 'sys.sysidxstats'.
Hay 2284 filas in 49 páginas para el objeto "sys.sysidxstats".
Resultados de DBCC para 'sys.sysiscols'.
Hay 2304 filas in 15 páginas para el objeto "sys.sysiscols".
Resultados de DBCC para 'sys.sysbinobjs'.
Hay 23 filas in 1 páginas para el objeto "sys.sysbinobjs".
Resultados de DBCC para 'sys.sysaudacts'.
Hay 0 filas in 0 páginas para el objeto "sys.sysaudacts".
Resultados de DBCC para 'sys.sysobjvalues'.
Hay 2333 filas in 948 páginas para el objeto "sys.sysobjvalues".
Resultados de DBCC para 'sys.sysclsobjs'.
Hay 20 filas in 1 páginas para el objeto "sys.sysclsobjs".
Resultados de DBCC para 'sys.sysrowsetrefs'.
Hay 0 filas in 0 páginas para el objeto "sys.sysrowsetrefs".
Resultados de DBCC para 'sys.sysremsvcbinds'.
Hay 0 filas in 0 páginas para el objeto "sys.sysremsvcbinds".
Resultados de DBCC para 'sys.sysxmitqueue'.
Hay 0 filas in 0 páginas para el objeto "sys.sysxmitqueue".
Resultados de DBCC para 'sys.sysrts'.
Hay 1 filas in 1 páginas para el objeto "sys.sysrts".
Resultados de DBCC para 'sys.sysconvgroup'.
Hay 0 filas in 0 páginas para el objeto "sys.sysconvgroup".
Resultados de DBCC para 'sys.sysdesend'.
Hay 0 filas in 0 páginas para el objeto "sys.sysdesend".
Resultados de DBCC para 'sys.sysdercv'.
Hay 0 filas in 0 páginas para el objeto "sys.sysdercv".
Resultados de DBCC para 'sys.syssingleobjrefs'.
Hay 1726 filas in 13 páginas para el objeto "sys.syssingleobjrefs".
Resultados de DBCC para 'sys.sysmultiobjrefs'.
Hay 1179 filas in 9 páginas para el objeto "sys.sysmultiobjrefs".
Resultados de DBCC para 'sys.sysguidrefs'.
Hay 0 filas in 0 páginas para el objeto "sys.sysguidrefs".
Resultados de DBCC para 'sys.syscompfragments'.
Hay 0 filas in 0 páginas para el objeto "sys.syscompfragments".
Resultados de DBCC para 'sys.sysftstops'.
Hay 0 filas in 0 páginas para el objeto "sys.sysftstops".
Resultados de DBCC para 'sys.sysqnames'.
Hay 97 filas in 1 páginas para el objeto "sys.sysqnames".
Resultados de DBCC para 'sys.sysxmlcomponent'.
Hay 99 filas in 1 páginas para el objeto "sys.sysxmlcomponent".
Resultados de DBCC para 'sys.sysxmlfacet'.
Hay 112 filas in 1 páginas para el objeto "sys.sysxmlfacet".
Resultados de DBCC para 'sys.sysxmlplacement'.
Hay 18 filas in 1 páginas para el objeto "sys.sysxmlplacement".
Resultados de DBCC para 'sys.sysobjkeycrypts'.
Hay 0 filas in 0 páginas para el objeto "sys.sysobjkeycrypts".
Resultados de DBCC para 'sys.sysasymkeys'.
Hay 0 filas in 0 páginas para el objeto "sys.sysasymkeys".
Resultados de DBCC para 'sys.syssqlguides'.
Hay 0 filas in 0 páginas para el objeto "sys.syssqlguides".
Resultados de DBCC para 'sys.sysbinsubobjs'.
Hay 3 filas in 1 páginas para el objeto "sys.sysbinsubobjs".
Resultados de DBCC para 'sys.syssoftobjrefs'.
Hay 468 filas in 7 páginas para el objeto "sys.syssoftobjrefs".

For some tables I see this message:

Resultados de DBCC para 'Operacion'.
Hay 38059 filas in 1368 páginas para el objeto "myTable".

But at the end, shows:

CHECKDB detectó 0 errores de asignación y 0 errores de coherencia en la base de datos 'myDB'.

Can you tell me where is the error? and how can I fix the issue?

Thanks in advance for your help.


Unable to Query Linked Server in SQl Server Agent

$
0
0

Hi Greetings to All,

I have been created a Linked Server which working fine in Query Editor when Executing Manually it is working fine without any errors. But when i am scheduling  same query in the SQl Server Agent as Job it is giving below error. Pls help on this.

Executed as user: ***\Administrator. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "ACTUALCALLHISTORY". [SQLSTATE 42000] (Error 7303)  OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "ACTUALCALLHISTORY" returned message "The Microsoft Access database engine cannot open or write to the file '\\*******\database\dbescape.mdb'. It is already opened exclusively by another user, or you need permission to view and write its data.". [SQLSTATE 01000] (Error 7412).  The step failed.


RehaanKhan. M

Viewing all 6624 articles
Browse latest View live


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