New Year Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

GIAC GIAC Secure Software Programmer - C#.NET GSSP-.NET Question # 28 Topic 3 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-.NET Question # 28 Topic 3 Discussion

GSSP-.NET Exam Topic 3 Question 28 Discussion:
Question #: 28
Topic #: 3

Peter works as a Software Developer for PaulTech Inc. He develops an application for office management, using Visual C# .NET. He creates an OleDbConnection object, named Pcon. He wants to create an OleDbCommand object to retrieve employee details. Which of the following statements will Peter use to set the CommandText and Connection properties to accomplish the required task?

Each correct answer represents a part of the solution. Choose three.


A.

OleDbCommand PCommand = new OleDbCommand("sp_GetDetails", PCon);


B.

PCommand.CommandType = "SELECT * FROM Employees";


C.

PCommand.Connection = Pcon;


D.

PCommand.CommandText = "SELECT * FROM Employees";


E.

PCommand.SetConnection (PCon);


F.

OleDbCommand PCommand = new OleDbCommand();


Get Premium GSSP-.NET Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.