Prepare for your Next Interview
This is a discussion on Extended Stored Procedure within the SQL Server forums, part of the Databases category; I am very much intersted in learning SQL Server. I read about Extended Stored Procedure which will be created outside SQL Server environment and will be accessed from C/C++. ...
|
|||
|
Extended Stored Procedure
I am very much intersted in learning SQL Server. I read about Extended Stored Procedure which will be created outside SQL Server environment and will be accessed from C/C++. Kindly send me any program code which will be used to retrieve data outside SQL Server Environment.
|
| The Following User Says Thank You to venkat_1984 For This Useful Post: | ||
| Sponsored Links |
|
|||
|
Re: Extended Stored Procedure
I have given below an extended stored procedure which checks whether a filename given by user exists or not. I have named the extended stored procedure as sample_pro. I have given below the the sample_pro extended stored procedure
sample_pro[, <file_exists int> output] exec master..sample_pro 'c:\example.file' declare @exists int exec master..sample_pro 'c:\example.file', @exists output print @exists In the above in the first line the extended stored procedure named as sample_pro is called with parameters and the second parameter returns an integer value if the file exists. The second line exec master..sample_pro 'c:\example.file' checks whether the file named as example.file exists or not and returns the record details fully the output value namely the result of file named as example.file exists or not is returned as an integer to the extended stored procedure named as sample_pro in the rest of the lines written above. |
| The Following 2 Users Say Thank You to sripri For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reg:Stored Procedure | chakravarthy_info | Data Warehousing | 1 | 02-14-2008 01:07 PM |
| Functions were stored in different location. | tarunpandey4 | QTP | 2 | 04-20-2007 03:09 PM |
| Create and run the stored procedure | sm_amuda | ASP.NET | 2 | 04-14-2007 08:15 AM |
| Where the data will be stored? | JobHelper | JavaScript | 0 | 01-28-2007 05:06 AM |
| Extended Terminal Interface | scott | Unix/Linux | 0 | 07-17-2006 05:15 PM |