Geeks Talk

Prepare for your Next Interview




Extended Stored Procedure

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++. ...


Go Back   Geeks Talk > Databases > SQL Server

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-13-2007
Junior Member
 
Join Date: Apr 2007
Location: India
Posts: 8
Thanks: 3
Thanked 2 Times in 2 Posts
venkat_1984 is on a distinguished road
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.
Reply With Quote
The Following User Says Thank You to venkat_1984 For This Useful Post:
Sponsored Links
  #2 (permalink)  
Old 06-16-2007
Expert Member
 
Join Date: Jul 2006
Posts: 101
Thanks: 0
Thanked 6 Times in 4 Posts
sripri is on a distinguished road
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.
Reply With Quote
The Following 2 Users Say Thank You to sripri For This Useful Post:
Reply

  Geeks Talk > Databases > SQL Server


Thread Tools
Display Modes


Similar Threads

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


All times are GMT -4. The time now is 01:35 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved