Set conn = New connection ;With conn ; .Provlder = 'SqIOleDB‘ ; ConnectionStrIng ='User ID=sa;'&& 'Data Source= Neptune;'&& 'Initial Catalog=CiassList'

, 2.

Set conn = New connection ;With conn ; .Provlder = 'Neptune' ; ConnectionStrIng ='User lD=sa;'&& 'Data Source=Neptune;'&& 'Initial Catalog=CiassList'

, 3.

Set conn = New connection ;With conn ; .Provlder = 'SqIOleDB' ; ConnectionStrIng ='User ID=sa;'&& 'Data Source=Neptune;'

, 4.

Set conn = New connection ;With conn : .Provider = 'SqIOleDB' : ConnectionStrIng ='User ID=sa;‘&& 'Data Source=Neptune;'&& 'initial Catalog=CiassList'

">
MCQs > IT & Programming > ASP.NET > You are using Visual Basic to retrieve class information from a Microsoft SQL Server database named ClassList. The database Resides on a server named Neptune. Which code fragment will create a connection to this data source?

ASP.NET MCQs

You are using Visual Basic to retrieve class information from a Microsoft SQL Server database named ClassList. The database Resides on a server named Neptune. Which code fragment will create a connection to this data source?

Answer

Correct Answer:

Set conn = New connection ;With conn : .Provider = 'SqIOleDB' : ConnectionStrIng ='User ID=sa;‘&& 'Data Source=Neptune;'&& 'initial Catalog=CiassList'

Explanation:

Note: This Question is unanswered, help us to find answer for this one

ASP.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

ASP.NET Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it