Viewing 15 posts - 53,221 through 53,235 (of 59,064 total)
Concur... trips through CHAR/VARCHAR conversions are somewhat slower especially over millions of rows.
December 31, 2007 at 10:43 am
karthikeyan (12/31/2007)
<> Operator perform TableScan method.
Or, if the indexes are correct... an Index Scan which can be a little faster because there's usually fewer pages to step through. If...
December 31, 2007 at 10:39 am
Yes... it works.
No, no difference to the sever.
Yes... difference in readability but depends on what you're used to. I prefer the use of "=" to "IN" for single value...
December 31, 2007 at 10:28 am
This would be a very good place for you to lookup the POWER function in Books Online... it has a full explanation.
December 31, 2007 at 10:12 am
h2sut (12/28/2007)
I just started using sql server 05 and that the only way i know. I not familar with a setbased... what is that
"Set-based" is the whole idea behind databases......
December 30, 2007 at 10:42 pm
You code calls on V-1... i see no example of V_1.
Further... all of these views call on the table EmpBase... why do you need the views at all?
Instea of trying...
December 30, 2007 at 10:34 pm
You crammin' for an interview or a test? Or, is this a take home test.
Please, do your own homework.
December 30, 2007 at 10:24 pm
Not sure, but I think i answered this on the other post.
December 30, 2007 at 10:12 pm
but we don't want to implement both and then run timings to determine which is better.
Yeah... you do...
December 30, 2007 at 10:06 pm
Nope... that's pretty much it...
December 30, 2007 at 10:03 pm
That's not a whole lot of information for me to go on...
December 30, 2007 at 10:02 pm
I agree... and, if folks are going to post questions that have no backwards compatability, they should identify which version of SQL Server.
December 30, 2007 at 10:15 am
DECLARE @AsOfBeginDate datetime
DECLARE @ParmAsOfDate datetime
set @ParmAsOfDate='09/01/2007'
SET @AsOfBeginDate = dbo.uf_RptGetDayBeginDate(@ParmAsOfDate)--@ParmAsOfDate)
Print @AsOfBeginDate
The item hilighted in red is incorrect. It must be a SELECT...
DECLARE @AsOfBeginDate datetime
DECLARE @ParmAsOfDate datetime
set @ParmAsOfDate='09/01/2007'
SET @AsOfBeginDate = (SELECT...
December 30, 2007 at 10:08 am
Ok... that's for the "If I give the dates directly The stored procedure is giving the result is good." part you were talking about... but you also said "If I...
December 29, 2007 at 8:09 pm
Can you show the code that you're calling the sproc with, please?
December 29, 2007 at 7:40 pm
Viewing 15 posts - 53,221 through 53,235 (of 59,064 total)