ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
What is an extended stored procedure? Can you instantiate a 
COM object by using T-SQL? 
 Question Submitted By :: Swapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
Answer
# 1
An extended stored procedure is a function within a DLL 
(written in a programming language like C, C++ using Open 
Data Services (ODS) API) that can be called from T-SQL, 
just the way we call normal stored procedures using the 
EXEC statement.


Yes, you can instantiate a COM (written in languages like 
VB, VC++) object from T-SQL by using sp_OACreate stored 
procedure.  For an example of creating a COM object in VB 
and calling it from T-SQL
 
Is This Answer Correct ?    3 Yes 0 No
Swapna
 
  Re: What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
Answer
# 2
An extended stored procedure is simply a procedure that is 
implemented in a dynamic link library (DLL) — a library 
that is called by an application at runtime. Extended 
stored procedures can be used in much the same way as 
database stored procedures, except that extended stored 
procedures normally perform tasks related to the 
interaction of SQL Server with its operating environment. 
Tasks that are either too complicated or just not possible 
using Transact-SQL can often be performed with extended 
stored procedures.
Extended stored procedures are written using the Open Data 
Services (ODS) API. ODS is written and supported by 
Microsoft and is available on the Workstation version of 
SQL Server and as a separate product (and in the Back-
Office Development Kit). The ODS development package 
includes both a static-link library (Opends60.lib) and C 
header files that let you create fully functional database 
services. ODS applications are dynamically linked with 
Opends60.dll.

SOme are the type of Extend Stored Procedure..
XP_Cmdshell, xp_logevent, xp_deletemail, xp_sendmail
 
Is This Answer Correct ?    1 Yes 0 No
Dharmendra K. Dixit
 
 
 
  Re: What is an extended stored procedure? Can you instantiate a COM object by using T-SQL?
Answer
# 3
An extended stored procedure is simply a procedure that is 
implemented in a dynamic link library (DLL) — a library 
that is called by an application at runtime. Extended 
stored procedures can be used in much the same way as 
database stored procedures, except that extended stored 
procedures normally perform tasks related to the 
interaction of SQL Server with its operating environment. 
Tasks that are either too complicated or just not possible 
using Transact-SQL can often be performed with extended 
stored procedures.
Extended stored procedures are written using the Open Data 
Services (ODS) API. ODS is written and supported by 
Microsoft and is available on the Workstation version of 
SQL Server and as a separate product (and in the Back-
Office Development Kit). The ODS development package 
includes both a static-link library (Opends60.lib) and C 
header files that let you create fully functional database 
services. ODS applications are dynamically linked with 
Opends60.dll.

SOme are the type of Extend Stored Procedure..
XP_Cmdshell, xp_logevent, xp_deletemail, xp_sendmail
 
Is This Answer Correct ?    2 Yes 0 No
Ajay Kumar Gupta
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
How will u get 5 years back record?  4
How can count the string ? for ex: If i have string like 'bhaskar' then i need like b:1 h:1 a:2 s:1 k:1 r:1 please give any idea on that TCS5
What is lock escalation?  1
What is one of the first things you would do to increase performance of a query? For example, a boss tells you that ?a query that ran yesterday took 30 seconds, but today it takes 6 minutes? Wipro1
What is Deadlock? Satyam3
what is the cursor life span? Evalueserve5
What is INTVAL( )and where we use Plz any body help me  1
How to find the second largest salary in the emp database and also How to find 3rd,4th and so on ........ in the emp database plz mail the answer @ mak2786@gmail.com Oracle18
from the table display the 2nd highest salary? and also the least 2nd salay?  6
Is it possible to have more then one foreign key in a single table? if possible, is this the good way to design the table?  2
how many type of subquery?  2
I am Having tables T1 and T2 both having same data how to check (or) compare the data in both table are same?  2
How to find the last update record in SQL Server?  3
what purpose does OPENXML clause have in sql server stored procedure?  1
What are defaults? Is there a column to which a default can't be bound?  2
Can I know,how to Execute Funcion and Trigger through command(Manualy Execution) in MS SQL/SERVER 2005,give me answer with Example.  1
What is Transaction?  2
What is the role that is required for killing a process What is the role that is required for creating a linked server IBM1
What is Report Server,Report Manager and Report Builder in SSRS 2005?  1
How to Check Whether a Global Temporary Exists in a SQL Database or not?  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com