Viewing 15 posts - 1,306 through 1,320 (of 1,825 total)
Forr (10/30/2009)
select * from function_i_am_looking_for("xp_msver") where character_value = 'xxxxx'it there any other way to do what i want? thanks:-)
I am heavily against the use of functions like this.
Think about...
October 30, 2009 at 3:04 am
Here's a simple example
declare @Result integer;
with ctetest
as(
select 1 as Val
)
Select @Result = ctetest.val
from ctetest
Select @Result
You may only use SELECT, INSERT, UPDATE or DELETE with a...
October 30, 2009 at 2:57 am
Ankit Mathur-481681 (10/30/2009)
But as you suggested I think I'll have to give a proper thought to table-valued functions too. I wasn't in too much favour of a function coz my...
October 30, 2009 at 2:51 am
It simply wont allow you to do that as you are effectively splitting a single statement.
I would suggest capturing the output of the query to a variable an testing...
October 30, 2009 at 2:18 am
You could try this. As suggested already converting the stored procedure to a tvf (table valued function) would be a 'better' option.
October 30, 2009 at 2:11 am
You will need to play with the order by if you are bothered by which row needs to be returned.
with cteloans
as
(
select l.loanid, l.branchoffice, l.AcquiredFrom,
l.previouslnnum, b.lastname, b.firstmiddlename,
p.addressline1, p.addressline2, p.city,
p.state, p.zip, l.originalamt,
s.primstat,...
October 29, 2009 at 10:07 am
You've posted on a 7,2000 , are you using that or a later version.
On 2005+ you can add a row_number() calculation and filter on that.
October 29, 2009 at 9:50 am
Dont do it , step away from the cursor.
You dont need one , use correct set based logic.
use rowcnt on sysindexes to pull the rowcount, itll be much faster
October 29, 2009 at 8:16 am
-- Stupid suggestion - ignore
October 29, 2009 at 7:27 am
you need to ...
ORDER BY Case when language in ('English','Hindi','Punjabi') then 0 else 1 end,language
October 29, 2009 at 4:15 am
God damn i need to step away from this, spending far to much time on it
http://ask.sqlservercentral.com/questions/826/the-fifo-stock-inventory-sql-problem
October 28, 2009 at 8:14 am
GilaMonster (10/23/2009)
Dave Ballantyne (10/23/2009)
Or get a statement trace of the same batch executing. Should give you a better idea of which statements to look for....
I can't get anything else,...
October 23, 2009 at 8:11 am
Or get a statement trace of the same batch executing. Should give you a better idea of which statements to look for....
October 23, 2009 at 7:08 am
How are you stopping the loop updating the same rows as the previous iteration ?
October 23, 2009 at 6:06 am
Just given this a go...
Commenting doesn't seem to work :crazy:
But deleting multiple batch elements from the BatchSequence element and then saving the file as a .sqlplan and loading in...
October 23, 2009 at 3:40 am
Viewing 15 posts - 1,306 through 1,320 (of 1,825 total)