Viewing 15 posts - 1 through 15 (of 38 total)
Can you modify the query to use two part naming standard [SchemaName].[ObjectName] and see if that helps?
June 11, 2018 at 7:44 pm
SELECT SUBSTRING(a,0,PATINDEX('%[0-9]%',a)-1) + REVERSE(SUBSTRING(REVERSE(a),0,PATINDEX('%[0-9]%',REVERSE(a)))) AS A
FROM #t
June 11, 2018 at 6:10 pm
What error message did you get when executed sp_dropdistpublisher?
June 7, 2017 at 10:55 am
CREATE TABLE #TempTable
(
ID INT NOT NULL,
Status VARCHAR(10) NOT NULL,
StartDate DATE NOT NULL
)
INSERT INTO #TempTable
(ID,Status,StartDate)
VALUES
(1,'open','01/31/2017'),(1,'IP','03/31/2017'),(1,'cl','05/31/2017')
SELECT TT.ID, TT.Status, DT.EndDate
FROM...
May 31, 2017 at 10:31 am
Have you tried using sys.dm_exec_procedure_stats DMV?
May 31, 2017 at 10:11 am
Did you check in MSRepl_commands and MSRepl_transactions tables in distribution database?
February 18, 2017 at 8:35 am
Have you tried to use program_name column from sys.dm_exec_sessions DMV?
August 26, 2016 at 3:51 pm
If you are using replication stored procedures to replicate then you can temporarily modify the delete stored procedure to not raise an error when records are not found at the...
August 8, 2016 at 1:33 pm
You can use __$update_mask column with sys.fn_cdc_is_bit_set CDC function to find columns which were updated for a particular record.
July 28, 2016 at 2:48 pm
You can try the following query but not sure whether it is the most efficient way of doing it.
SELECT CASE WHEN RowRank = 1 THEN Name ELSE '' END AS...
July 12, 2016 at 12:27 pm
You can also use __$update_mask column with sys.fn_cdc_is_bit_set CDC function to find columns which were updated for a particular record.
July 8, 2016 at 1:47 pm
Backupset table in Dev server will also contain information about backups that were taken on other servers and restored on Dev server.
May 19, 2016 at 10:56 am
''?'' can be used in the SELECT statement to get names of databases.
exec sp_MSForEachDB
'
USE ?;
if exists
(select table_name
from information_schema.tables
where table_name = ''RS_Patient_6'')
begin;
select ''?'' as dbname, * from RS_Patient_6...
April 10, 2016 at 9:14 am
This is not the most efficient way of doing it but it works
SELECT ' USE ' + Name +
char (10) + ' go ' + char(10)
+ ' alter statement '...
September 20, 2010 at 9:14 pm
SELECT * INTO DevTable
FROM ProdTable ----with the use of OPENROWSET()
September 20, 2010 at 7:26 pm
Viewing 15 posts - 1 through 15 (of 38 total)