Viewing 15 posts - 46 through 60 (of 80 total)
I completely agree with you Jeffrey unfortunately that was the requirement and didn't want it no other way only spaces.
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
July 1, 2011 at 3:16 am
ChrisM@Work just read your post that is the absolutely spot on , I didn't think a CASE Statement could achieve what i was looking for so i quickly dismissed it...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 29, 2011 at 7:40 am
[] = Represent spaces
So the vendor can only contain a maximum of 7 numeric values i want a statement which counts the number of numeric values of the vendor lets...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 29, 2011 at 7:17 am
Thanks for your reply Gianluca Sartori
Its not quite but close to the desired results that I'm expecting.
For example if i change 7 to lets say 3, then only 4...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 29, 2011 at 5:58 am
Hi
I came across a previous post i was working through which might be able to help you
http://www.sqlservercentral.com/Forums/Topic263272-8-1.aspx
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 29, 2011 at 4:17 am
My mistake wrong post
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 29, 2011 at 4:14 am
oh right that can work
Thanks for your help Gianluca Sartori and Phil much appreciated.
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 28, 2011 at 5:26 am
OK sorry should of explained in more detail, the reason i asked for a different method for the numeric is because if i wanted to change the number of characters...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 28, 2011 at 5:02 am
is there a different mention instead of using /100 ????
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 28, 2011 at 4:27 am
Thanks for your reply I've tested the following code
select LEFT(P.Vendor,6)
, P.Shipto
, P.Weeks
, p.Product
...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 28, 2011 at 4:00 am
Is this what you looking for
CREATE TABLE DiaryEntries(
[ID] [VARCHAR](10) NULL,
EmpId [VARCHAR](10) null,
[date] [VARCHAR] (10)null,
[message][VARCHAR](10) null,
)
DROP TABLE DiaryEntries;
INSERT INTO DiaryEntries
VALUES('1','123','2092001','TEST')
INSERT INTO DiaryEntries
VALUES('1','123','21092001','TEST2')
INSERT INTO DiaryEntries
VALUES('1','123','21092001','TEST')
SELECT * FROM DiaryEntries
select...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 23, 2011 at 6:48 am
I've tried your method of changing the data type in the creation of the table, it returned the results i desired. Thanks for your advice
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 23, 2011 at 5:11 am
I'm using a custom built integrator(middle ware) that allows one to move data between disparate data sources but also allows you to manage it as well.
So it works by...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 21, 2011 at 7:26 am
Oh right that clears that up on, the problem is that I'm unsure how to relate that to my script
I'm using a software Notepad ++ and Microsoft standard notepad which...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 21, 2011 at 6:44 am
Thanks for your replies
To be honest i don't understand the script below, this returns 32 for me.
declare @name varchar(256)
set @name = ' 1231'
select ascii(SUBSTRING(@name , 1 , 1))
I cant...
__________________________________________________________________________________
Steve J
Jnr Developer
BSc(Hon)
June 21, 2011 at 5:58 am
Viewing 15 posts - 46 through 60 (of 80 total)