Solved

how do i make a transaction in WEB API?

Posted on 2014-12-28
3
356 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 500 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
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 clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

695 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