Solved

how do i make a transaction in WEB API?

Posted on 2014-12-28
3
204 Views
Last Modified: 2015-01-03
is it possible to make a transaction in web api? i have searched google,but there is no anwser yet.how do i make a transaction in web api?my database is sql server
0
Comment
Question by:ken yup
  • 2
3 Comments
 
LVL 5

Expert Comment

by:kblau
Comment Utility
Just use transaction in the stored procedures.  easier than putting it in c# code
0
 

Author Comment

by:ken yup
Comment Utility
however  stored procedures seems not support array
0
 
LVL 5

Accepted Solution

by:
kblau earned 500 total points
Comment Utility
DECLARE @MyArray varchar(50)
SET @MyArray = "this|is|a|pipe|delimited|string"

or pass @MyArray from c# code

you can make a function that will accept raw string and output a table, with each item as a row.  you can google for this
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now