Viewing 15 posts - 4,141 through 4,155 (of 8,753 total)
Alan.B (12/28/2015)
Someone beat me to it but NOLOCK table hints are the #1 mistake I have seen. I would go so far as to say...
December 28, 2015 at 1:06 pm
harishyarlagadda2020 (12/28/2015)
Thank you Eirikur! I am using rownum% value= 0 rather than '<1'.This helped.
You are very welcome.
😎
December 28, 2015 at 12:55 pm
Ed Wagner (12/28/2015)
December 28, 2015 at 12:54 pm
This is straight forward, select from the table where (Row_Number % Divisor) is less than one, rounding will not give the right results because of the loss of precicion.
😎
Quick sample
;WITH...
December 28, 2015 at 12:31 pm
Eric M Russell (12/28/2015)
On the fly data type conversion and transformations, both explicit and implicit
Distributed queries (ie: joining tables between multiple instances...
December 28, 2015 at 8:15 am
SQL Server is fully ACID (Atomicity, Consistency, Isolation, Durability), if you need functionality outside the ACID then use Jeff's suggestion and output the log to a file, that temp table...
December 27, 2015 at 11:48 pm
Another wild guess
😎
USE tempdb;
GO
IF OBJECT_ID(N'dbo.TBL_SALES_ITEMS') IS NOT NULL DROP TABLE dbo.TBL_SALES_ITEMS;
CREATE TABLE dbo.TBL_SALES_ITEMS
(
SI_ID INT IDENTITY(1,1) ...
December 27, 2015 at 11:16 pm
Jeff Moden (12/27/2015)
C@mel (12/27/2015)I don't want to restore a backup of A. to B.
I want a script to copy all data from A. to B.
WHY? To what end? ...
December 27, 2015 at 10:58 pm
Jeff Moden (12/27/2015)
Eirikur Eiriksson (12/26/2015)
Jeff Moden (12/26/2015)
December 27, 2015 at 10:52 pm
There are several things wrong in this code, none of which have anything to do with the varbinary N or MAX. The most obvious ones are the wrong parameters passed...
December 27, 2015 at 2:25 am
patricklambin (12/27/2015)
Eirikur Eiriksson (12/26/2015)
December 27, 2015 at 1:32 am
Jeff Moden (12/26/2015)
December 26, 2015 at 4:50 pm
Piling on Jeff's good comment, unless there is a compelling reason I wouldn't suggest this great interval between the full backups, because the fact that the less one has to...
December 26, 2015 at 4:28 pm
Here is a quick demonstration of my preferred pattern, more or less the same as Jacob's
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.TBL_TEST_TRAN') IS NOT NULL DROP TABLE dbo.TBL_TEST_TRAN;
IF OBJECT_ID(N'dbo.TBL_TEST_LOG') IS NOT NULL...
December 26, 2015 at 3:14 pm
The explanation isn't correct, "This determines the storage for the type, but only in varying the storage from 6 to 8 digits of precision." should be "This determines the storage...
December 26, 2015 at 12:34 pm
Viewing 15 posts - 4,141 through 4,155 (of 8,753 total)