I've been tasked with creating a console application that displays the null values of a job-input system (a program that employees use to declare which client they're working on, etc).
All I've been told is that there is a stored procedure called spr_Reports_JobsBreakdown4
with these parameters:
@user nvarchar(20)
@datefrom datetime
@dateto datetime
I somehow have to create a console application that uses this stored procedure to display the null values, meaning that someone forgot to do the job input. All I've managed so far is to connect to the database..
I've watched and read tutorials but none seemed to help.
I'm new to C#..help ?!?
This is the code I used to connect to the database.
SqlConnection sqlConnection = new SqlConnection("Data Source=DEFIANT\\SQL2012; Initial Catalog=HRD_MIS_Jobs2009; User ID=id; Password=password");
try
{
sqlConnection.Open();
Console.WriteLine("successful connection");
}
catch (Exception ex)
{
Console.WriteLine(ex);
}