ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



General discussions > Public newsgroups > microsoft.public.sqlserver.server > TRIM data and INSERT INTO

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread






Author TRIM data and INSERT INTO
mike
Guest




Registered: Not Yet
Location:
Country:
State:
Certifications:
Working on:

Total Posts: N/A
TRIM data and INSERT INTO

maybe you could use the string function 'patindex' to tell
you what position the "." is at, subtract one and pass this
integer into the string function 'Left'.

Maybe you declare a string variable, use the sting function
'replace' to remove the file extension(s) if they are the
same then insert the variable into your table.

You might have to load the data into a temp table and then
go from the temp table into the final table.

good luck.

>-----Original Message-----
>Hello Everyone,
>
>I have bunch of file names inserted in my 'T1' table.
>These file names include the dot extension (myfile.txt)
>and the same extension applies to all the file names.
>I need to transfer the same data from 'col_1' to 'col_2'
>in the same table except without the file extension
>(myfile).
>I looked at the LEFT String Functions(T-SQL) but, with
>this string function i need to indicate the number of
>characters from the left i want the function to return to
>me. My file names vary in their number of characters and
>the same number will not work for all the rows.
>
>I appreciate if some one can help me out with this.
>
>Thank you for your time,
>Mitra
>.
>

Report this post to a moderator

Old Post 06-27-02 10:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Featured site: MCSE, MCSD, CompTIA, CCNA training videos



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps