skip navigation
All Products
Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
NEW
: Design Kits for Figma
Online Training
Document Processing Library
Embedded Reporting for web and desktop
Web
Kendo UI
UI for jQuery
UI for Angular
UI for React
UI for Vue
UI for Blazor
UI for ASP.NET Core
UI for ASP.NET MVC
UI for ASP.NET AJAX
Mobile
UI for .NET MAUI
UI for Xamarin
Document Management
Telerik Document Processing
Desktop
UI for .NET MAUI
UI for WinUI
UI for WinForms
UI for WPF
Reporting & Mocking
Telerik Reporting
Telerik Report Server
Telerik JustMock
Automated Testing
Test Studio
Test Studio Dev Edition
CMS
Sitefinity
UI/UX Tools
ThemeBuilder
Design System Kit
Debugging
Fiddler
Fiddler Everywhere
Fiddler Classic
Fiddler Jam
FiddlerCap
FiddlerCore
Free Tools
VB.NET to C# Converter
Testing Framework
View all products
Demos
Services
Blogs
Docs & Support
Pricing
Shopping cart
Login
Contact Us
Get A Free Trial
close mobile menu
Telerik Forums
This is a migrated thread and some comments may be shown as answers.
How To ExecuteThe StoreProcedure
1 Answer
111 Views
OQL (OQL specific questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Majid
Top achievements
Rank 2
Majid
asked on
06 Dec 2008,
07:14 AM
How can i execute the store procedure wirtten in SQL Express 2005. Actualy what class should i use to run the store procedure?
Thanks.
1 Answer
, 1 is accepted
Sort by
Score
Date
0
Accepted
Thomas
Telerik team
answered on
08 Dec 2008,
03:23 PM
Hi Majid,
as OpenAccess does not generate a SP-specific proxy you will need to use IObjectScope.GetSqlQuery(string,Type,string) to call a stored procedure.
Example:
IQuery q = scope.GetSqlQuery("foobar ?, ?",null,"INTEGER i, FLOAT f");
IQueryResult r = q.Execute(new object[] { 42, 0.1234f });
r.GetEnumerator(); // triggers the execution!
This would execute the foobar SP with the integer parameter 42 and the float parameter 0.1234.
The result would be discarded.
Please see the reference guide on the GetSqlQuery method too.
Best wishes,
Thomas
the Telerik team
Check out
Telerik Trainer
, the state of the art learning tool for Telerik products.
Tags
OQL (OQL specific questions)
Asked by
Majid
Top achievements
Rank 2
Answers by
Thomas
Telerik team
Share this question
or
Copy link