June 8, 2011 at 9:49 am
Hi All,
i need help to create the store procedure.
below is the table,
id int
name varchar(7),
Address varchar(3),
city varchar(2),
date date
)
Source date datatype Length Transformation
NULL/Empty int 0
Null/empty char,varchar <3 -
Null/empty char,varchar >3 <7 unk
Null/empty char,varchar >7 unknow
Null/empty
for zipcode ALL '00000'
so According to table stucture i need to create the store procedure.
which update the value according the value if datatype of the column contain NULL or blank value then it will replce by the 0.
if data type is char or varchar and column contain the NULL or Blank value then it will replace by the Unk etc
so basically i will use this store procedure in SSIS package.
can you someone help me out to create the store procedure.
Thank you
June 8, 2011 at 2:47 pm
There is not enough information or clarity about what you are trying to do. Please see the link in my signature for best practices on posting questions.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply