Click here to Skip to main content
15,887,135 members

Comments by rajah rajah (Top 19 by date)

rajah rajah 11-May-18 0:39am View    
Thanks chris

if we want to do without having XML below one is the only solution to pass values to a SP . right ?


create procedure insert_data
(
@Id int, @Name Varchar(20) , @address varchar(50)
)
begin

Insert into table1(Id,Name,address) values(@Id,@Name,@address)

end


sqlConnection con = new SqlConnection(dbConnectionString);
SqlCommand comm= new SqlCommand("insert_data", con);
comm.CommandType = CommandType.StoredProcedure;
comm.Parameters.Add("@Id", SqlDbType.VarChar).Value = txtId.Text;
comm.Parameters.Add("@Name", SqlDbType.DateTime).Value = txtName.Text;
comm.Parameters.Add("@Address", SqlDbType.DateTime).Value = txtaddress.Text;
sqlConnection.Open();
return comm.ExecuteNonQuery();
sqlConnection.Close();
rajah rajah 10-May-18 4:33am View    
BLOB in sql
rajah rajah 23-Apr-18 1:20am View    
I'm storing a script in a path and again executing it. Both storing and executing by cmdshell..
rajah rajah 23-Apr-18 1:20am View    
Deleted
I'm storing a script in a path and again executing it. Both storing and executing by cmdshell..
rajah rajah 17-Oct-16 1:36am View    
My requirement it that i should not use interop, which needs MS office to be installed. So when i try some opensource. i found OpenXML.