Viewing 15 posts - 496 through 510 (of 1,491 total)
https://stackoverflow.com/questions/22448818/backup-a-database-on-a-hdd-with-a-different-sector-size
Also, if you are taking over a server run the following:
SELECT * FROM msdb.dbo.suspect_pages;
Hopefully nothing will be returned.
March 24, 2020 at 11:02 am
Microsoft is depreciating replication to Oracle but Oracle is not.
Goldengate allows for replication to a number of database types. I have no idea about the cost.
March 21, 2020 at 9:31 am
One of today's articles has a script to show columns created with ANSI_PADDING OFF
March 18, 2020 at 3:19 pm
The following suggests it is the ANSI_PADDING setting with CREATE TABLE.
This is interesting. In future I think I am going to alter the first line of my CREATE TABLE scripts...
March 18, 2020 at 3:15 pm
The behaviour of DATALENGTH seems to depend on ANSI_PADDING when the table was created.
All my connections have ANSI_PADDING ON so I have never noticed the difference.
SET ANSI_PADDING...
March 18, 2020 at 2:41 pm
I would be inclined to generate the SELECTS. Something like:
SELECT 'SELECT * FROM ' + TABLE_SCHEMA + '.' + TABLE_NAME +
' WHERE' +
CASE WHEN CREATEDON IS NOT...
March 17, 2020 at 7:47 pm
For varchar, LEN(Area) will give the trimmed length while DATALENGTH(Area) will give the actual length.
For nvarchar, LEN(Area) will give the trimmed length while DATALENGTH(Area) will give the actual length times...
March 17, 2020 at 4:48 pm
-- *** Consumable Test Data ***
CREATE TABLE #t
(
KeyID int NOT NULL
PRIMARY KEY
,UserID varchar(10) NOT NULL
,Amount money NOT NULL
);
INSERT INTO #t
VALUES (1, '12', 1.00)
,(2, '09', 1.00)
,(3, '12', 5.00)
,(4,...
March 17, 2020 at 4:27 pm
I have not tried it but Oracle's Goldengate will probably work. I suspect this would be the expensive option.
March 13, 2020 at 2:55 pm
SELECT * FROM OPENQUERY([AS400], 'SELECT * FROM AS400.S78359E0.QS36F.INDETLWO')
I do not know much about AS400/DB2 but I think three part naming would be more likely to work with OPENQUERY
March 13, 2020 at 2:44 pm
You can generate SUBSTRINGs with something like:
WITH StringOffSets
AS
(
SELECT
COALESCE
(
SUM(CHARACTER_MAXIMUM_LENGTH) OVER(ORDER BY ORDINAL_POSITION ROWS BETWEEN UNBOUNDED PRECEDING AND 1 PRECEDING)
,0
) + 1 AS StartPos
,CHARACTER_MAXIMUM_LENGTH AS ColLen
,COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA =...
February 27, 2020 at 4:40 pm
You could create a job and then have a trigger run sp_start_job.
I would not reload the production table but only INSERT/UPDATE/DELETE the differences.
January 23, 2020 at 2:47 pm
I don't know much about sqlite but I doubt if joins in updates are allowed.
You could try something simple like:
UPDATE wbridge_history
SET yearclass =
(
SELECT D.payclass
FROM
(
SELECT grower, block, section,...
December 2, 2019 at 8:37 pm
Viewing 15 posts - 496 through 510 (of 1,491 total)