Viewing 15 posts - 6,796 through 6,810 (of 7,597 total)
ScottPletcher (2/11/2013)
Michael Valentine Jones (2/11/2013)
ScottPletcher (2/11/2013)
DECLARE @startDate datetime
DECLARE @number_of_months int
SET @startDate = GETDATE()
SET @number_of_months = 7
SELECT
DATEADD(DAY,...
February 11, 2013 at 9:49 am
Marius.D (2/11/2013)
or maybe you specified DESC on one of the existing index keys?!
I did not, but would that make a difference? I didn't think the missing indexes...
February 11, 2013 at 9:44 am
Method below works for any and all date and language settings:
DECLARE @startDate datetime
DECLARE @number_of_months int
SET @startDate = GETDATE()
SET @number_of_months = 7
SELECT
DATEADD(DAY, DATEDIFF(DAY, '19000107', last_day_of_month) / 7...
February 11, 2013 at 8:50 am
Hmm, that still doesn't make sense.
Compare them very closely: there must be some difference somewhere ... or maybe you specified DESC on one of the existing index keys?!
February 8, 2013 at 4:13 pm
In SQL Server, there is no difference.
I guess the backward compatability would be that you can still use "numeric" rather than the offical "decimal".
February 8, 2013 at 1:49 pm
Yeah, reasonably close.
Probably the major difference is that the OP and myself don't want to "flatten" the Chain and Store into a single "location".
February 7, 2013 at 5:31 pm
nick.mcdermaid (2/7/2013)
I did change the PK to
RowNum_Start,SRC_System, SRC_Application
and also
SRC_System, SRC_Application,RowNum_Start
(Yes I know you can create a clustered index that isn't based on the primary key)
In both...
February 7, 2013 at 4:06 pm
You could move the BLOB(s) to a different table; use views if you need to, to combine the original table columns and the BLOB(s), to keep current apps "happy".
February 7, 2013 at 1:23 pm
So are you doing a REORG or a REBUILD?
Is it on Enterprise Edition (2008)?
February 7, 2013 at 11:03 am
You need to keep this normalized and have a separate table for every relation. You could even create an additional table to control the chain/store incidents if needed.
Here's some...
February 7, 2013 at 10:53 am
You could partition the table; if you're lucky, the older data will not even need rebuiilt, and you can greatly reduce rebuild time and overhead.
Even if it all still needs...
February 7, 2013 at 10:35 am
I strongly recommend fully qualifying all table names with the owning schema, typically "dbo" but of course could be different in your specific environment.
For example:
...
from dbo.AbstractData a
inner join dbo.AbsDrgDiagnoses b...
February 7, 2013 at 10:32 am
Granting bulkadmin doesn't actually give that person INSERT authority to any table.
Any user would still need standard GRANT INSERT on a table or a role containing that authority to insert...
February 7, 2013 at 10:25 am
Eugene Elutin (2/7/2013)
ScottPletcher (2/6/2013)
No, I wouldn't use OR just because that makes a view updateable -- UPDATEs aren't typically done using views like that anyway.
What is the problem with updateable...
February 7, 2013 at 9:10 am
Viewing 15 posts - 6,796 through 6,810 (of 7,597 total)