Solved

how do i make a transaction in WEB API?

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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
aspx ascx, c# 7 39
GET INFO ABOUT WHAT THE PRINTER IS DOING ? 11 71
What!!!??? 5 59
VS C# how to design libary of functions 7 30
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…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

739 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