Viewing 15 posts - 2,401 through 2,415 (of 2,894 total)
Personally, I wouldn't use UDF for the requested task, even it's look neater, it will be slower than just doing it in-line...
However, if you will go into using UDF, remember...
August 16, 2010 at 6:40 am
Jeff Moden (8/15/2010)
jeff.mason (8/9/2010)
August 16, 2010 at 5:29 am
Sorry, mate, but placing such code into trigger, is not very good design move.
If you need to use atrigger, you should try making it as lightweight as possible. Systems where...
August 16, 2010 at 3:33 am
DROP INDEX ...
Strange, requirement. Why you want disable index? What is you trying to do? Single update/insert/delete? Batch process?
August 16, 2010 at 3:27 am
Aspg (8/13/2010)
I was posting these posts while at work and gave you the wrong data
...
Can anybody tell me how to do this update using loop ,or cursor or...
August 16, 2010 at 3:05 am
Next time, please supply DDL of your objects and some test data (as per link found in the bottom of my signature).
You will need to change you table-valued function to...
August 13, 2010 at 9:45 am
Actually, the posted query need more work, as it should count concurrent sessions only within the same hour... (check one for 12)
August 13, 2010 at 5:49 am
I'm not sure if the following will be fast enough for you, bt it should do what you're asking for. Note: next time, please follow the advise which will be...
August 13, 2010 at 5:40 am
I hope you understand the differnece between your two examples.
The first one tells to SQLServer to recompile query which is executed by sp_executesql. You can use this option for some...
August 12, 2010 at 10:43 am
scott.pletcher (8/12/2010)
SQL Server will cash plan for any query, no matter where it's coming from.
That's not true.
Wrong wording used: MS will cash anything it possibly can.:-D
Ok, SQLServer will cache the...
August 12, 2010 at 10:05 am
DataDog (8/12/2010)
seems to me that all those cached plans will end up pushing out plans...
August 12, 2010 at 9:09 am
Mike Nuessler (8/12/2010)
So the first condition (a=0) of the OR is evaluated and it will not look at second condition...
August 12, 2010 at 8:41 am
Ather M (8/12/2010)
How do i use "orelse" in sql server, "orelse" similar to VB.netexample:
select a,b from table where a=0 or b=0
here if a=0 then sql should never check for b=0
This...
August 12, 2010 at 8:36 am
Actually, the data modifications is much rare form of SQL Injection used by hackers. Mostly they whould be interesting just in basic selects...
For example: calssical injecting of "1=1; select *...
August 12, 2010 at 5:53 am
Aspg (8/12/2010)
HI ,While updating this data , the update is going in endless loop .
It doesnt found the rownt-1 row when rowcnt is 1
1-1 = 0
Endless loop in...
August 12, 2010 at 4:41 am
Viewing 15 posts - 2,401 through 2,415 (of 2,894 total)