Click here to Skip to main content
13,090,930 members (47,499 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hi,

I need equivalent linq of,
select 'SP'+ RIGHT('000'+Convert(varchar,ISNULl(Max( Convert(integer,RIGHT(SupplierId, 3))),0)+1 ),3) 
from TblSuppliers

where SupplierId is column name and TblSuppliers is table name
Posted 1-Jan-12 22:27pm
Updated 1-Jan-12 22:28pm
Wendelius357.7K
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Not everything has to be done with LINQ; you can use stored procedures wth LINQ.

Stored Procedures (LINQ to SQL)[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web01 | 2.8.170813.1 | Last Updated 2 Jan 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100