Click here to Skip to main content
15,917,875 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: processing video from a TV Tuner card Pin
John M. Drescher21-Jul-03 17:50
John M. Drescher21-Jul-03 17:50 
GeneralAdding name to propertysheet dialog Pin
keegan21-Jul-03 5:08
keegan21-Jul-03 5:08 
GeneralRe: Adding name to propertysheet dialog Pin
G. Steudtel21-Jul-03 5:21
G. Steudtel21-Jul-03 5:21 
GeneralRe: Adding name to propertysheet dialog Pin
Ryan Binns21-Jul-03 5:25
Ryan Binns21-Jul-03 5:25 
GeneralRe: Adding name to propertysheet dialog Pin
Ryan Binns21-Jul-03 5:24
Ryan Binns21-Jul-03 5:24 
GeneralRe: Adding name to propertysheet dialog Pin
keegan21-Jul-03 6:27
keegan21-Jul-03 6:27 
GeneralRequesting column information for stored procedures through ADO connection Pin
Daed21-Jul-03 4:48
Daed21-Jul-03 4:48 
GeneralRe: Requesting column information for stored procedures through ADO connection Pin
Jon Hulatt21-Jul-03 5:30
Jon Hulatt21-Jul-03 5:30 
I don't know how/if you can do that with ADO. Since you're using sql server, there are a bunch of methods you can use to retrieve this information though.

You can use the system tables to retrieve information:-

select * from sysobjects o
join syscolumns c on c.id=o.id where o.name='p_YourProcName'


Alternatively, retrieve more wholesome information with the sp_help procedure.

sp_help 'p_YourProcName'


Personally, I prefer using the direct sql method with the system tables. For two reasons. 1) SQL Query Analyser colours the object names a pleasing shade of green, and 2) It creates potentially very lucrative future compatibility "problems".


Find more info about System Stored Procs in SQL2k at http://msdn.microsoft.com/library/en-us/tsqlref/ts_sp_00_519s.asp


Ta,
Jon



#include <beer.h>

GeneralRe: Requesting column information for stored procedures through ADO connection Pin
Daed21-Jul-03 20:29
Daed21-Jul-03 20:29 
GeneralRe: Requesting column information for stored procedures through ADO connection Pin
si_6921-Jul-03 5:43
si_6921-Jul-03 5:43 
GeneralRe: Requesting column information for stored procedures through ADO connection Pin
Daed21-Jul-03 19:53
Daed21-Jul-03 19:53 
GeneralRe: Requesting column information for stored procedures through ADO connection Pin
si_6922-Jul-03 5:54
si_6922-Jul-03 5:54 
GeneralRe: Requesting column information for stored procedures through ADO connection Pin
Daed23-Jul-03 5:21
Daed23-Jul-03 5:21 
GeneralRe: Requesting column information for stored procedures through ADO connection Pin
Toni7821-Jul-03 9:40
Toni7821-Jul-03 9:40 
GeneralCFile class to copy through a network connection Pin
Broker200321-Jul-03 4:11
Broker200321-Jul-03 4:11 
GeneralRe: CFile class to copy through a network connection Pin
Ryan Binns21-Jul-03 4:23
Ryan Binns21-Jul-03 4:23 
GeneralRe: CFile class to copy through a network connection Pin
G. Steudtel21-Jul-03 4:27
G. Steudtel21-Jul-03 4:27 
GeneralComboBox in Toolbar Pin
_crs_21-Jul-03 4:00
_crs_21-Jul-03 4:00 
GeneralRe: ComboBox in Toolbar Pin
Ryan Binns21-Jul-03 4:13
Ryan Binns21-Jul-03 4:13 
Generalfastest file writing Pin
Jeremy Pullicino21-Jul-03 3:59
Jeremy Pullicino21-Jul-03 3:59 
GeneralRe: fastest file writing Pin
Ryan Binns21-Jul-03 5:43
Ryan Binns21-Jul-03 5:43 
GeneralRe: fastest file writing Pin
John M. Drescher21-Jul-03 6:06
John M. Drescher21-Jul-03 6:06 
GeneralVisual C++ (Updating versions) Pin
ttran770021-Jul-03 2:53
ttran770021-Jul-03 2:53 
GeneralWizard sheet Banner Pin
Member 42425921-Jul-03 2:40
Member 42425921-Jul-03 2:40 
QuestionLarge Exponents? Pin
Selevercin21-Jul-03 2:39
Selevercin21-Jul-03 2:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.