Hello all! Yes, again it has been a while!
Life is sometimes a wondrous journey.
My latest obsession has been 8-bit computers! Building them from scratch.
Take a look at my Z80 based computer. This has been a lot of fun!
Hello all! Yes, again it has been a while!
Life is sometimes a wondrous journey.
My latest obsession has been 8-bit computers! Building them from scratch.
Take a look at my Z80 based computer. This has been a lot of fun!
An error occurred while evaluating the function.
Communication Link Error.I also received this error when in SQL Server Management Studio, connected to the Integration Services on that server, and tried to browse thru the package store to a package.
Shared Memory Provider: No process is on the other end of the pipe.
peace
-- =============================================
-- spwRebuildTableIndexes
--
-- Author: Bob Pearson
-- Create date: 2013-03-14
-- Description: Rebuilds specified index or all indexes on a table
--
-- Updates
-- Date Who What
-- -------- ---- ----------------------------
--
-- =============================================
ALTER PROCEDURE [dbo].[spwRebuildTableIndexes]
@TableName varchar(100),
@IndexName varchar(100) = null
AS
BEGIN
Set NOCOUNT ON;
Declare @SQL varchar(max) = '';
if @IndexName is not null
BEGIN
Select @SQL = 'Alter Index ' + @IndexName + ' on ' + @TableName + ' REBUILD;';
Execute (@SQL);
print @TableName + '.' + @IndexName + ' Rebuilt...'
Return;
END
Declare cur cursor for
Select i.name
from sys.indexes i
inner join
sys.objects o
on i.object_id = o.object_id
where o.name = @TableName and o.type = 'U'
for read only;
Open Cur;
Fetch Next from Cur into @IndexName;
While @@FETCH_STATUS = 0
BEGIN
Select @SQL = 'Alter Index ' + @IndexName + ' on ' + @TableName + ' REBUILD;';
Execute (@SQL);
print @TableName + '.' + @IndexName + ' Rebuilt...'
Fetch Next from Cur into @IndexName;
END
Close Cur;
Deallocate Cur;
END
Create Table ATable
(
ID int not null identity(1,1)
...
Create Table ATable
(
ID int not null identity(-2147483648,1)
...
An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "Operand type clash: int is incompatible with date"The quick fix to this is to change the parameter type in the stored procedure to a varchar(50).
Select * from sys.dm_exec_requestsThis query returns information about every request that the SQL Server is executing.
ALTER INDEX REORGANIZEI have four large databases that I have to shrink when they are copied to the development. These can take quite a while, so I use this query to monitor status.
AUTO_SHRINK option with ALTER DATABASE
BACKUP DATABASE
DBCC CHECKDB
DBCC CHECKFILEGROUP
DBCC CHECKTABLE
DBCC INDEXDEFRAG
DBCC SHRINKDATABASE
DBCC SHRINKFILE
RECOVERY
RESTORE DATABASE
ROLLBACK
TDE ENCRYPTION
One of the extension parameters is not valid for the following reason: you do not have permission to modify the value for the "Comment"The users all have the browser role, which allows Manage Individual Subscriptions, but this is not enough. There is a restriction in that setting that disallows the user from setting the comment field.
Message: 'firstChild' is null or not an objectand the subscription error is:
Line: 640
Char: 13
Code: 0
URI: http://Server/InternalReporting/js/ReportingServices.js
Failure sending mail: Default value or value provided for the report parameter 'ReportParameter1' is not a valid value. Mail will not be resent.
or tbl.Field in (N''0100'',N''1002'',N''1201'',N''1202''....This snippet came right out of profiler with no editing...
select * from qsys2.systables where table_type='T';
Beginning with SQL Server 2005, the server reports the duration of an event in microseconds (one millionth, or 10-6, of a second) and the amount of CPU time used by the event in milliseconds (one thousandth, or 10-3, of a second). In SQL Server 2000, the server reported both duration and CPU time in milliseconds. In SQL Server 2005 and later, the SQL Server Profiler graphical user interface displays the Duration column in milliseconds by default, but when a trace is saved to either a file or a database table, the Duration column value is written in microseconds. - Microsoft Books Online