Viewing 15 posts - 76 through 90 (of 1,553 total)
If you insist on using the sp_OAxx procedures, I suggest that you read up on them in BOL very carefully. If one doesn't know how to use these properly, it's...
February 21, 2008 at 2:40 am
Triggers fire once per statement - not once per row affected.
You need to rewrite your trigger so it can deal with more than one row per statement.
/Kenneth
February 20, 2008 at 8:47 am
I'll assume that you know how to get your 'raw' data, and you just want to count/sum up the different numbers...
You can do something like this for the different counts;
SELECT...
February 20, 2008 at 8:39 am
While doing checks on FK's, don't forget to also check if it's trustworthy or not..
select OBJECTPROPERTY(object_id(myForeignKey), 'CnstIsNotTrusted')
/Kenneth
February 19, 2008 at 2:23 am
The numbers in the cost isn't the most significant thing to compare with in this case.
What you want to look at is the scan count, where scan count = 1...
January 23, 2008 at 9:06 am
Why go for the hard way, and what's so non-elegant about an outer join..?
To find the actual gaps - ie the numbers that's really missing, an outer join and a...
January 23, 2008 at 6:47 am
Seems to be a problem with the language setting.
Easiest method to avoid it is to use ISO format for the stringdate.
Try '20080101' instead and see what happens.
Also, the convert(datetime,...
January 22, 2008 at 3:44 am
Ah, I see...
Well, I was mainly thinking about how to avoid the dupe issue in the first place π
/Kenneth
January 21, 2008 at 8:46 am
Is it something like this you're looking for?
Problem: get key + latest date - ie select key, max(date) as maxDate
select h.col1,
...
January 21, 2008 at 8:21 am
Henrik,
it seems you have a bit of a mess regarding collations in db's vs server installations.
Consider that the choice of collation and sortorder is a fundamental piece of a system's...
January 16, 2008 at 6:34 am
noeld (1/15/2008)
This: http://support.microsoft.com/kb/325335 is the official way... funny it says the review happened in 2007 but it dos not mentions 2005 π
In the beginning summary they mention that all concepts...
January 16, 2008 at 6:13 am
Heh. Well, you need to do your fair share of testing also.
After all, it's your data =;o)
Especially look out for 'weird' chars (from an ascii point of view) that may...
January 15, 2008 at 8:37 am
Hmmm... perhaps the old arcane ways are up for revision...
Did a very tiny test in tempdb on a 2005 box, and it indeed looks like
alter table alter column collate ...
January 15, 2008 at 2:38 am
If your existing data may contain extended ascii (Γ₯Àâ and such), you'd probably want to store away your data before changing collation.
The 'old and proven' way is something along these...
January 14, 2008 at 6:31 am
There is no such thing as a time and date format in SQL Server.
Assuming you have a datetime datatype, how the values from this will be displayed is up to...
December 19, 2007 at 6:38 am
Viewing 15 posts - 76 through 90 (of 1,553 total)