TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
anil john
NA
156
210.4k
.net
Aug 20 2012 5:17 AM
Can you explain this code?specially this params SqlParameter[] parms ?
public int insUpdata(string procName, params SqlParameter[] parms)
{
//cmd.Connection = conSql;
OpenConnection();
cmd = new SqlCommand(procName, conSql);
if (parms != null)
{
foreach (SqlParameter p in parms)
{
if ((p.Direction == ParameterDirection.InputOutput) && (p.Value == null))
{
p.Value = DBNull.Value;
} cmd.Parameters.Add(p);
}
}
cmd.CommandType = CommandType.StoredProcedure;
int iStatus = cmd.ExecuteNonQuery();
CloseConnection();
return iStatus;
}
Reply
Answers (
1
)
Can we add multiple files using a single ASP.NET FileUpload control
I have a SQL function in DB server?