?
Solved

how do i make a transaction in WEB API?

Posted on 2014-12-28
3
Medium Priority
?
420 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Expert Comment

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

Author Comment

by:ken yup
ID: 40521688
however  stored procedures seems not support array
0
 
LVL 5

Accepted Solution

by:
kblau earned 2000 total points
ID: 40524579
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

770 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