Viewing 15 posts - 8,236 through 8,250 (of 8,753 total)
Testing on Sql Server 2014 Dev,
Trace flag 9481 forces CardinalityEstimationModelVerion 70
and 2312 forces 120.
The correct answer for the question should be traceflag 2313.
π
May 15, 2014 at 10:11 am
Quick thought, if the view is returning in 20-30ms, that looks like once per row in the table
π
May 15, 2014 at 9:20 am
sestell1 (5/15/2014)
Does anyone know if the trace flag should actually be 2312?I don't have a 2014 instance to test with. π
I'm getting slightly confused, ran queries with SHOWPLAN_XML on...
May 15, 2014 at 8:49 am
What do you find in the INFORMATION_SCHEMA for the constraints? Look for the table and column names in question.
π
SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
SELECT * FROM INFORMATION_SCHEMA.DOMAIN_CONSTRAINTS
SELECT * FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE
SELECT * FROM...
May 15, 2014 at 6:46 am
A trigger with insert and update
π
CREATE TRIGGER [dbo].[TRG_MY_CONSTRAINT]
ON [dbo].[TestConstraint]
INSTEAD OF INSERT, UPDATE
AS
BEGIN
SET NOCOUNT ON;
IF EXISTS
...
May 15, 2014 at 5:06 am
Sorry about the misunderstanding, the first post was pre industrial strength tanker sized load of espresso:-P
One solution is to use a trigger
π
USE tempdb;
GO
CREATE TABLE dbo.TestConstraint
(
id INT...
May 15, 2014 at 2:26 am
Quick test would be checking with the the datalength function, if it corresponds to the file size, it is in the table.
π
May 15, 2014 at 12:39 am
Good question, thanks!
I got it wrong:ermm: or did I:w00t:
Note, on Microsoft Support there is an article; Enable plan-affecting SQL Server query optimizer behavior that can be controlled by different trace...
May 14, 2014 at 11:42 pm
First the DDL
USE tempdb;
GO
CREATE TABLE dbo.TestConstraint
(
id INT NOT NULL
,ProductID int NOT NULL
,Datecreated DATETIME NULL
,DateExpired DATETIME NULL
);
GO
ALTER...
May 14, 2014 at 11:01 pm
This query uses UNPIVOT in a CTE. A ROW_NUMBER function assigns a number for each header/value combination, which is then used to set the output column in the latter part...
May 14, 2014 at 10:36 pm
mickyT (5/14/2014)
Luis Cazares (5/14/2014)
mickyT (5/14/2014)
However having said that, this could be another way of attacking the problem
Until you find that Gordon Abraham and Abraham Gordon (or any other combination of...
May 14, 2014 at 2:15 pm
Usman Butt (5/14/2014)
BTW, can someone test the physical tally table splitters as well? @paul-2 Can you be so kind to me :unsure:
I'll do it as well, don't hold your breath:Whistling:...
May 14, 2014 at 2:05 pm
Paul White (5/14/2014)
If so, you might not be testing what you think you are. There is a...
May 14, 2014 at 1:08 pm
For fun:-P, it always looks simple until one starts to meddle with it
π
with Names as
(
select 'Mike Davis' as FullName union all
...
May 14, 2014 at 11:47 am
emilacosta (5/14/2014)
Thank you for your answer. π
My main question is how to get the path of the image file from the table where it is stored and load the image...
May 14, 2014 at 10:23 am
Viewing 15 posts - 8,236 through 8,250 (of 8,753 total)