using System.Collections.Generic;
using System.Configuration;
using System.Threading.Tasks;
using System.Data.SqlClient;
public static void Main()
Console.WriteLine("Hello World");
public static long SaveFileData()
SqlConnection con = new SqlConnection("Data Source=[SERVERNAME];Initial Catalog=[DATABASENAME];Integrated Security=True");
SqlCommand cmd = new SqlCommand("SPNAME", con);
cmd.CommandType = CommandType.StoredProcedure;
if (con.State != ConnectionState.Closed)
fileid = Convert.ToInt64(cmd.Parameters["@fileid"].Value.ToString());
Console.WriteLine(exc.Message);
if (con.State != ConnectionState.Closed)