November 2, 2006 at 9:07 am
... unless you can tell us what you are trying to do... maybe there's an alternative slution to your problem!!
November 2, 2006 at 9:23 am
Basically, I've made a program that lists all the databases on my server, and when I click on a table in my list it goes away and lists all the stored procedures that use that table and displays the SP's in a text box. Thanks for all the help you've given me
November 2, 2006 at 9:29 am
Sounds about right...
The only problem with that solution is that sysdepends is not reliable. I can garantee that you miss a few refferences with your current code.
The alternative is to scan syscomments and try to manually match the dependancies... but that ain't bullet proof either .
I'll leave you with that... unless you have other questions or ideas!!
November 2, 2006 at 9:31 am
Many thanks for all your assistance. you've been a great help and I think I've lean't stuff along the way
November 2, 2006 at 9:33 am
Happy to have almost helped .
November 3, 2006 at 6:42 am
i prefer to simply catch the results of sp_helptext PROCNAME into a recordset, and print hte results from that;
Sub a()
Dim sql As String
Dim rs5 As ADODB.Recordset
Set rs5 = New ADODB.Recordset
sql = "EXEC SP_HELPTEXT 'Client'" Set rs5 = MyCn.Execute(sql)
Do While Not rs5.EOF
Debug.Print rs5(0)
rs5.MoveNext
Loop
Debug.Print "GO" & vbCrLf
End Sub
Lowell
Viewing 6 posts - 16 through 20 (of 20 total)
You must be logged in to reply to this topic. Login to reply