Viewing 15 posts - 3,046 through 3,060 (of 4,272 total)
I think the trace is your best best, you should be able to see the command that is running as opposed to what you think is running..
CEWII
November 17, 2009 at 3:09 pm
PSB (11/17/2009)
<xs:element minOccurs="0" name="SubCategoryId" type="xs:unsignedByte" />
Well that explains a lot. unsigned byte = tinyint, not sure what the valid value is for integer though..
CEWII
November 17, 2009 at 2:47 pm
Ok, for DT_NUMERIC length is greyed out but what are the values for precision and scale?
Also, you might consider screen printing the advanced editor screen with that field selected and...
November 17, 2009 at 2:44 pm
How do you know step 1 is working, have you re-enabled the check constraints manually?
Also, I guess I would run a trace at this point to see what commands are...
November 17, 2009 at 2:40 pm
Hold on David, I take exception to some things:
Too often it seems that database professionals appear to be defending the SQL status quo rather than standing up and acknowledging that...
November 17, 2009 at 2:35 pm
If you change it to either DT_STR or DT_UI4 you will likely be ok, for the DT_STR you will be able to set the length, for DT_UI4 you won't it...
November 17, 2009 at 2:04 pm
You might add a ";" after the use [database] statement.
Also is it just not working or is it returning any errors?
CEWII
November 17, 2009 at 2:02 pm
simin811 (11/17/2009)
but I'm in trouble for passing parameters to it.Because the source text file name is not fixed.
Ok, valid question.. I will offer a solution that is dependent...
November 17, 2009 at 1:59 pm
Is there a 1 in 10,000 chance I'd use it at some point sure.. But not without a substantial amount of fore-thought and then I'd still be inclined not...
November 17, 2009 at 1:47 pm
Henrico Bekker (11/16/2009)
Also consider hosting the file on a FTP; using ftp connect with ID and Passw to retrieve the file?
I see ftp as more of a hinderance than a...
November 17, 2009 at 10:05 am
I figured you couldn't but it was simple enough to test yourself..
CEWII
November 17, 2009 at 8:09 am
G,
I got the parameter sniffing vibe off that article.. I have always had really good performance off these kinds of queries because I have avoided the causes of that....
November 17, 2009 at 7:08 am
Excellent point, so basically you don't even have that option..
CEWII
November 17, 2009 at 7:00 am
Those GO statements are important, they seperate one section from the other. Beyond that you really shouldn't do this. Although SQL supports it it is a bad practice...
November 17, 2009 at 12:17 am
You could try this:
SELECT *
FROM dbo.SomeTable
WHERE ( @Field1 IS NULL OR Field1 = @Field1 )
AND ( @Field2 IS NULL OR Field2 = @Field2...
November 17, 2009 at 12:15 am
Viewing 15 posts - 3,046 through 3,060 (of 4,272 total)