Viewing 15 posts - 1,726 through 1,740 (of 1,957 total)
Maybe if you show us the function, it will be possible to replace it with something that will work in 2000?
November 23, 2010 at 4:10 pm
Jack Corbett (11/23/2010)
mister.magoo (11/23/2010)
var groups = from a in Articles
...
November 23, 2010 at 3:53 pm
And here is how to just get the max from an entity
var mm = Articles.Max(w => w.ArticleNumber );
November 23, 2010 at 3:37 pm
It's really not that difficult..here is an example of getting a maximum ArticleNumber for each groupName in my articles entity...
var groups = from a in Articles
...
November 23, 2010 at 3:32 pm
This sounds like it could be solved by the "Quirky Update" method to me - as you need to compare each row to the previous row.
See Jeff's article about it...
November 23, 2010 at 3:01 am
Bearing in mind the requirement for the Interval to vary I would avoid a table of time periods unless you have one for each valid time period.
Assuming time periods start...
November 22, 2010 at 5:17 pm
Jeff Moden (11/21/2010)
And, apparently, the REPLACE is not necessary. 😉
I just cricked my neck watching that one fly overhead 😀
November 22, 2010 at 2:32 am
Simply this...?
SELECT SUBSTRING(REPLACE(st.imagem,'\','/'),
PATINDEX('%\IMAGES\%',st.imagem),
...
November 21, 2010 at 4:05 pm
shairalt (11/19/2010)
I needed to make just a couple changes –
1. I had to convert my Effective Date to a datetime as I was...
November 19, 2010 at 12:14 pm
shump66 (11/19/2010)
petervdkerk (11/19/2010)
Anyway, your code seems to do [almost] what I need.
Currently your code shows: #duplicate records - 1, meaning that if...
November 19, 2010 at 12:11 pm
No, the whole thing, to find duplicates in the prospects table (I used a table variable for this table as a test) and show whether the duplicates are also in...
November 19, 2010 at 9:51 am
Try something like this - without data to try it with there may be errors
;with cte as (
SELECT
Part,
Price/UnitofMeasure IndvPric,
...
November 19, 2010 at 9:41 am
This is a sample of how to do this
--= first set up some test data
DECLARE @prospects TABLE (
id int identity
,companyname nvarchar(50)
)
insert @prospects( companyname)
select 'test1' union all
select 'test1' union all
select...
November 19, 2010 at 8:29 am
Can you elaborate on the acceptable formats of the string?
N'ABD',N'DYX',N'ALL' is OK
Is that the only format i.e hard coded letter N followed immediately by a quote, three letters, another quote...
November 19, 2010 at 8:17 am
And one more for luck:
If you are looking to strip a local variable:
DECLARE @strVariable VARCHAR(100)
SELECT @strVariable = '| hello | world | I love sql server'
--== Only strip out...
November 18, 2010 at 5:04 pm
Viewing 15 posts - 1,726 through 1,740 (of 1,957 total)