Viewing 15 posts - 6,391 through 6,405 (of 15,381 total)
Not much in the way of details to work with here. You say you want to use this function in your proc but no explanation of where or why. Your...
October 28, 2013 at 8:05 am
I prefer to type the name of the datepart. It really helps avoid confusion and you don't have to resort to the documentation very often to figure out some of...
October 28, 2013 at 7:53 am
vba317 (10/28/2013)
This is step 3 in a process. It...
October 28, 2013 at 7:26 am
p.shabbir (10/25/2013)
Sean Lange (10/25/2013)
p.shabbir (10/25/2013)
Hi Scuby,Try this.
select REPLACE(SUBSTRING(Your_Column,1,CHARINDEX('@',Your_Column)),'@','') Name from Your_Table NOLOCK
Thanks
sibi.
Why NOLOCK???
Sean,
At my work i used to specify "NOLOCK" at the end of select statement.Hence, by habit i mentioned...
October 25, 2013 at 3:30 pm
ofg1983 (10/25/2013)
I believe I am putting this up on the correct section, if not, please let me know.
My Question:
What is required in order to take the...
October 25, 2013 at 3:11 pm
p.shabbir (10/25/2013)
Hi Scuby,Try this.
select REPLACE(SUBSTRING(Your_Column,1,CHARINDEX('@',Your_Column)),'@','') Name from Your_Table NOLOCK
Thanks
sibi.
Why NOLOCK???
October 25, 2013 at 3:08 pm
Here are a couple of other ways.
;with MyEmail (email)
as
(
select 'pearson.charles@companyname.com'
)
select *
, LEFT(email, charindex('@', email, 0) - 1)
, SUBSTRING(email, 1, CHARINDEX('@', email) - 1)
, REPLACE(SUBSTRING(email,1,CHARINDEX('@',email)),'@','')
from MyEmail
October 25, 2013 at 3:07 pm
tajrin (10/25/2013)
tnx for the reply, some more questions please:1...Is it possible to get 3 as a final result....ie the total number of different combinations?
Sure no problem. Just roll your code...
October 25, 2013 at 3:03 pm
priest Ivan Delic (10/25/2013)
I have a simple issue but couldn't resolve it yet. About four years ago I managed to build Reporting Services project using SQL Server 2005 Express...
October 25, 2013 at 1:34 pm
You were so close...at least as I understand your requirements.
Select COUNT(*) / LEN(x.Vals) TCRuns, x.Vals
FROM
(
SELECT t1.ID as RunID, msv1.Val as Vals
From trial t1
CROSS APPLY
...
October 25, 2013 at 1:28 pm
In order to help we will need a few things:
1. Sample DDL in the form of CREATE TABLE statements
2. Sample data in the form of INSERT INTO statements
3. Expected results...
October 25, 2013 at 11:55 am
kennethrbell (10/25/2013)
Boy how time flies.
I just wanted to thank you for your code.
This particular project got reprioritized by my boss (I'm sure you know how that goes.)...
October 25, 2013 at 11:51 am
NineIron (10/25/2013)
Thanx.Both solutions work fine. I'm going with cross join.
Actually they are both cross joins. I prefer to be explicit when using a cross join instead of the shortcut of...
October 25, 2013 at 8:21 am
isuckatsql (10/25/2013)
In an effort to 'clean up' the sort, is it better to use the 'sort column + a unique...
October 25, 2013 at 8:13 am
Viewing 15 posts - 6,391 through 6,405 (of 15,381 total)