Viewing 15 posts - 7,291 through 7,305 (of 7,608 total)
john.arnott (7/20/2012)
It never made sense to me that people would think that MS would develop an open-ended methodology to manage data in...
July 20, 2012 at 1:47 pm
I suspect the MERGE time could be reduced by clustering on the ProductID, but with it being nvarchar(60), that's not particularly appealing.
If you can go to just varchar(60), and the...
July 19, 2012 at 4:56 pm
bpw (7/19/2012)
Each table has the following indexes:
- nonclustered, unique, primary key (nvarchar(60)) - used for the MERGE join.
- clustered, unique (int)
Paul
>> ON (t.ProductID = s.ProductID) <<
So is ProductID...
July 19, 2012 at 4:00 pm
hisakimatama (7/19/2012)
Alternatively, I could create a table for each month, and track sales...
July 19, 2012 at 3:34 pm
You have to use DBCC SHRINKFILE to reduce a file below its initial allocation.
USE <your_db_name>
-- get the file#s / names of all the db's files
EXEC sp_helpfile
Then choose the file# or...
July 19, 2012 at 3:23 pm
Jeff Moden (7/18/2012)
ScottPletcher (7/17/2012)
Sounds like RCS (Read-Committed Snapshot) is what you need here.Why would that be any better than a simple MERGE?
It provides continuous availability of the data, with no...
July 18, 2012 at 8:00 am
SELECT
[Database Name],
[Compression Ratio]
FROM (
SELECT
b.database_name 'Database Name',
...
July 17, 2012 at 3:20 pm
Sounds like RCS (Read-Committed Snapshot) is what you need here.
July 17, 2012 at 12:12 pm
takilroy (7/17/2012)
My intent is to see if anyone has been able to or knows of a way to create a global constant variable or use a sql function to determine...
July 17, 2012 at 11:57 am
I really think you're going to drive people crazy trying to follow this because no one else does it.
Almost universal is to use NULL to mean "no value was passed...
July 17, 2012 at 10:48 am
takilroy (7/17/2012)
July 17, 2012 at 9:04 am
Again, in theory yes.
But in the real world that's often difficult to do and takes a lot of time. And often a change later to the code by someone...
July 16, 2012 at 3:42 pm
You can use a lookup table to store default/control values.
Or, less overhead but more obscure, you can store the default/control values in specific byte positions of CONTEXT_INFO.
July 16, 2012 at 3:38 pm
I'm not familiar with MONTHS_BETWEEN, but IF it does always use 31 days as a "month" in that function, then you can get the same result from SQL Server using:
SELECT...
July 16, 2012 at 3:32 pm
Michael Valentine Jones (7/16/2012)
ScottPletcher (7/16/2012)
SQLKnowItAll (7/16/2012)
ScottPletcher (7/16/2012)
Donald Bustell (7/16/2012)
Database: timetracking
Column: project varchar(50)
Questions:
1. What in the world???
2. How would I craft a trigger to just RTRIM everything on the way in?
Thanks
Donald
CREATE...
July 16, 2012 at 3:02 pm
Viewing 15 posts - 7,291 through 7,305 (of 7,608 total)