Viewing 15 posts - 49,111 through 49,125 (of 49,571 total)
I've noticed 'problems' with the auto stats with large tables (+20 million rows) with clustered indexes on an increasing field.
I had a table a while back with DateAdded as...
May 23, 2006 at 10:51 pm
If the record violates the pk constraint, any of the fk constraints or any of the check constraints, it won't be inserted and the trigger, if any, won't fire.
If the...
May 23, 2006 at 1:34 am
Doesn't looks too hard. One clarification please. Why didn't
s3 | c1 | some date | some date |
appear in the thrid table?
What are...
May 22, 2006 at 6:47 am
Can you give the structure of the 2nd and 3rd tables, an example of input data and an example of your desired output please.
There's almost certainly a set-based solution for...
May 22, 2006 at 5:08 am
One minor correction
CREATE
Procedure select_Proc1
@Key3 varchar(10) = NULL
....
If you don't...
May 22, 2006 at 4:57 am
Whatever order the optimiser feels is best, based on it's knowledge of the data distribution statistics and the indexes that are available on the tables.
May 22, 2006 at 4:49 am
Whatever order the optimiser feels is best.
That said, it is considered beter to join in the from clause, rather than the where clause. for readability, if nothing else.
SELECT * FROM...
May 22, 2006 at 4:37 am
What you're asking doesn't make sense. Do youi want to add new records to tb1, or do you want to update fields of existing records in tb1 to a value...
May 22, 2006 at 2:39 am
This is one case where cursors are pretty much required.
There's no automatic syntax for executing a stored proc and taking params from a query result.
May 19, 2006 at 1:31 am
Weird. That's a little slow, but not close to causing a timeout. Even the default value is 5 min.
How long does it take from the web page?
May 18, 2006 at 10:55 am
No idea. The .net docs should tell you.
That's already a pretty high value. how long does that query take in QA?
May 18, 2006 at 10:08 am
Not the timeout in the config. Is something like cmd.Timeout in the code, after you create the command, but before you execute it. Not a C# expert.
For blocking, run sp_who2...
May 18, 2006 at 9:42 am
Different databases, or different tables? Looks like the latter, assuming that it is.
This isn't tested, but it should be mostly right.
SELECT HH_ID, StudentID, MAX(Parent_ID) As ParentID
FROM ParentDatabase P INNER JOIN...
May 18, 2006 at 3:28 am
select
suser_sname()
Returns <Domain>\<Loginname>
May 18, 2006 at 3:01 am
Viewing 15 posts - 49,111 through 49,125 (of 49,571 total)