SQL SERVER LINKED SERVER TO SQL SERVER

USE [master]
GO




/****** Object:  LinkedServer [LEVENT]    Script Date: 16.5.2019 14:00:30 ******/
EXEC master.dbo.sp_addlinkedserver @server = N'LEVENT', @srvproduct=N'2', @provider=N'SQLNCLI', @datasrc=N'BMS_SEMIH', @location=N'LEVENT', @catalog=N'LEVENT'
 /* For security reasons the linked server remote logins password is changed with ######## */
EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'LEVENT',@useself=N'False',@locallogin=NULL,@rmtuser=N'logouser',@rmtpassword='logouser'  

CALCULATE SQL ROWS

/****** Object:  StoredProcedure [dbo].[CALCULATEROWS]    Script Date: 22.01.2019 15:49:46 ******/
-- EXEC [CALCULATEROWS]
SET ANSI_NULLS ON;
GO

SET QUOTED_IDENTIFIER ON;
GO

CREATE PROC [dbo].[CALCULATEROWS]
AS
IF NOT EXISTS
(
    SELECT TOP 1
           1
    FROM INFORMATION_SCHEMA.TABLES
    WHERE TABLE_TYPE = 'BASE TABLE'
          AND TABLE_NAME = '_ROWCOUNTS'
)
BEGIN
    CREATE TABLE _ROWCOUNTS
    (
        TABLENAME VARCHAR(255) NULL,
        OLDROWCOUNT INT NULL,
        NEWROWCOUNT INT NULL
    );
END;

CREATE TABLE #COUNTS
(
    TABLENAME VARCHAR(255),
    ROWCOUNT_ INT
);

EXEC sp_MSforeachtable @command1 = 'INSERT #COUNTS (TABLENAME, ROWCOUNT_) SELECT "?", COUNT(*) FROM ?';

DECLARE @CRSR CURSOR;
DECLARE @TN NVARCHAR(250);
BEGIN
    SET @CRSR = CURSOR FOR
    SELECT TABLENAME
    FROM #COUNTS;

    OPEN @CRSR;
    FETCH NEXT FROM @CRSR
    INTO @TN;

    WHILE @@FETCH_STATUS = 0
    BEGIN

        IF NOT EXISTS (SELECT TOP 1 1 FROM _ROWCOUNTS WHERE TABLENAME = @TN)
        BEGIN
            INSERT INTO _ROWCOUNTS
            (
                TABLENAME,
                OLDROWCOUNT,
                NEWROWCOUNT
            )
            VALUES
            (   @TN,
                (
                    SELECT TOP 1 ROWCOUNT_ FROM #COUNTS WHERE TABLENAME = @TN
                ),
                (
                    SELECT TOP 1 ROWCOUNT_ FROM #COUNTS WHERE TABLENAME = @TN
                ));
        END;
        ELSE
        BEGIN
            UPDATE _ROWCOUNTS
            SET OLDROWCOUNT = NEWROWCOUNT
            WHERE TABLENAME = @TN;
            UPDATE _ROWCOUNTS
            SET NEWROWCOUNT =
                (
                    SELECT TOP 1 ROWCOUNT_ FROM #COUNTS WHERE TABLENAME = @TN
                )
            WHERE TABLENAME = @TN;
        END;

        FETCH NEXT FROM @CRSR
        INTO @TN;
    END;

    CLOSE @CRSR;
    DEALLOCATE @CRSR;
END;

DROP TABLE #COUNTS;
SELECT *,
       (NEWROWCOUNT - OLDROWCOUNT) AS DIFFERENCE_
FROM _ROWCOUNTS
WHERE (NEWROWCOUNT - OLDROWCOUNT) > 0
ORDER BY DIFFERENCE_ DESC;

GO

Sql Query Excel File

USE [master]
sp_configure 'show advanced options', 1; 
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1; 
RECONFIGURE; 
GO 




GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'AllowInProcess', 1
GO
EXEC master.dbo.sp_MSset_oledb_prop N'Microsoft.ACE.OLEDB.12.0', N'DynamicParameters', 1
GO 

SELECT * FROM OPENDATASOURCE('Microsoft.ACE.OLEDB.12.0',
  'Data Source=F:\B.xlsx;Extended Properties=Excel 12.0')...[Sheet1$]

  SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0',
  'Data Source=F:\C.xls;Extended Properties=Excel 8.0')...[Sheet1$]

cmd tarih isminde klasor rarlama

“c:\program files\winrar\rar.exe” a -r d:\logyedek\uCONFIRMATION SERVICE_%time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4% “C:\Users\Administrator\Desktop\logs\*.*”
“c:\program files\winrar\rar.exe” a -r d:\logyedek\cCONFIRMATION SERVICE_%time:~0,2%%time:~3,2%%time:~6,2%_%date:~-10,2%%date:~-7,2%%date:~-4,4% “C:\Program Files (x86)\logs\*.*”

del “C:\Users\Administrator\Desktop\logs\*” /f /q /s
del “C:\Program Files (x86)\logs\*” /f /q /s

boombox wordpress tema feed videos

googledrive\projeler\funnycartoons4u

wp-content/themes/boombox/template-parts/listings/content-stream.php
editle
feed : http://9gagrss.com/feed/ taglıdır

en aşağıya bunu yaz

hide full post
.full-post-show .post-thumbnail .view-full-post {
    display: none;
}
——

Change position of view full post button to outside bottom

.post-list .post.full-post-show .post-thumbnail {
margin-bottom: 47px;
}
.post-thumbnail .view-full-post {
background: transparent;
bottom: -45px;
}
.post.full-post-show .post-thumbnail > a:first-child {
display: inline-block;
width: 100%;
}
.post.full-post-show .post-thumbnail.show-short-media {
max-height: none;
overflow: initial;
}
.post.full-post-show .post-thumbnail.show-short-media > a:first-child {
max-height: 500px;
overflow: hidden;
}
.post-thumbnail.show-short-media .view-full-post {
bottom: -37px;
}
@media screen and (max-width: 767px) {
.full-post-show .post-thumbnail.show-short- media {
max-height: none;
}
.full-post-show .post-thumbnail.show-short-
media >a:first-child {
max-height: 300px;
}
}

----------------
trigger before insert
IF new.post_type='post' THEN 
SET new.post_content = REGEXP_replace(new.post_content,'

*.*', '

');
SET new.post_content = REGEXP_replace(new.post_content,'

*.*', '

');
SET new.post_content = REGEXP_replace(new.post_content,'

*.*', '


');
SET new.post_content = REGEXP_replace(new.post_content,'9ga.com', 'yourwebsite.com');
END IF