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'
">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?
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
More ASP.NET MCQ Questions