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-CSHARP Question # 91 Topic 10 Discussion

GIAC GIAC Secure Software Programmer - C#.NET GSSP-NET-CSHARP Question # 91 Topic 10 Discussion

GSSP-NET-CSHARP Exam Topic 10 Question 91 Discussion:
Question #: 91
Topic #: 10

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-CSHARP 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.