Hi friends,
I need to read content of text file and store them in
string variable in my store procedure, Is there t-sql or
function to read content of text file ?
Thanks.There is no direct set of functions to do it, but you could use the sp_OA*
set of procedures to access the file. For an example of how to use these
procedures see:
http://www32.brinkster.com/srisamp/sqlArticles/article_32.htm
--
HTH,
SriSamp
Please reply to the whole group only!
http://www32.brinkster.com/srisamp
"Kresna Rudy Kurniawan" <kresna_rk@.yahoo.com> wrote in message
news:081001c3a377$c35948b0$a601280a@.phx.gbl...
> Hi friends,
> I need to read content of text file and store them in
> string variable in my store procedure, Is there t-sql or
> function to read content of text file ?
>
> Thanks.
Showing posts with label friends. Show all posts
Showing posts with label friends. Show all posts
Wednesday, March 7, 2012
Friday, February 24, 2012
How to Query... Please help
hi friends,
I have a table whose one field is 'monthname' containing month names. I want to get these month names as field values with an SQLQry. no Stored procedures or functions can be used.
Normal Result: (Select monthname Month,Count(ID) Count From TestData Group By Monthname)
My Required Format:
(this month name is just an example, it can be anything. like year or Flight Name. I mean i cant hard code like 'Select * From TestData where monthName = 'Jan'')
Got me...?
Thanking,
:)
Search these forums for pivot. Or advanced search where I say something about pivot in this forum.
Subscribe to:
Posts (Atom)