Viewing 15 posts - 5,221 through 5,235 (of 8,416 total)
Bhuvnesh (3/17/2010)
if possible, required ORDER can be set in physical table and then avoid "order by" clause in derived query
It is not good advice to suggest that one should...
March 17, 2010 at 5:59 am
huston.dunlap (3/16/2010)
I tried the order by idea but I'm coming across an error. Here's some sample code.Anyone have an idea what might be causing this?
Compare your code with that posted...
March 17, 2010 at 5:55 am
kishore_gdk 24670 (3/17/2010)
I have a database with over 200 tables, but without DELETE CASCADE. Is it possible to add DELETE CASCADE to all foreign-key definitions throught the...
March 17, 2010 at 5:53 am
Bhuvnesh (3/17/2010)
another post with related problem http://www.sqlservercentral.com/Forums/Topic881805-360-1.aspx
It is a very common problem. That other thread has more to do with using the UNIQUEIDENTIFIER data type correctly, though.
March 17, 2010 at 5:52 am
Bhuvnesh (3/17/2010)
where substring(dprtweekday, datepart(weekday, dprtdte), 1) = '1')t1for this code Sql optimizer doesnt use index seek/clustered seek.
The whole expression seems odd, since DATEPART returns an...
March 17, 2010 at 5:50 am
WayneS (3/17/2010)
In BOL for ODBC Scalar Functions, it has a syntax of {fn ...}. Do you have a link that shows the use of d/t/ts like you used above?
Yep...http://msdn.microsoft.com/en-us/library/ms180878.aspx#ODBCDatetimeFormat
March 17, 2010 at 5:33 am
SELECT Pvt.membername,
uniqueNum1 = Pvt.[1],
uniqueNum2 = Pvt.[2],
...
March 17, 2010 at 5:07 am
Linda Johanning (3/16/2010)
March 17, 2010 at 4:59 am
Perhaps someone else will have the patience to extract some workable data and requirements from you.
Good luck!
March 17, 2010 at 4:56 am
puneet shadija (3/17/2010)
you need to join these two tables using left outer join as:
Select A.*
from Table2 A left...
March 17, 2010 at 4:54 am
For another option, see Jeff Moden's articles on pivots and cross-tabs:
March 17, 2010 at 4:35 am
Ok. Some example data and expected output would help.
Otherwise, I'd just say use an INSERT statement straight from your SELECT.
March 17, 2010 at 4:25 am
Cool. If the values in the variables are atypical, consider adding OPTION (RECOMPILE) to the statement. This will generate a new plan using the specific values in the...
March 17, 2010 at 4:23 am
Viewing 15 posts - 5,221 through 5,235 (of 8,416 total)