Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 read text line by line

Author  Topic 

dhanu.tpk
Starting Member

14 Posts

Posted - 2010-02-02 : 03:42:56
hi All,

I want to read a text line by line in procedure.


Lumbago
Norsk Yak Master

3271 Posts

Posted - 2010-02-02 : 03:46:15
Please be more specific...

- Lumbago
If the facts don't fit the theory, change the facts. Albert Einstein
Go to Top of Page

dhanu.tpk
Starting Member

14 Posts

Posted - 2010-02-02 : 03:48:01
i am 1000 lines of procedure so i want to read the each row one by one and get the specific data

...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-02-02 : 04:02:17
quote:
Originally posted by dhanu.tpk

i am 1000 lines of procedure so i want to read the each row one by one and get the specific data

...


Why do you want to do this?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

dhanu.tpk
Starting Member

14 Posts

Posted - 2010-02-02 : 04:05:54
in that procedure i want to find out tables whcich are related to insert,update,select query...
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-02-02 : 04:09:59
quote:
Originally posted by dhanu.tpk

in that procedure i want to find out tables whcich are related to insert,update,select query...


What happens when you try this?

EXEC sp_depends 'procedure name'

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-02 : 04:14:38
quote:
Originally posted by dhanu.tpk

in that procedure i want to find out tables whcich are related to insert,update,select query...


didnt we suggested you a solution yesterday? did you try that yet?

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=139153
Go to Top of Page

dhanu.tpk
Starting Member

14 Posts

Posted - 2010-02-02 : 04:16:26
it gives list of tables i agree which are dependent but i want to categorise it for insert,update,select statements...
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-02 : 04:19:55
quote:
Originally posted by dhanu.tpk

it gives list of tables i agree which are dependent but i want to categorise it for insert,update,select statements...


categorize? you mean count of tables used in each case?
Go to Top of Page

dhanu.tpk
Starting Member

14 Posts

Posted - 2010-02-02 : 04:24:11
exactly!!
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2010-02-02 : 04:27:44
quote:
Originally posted by dhanu.tpk

it gives list of tables i agree which are dependent but i want to categorise it for insert,update,select statements...


What is the actual purpose of this?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-02 : 05:09:38
quote:
Originally posted by madhivanan

quote:
Originally posted by dhanu.tpk

it gives list of tables i agree which are dependent but i want to categorise it for insert,update,select statements...


What is the actual purpose of this?

Madhivanan

Failing to plan is Planning to fail


i think he needs some kind of report which says x number of tables used in sp for insert, y tables for update, z for select etc with details
Go to Top of Page
   

- Advertisement -