Viewing 15 posts - 106 through 120 (of 441 total)
I second what Jack said on the updating of the statistics, that would certainly be your first step.
I would also look how the join is made on the table :...
December 21, 2009 at 2:47 pm
Madhivanan-208264 (12/8/2009)
In SQL Server 2005, you should make use of row_number() functionAlso see what you can do with it
http://sqlblogcasts.com/blogs/madhivanan/archive/2007/08/27/multipurpose-row-number-function.aspx
This is exactly the solution I posted, using row_number(). It's the best...
December 8, 2009 at 7:05 am
Asane (12/7/2009)
Hi Dude,I have one table as follow:
#TableA
-------
NoName
------------
1Edwin
1Edwin
2Raja
2Raja
2Raja
3Rasul
3Rasul
3Rasul
3Rasul
4Katti
4Katti
I need to remove duplicate entries from the above table
your suggestion will be greatly appreciated..
-M
Hi,
Here's what I propose, I think it's one of...
December 7, 2009 at 5:18 am
GilaMonster (12/2/2009)
J-F Bergeron (12/2/2009)
SQL Server does not let you assign a value to a column when it COULD be returning more than 1 row.
It does allow the scenario where...
December 2, 2009 at 2:44 pm
Hi,
SQL Server does not let you assign a value to a column when it COULD be returning more than 1 row. In this example, I don't think you need to...
December 2, 2009 at 2:28 pm
Nice one Jeff,
Once again, you've proven we don't need RBAR code to solve even a format problem for SQL.
Keep it up, love to learn from you,
December 2, 2009 at 2:08 pm
Happy it works, thanks for the feedback!
December 2, 2009 at 8:57 am
So, you used the stored procedure call in the select statement of the ASP.net, with the string parameter, and everything is fine? Good to know you can do that!
December 2, 2009 at 7:42 am
You have 2 solutions for this.
1. Can you try using the statement I've provided you directly in your XML, in the Select statement parameter? Sometimes, you can use more complex...
December 1, 2009 at 2:45 pm
Matthew Cushing (12/1/2009)
yeah, sorry about that. I should probably post this on asp.net instead.
Why? you got a working solution now. Just use dynamic SQL and add your parameter to...
December 1, 2009 at 2:36 pm
Matthew, what you will need to do, if you need to accept multiple roles like this in a stored procedure, is use some dynamic sql.
Considering your query, i've build a...
December 1, 2009 at 2:28 pm
I have to say this is pretty cool a teacher actually took the time to build a small website for testing queries! I would have loved to learn SQL in...
November 12, 2009 at 8:25 am
You can still try it on the SQL 2000, but as Lutz pointed out, you will have to add the "included" column as part of the index. So just add...
November 12, 2009 at 6:33 am
lmu92 (11/11/2009)
J-F Bergeron (11/11/2009)
Let's try it with a covering index:Try to create a nonclustered index on CxToken, CxStatus that includes EcxLastTime (included column). ...
@ J-F: Just a side note:...
November 11, 2009 at 5:30 pm
JakesterUK (11/11/2009)
ALTER PROCEDURE CheckContext
@CxID int,
...
November 11, 2009 at 3:03 pm
Viewing 15 posts - 106 through 120 (of 441 total)