Link as Grid Datasource

Is there any advantages in using LINQ to call a stored procedure in my vb code?

My attached code below works fine...just wondering.
Dim objConn1 As SqlConnection
objConn1 = New SqlConnection(System.Configuration.ConfigurationManager.AppSettings("ConnPortal"))
Dim oCom1 As SqlCommand
oCom1 = New SqlCommand
oCom1.Connection = objConn1
oCom1.CommandText = "sp_crmSS_leadListGet"
oCom1.CommandType = CommandType.StoredProcedure
oCom1.Parameters.Add(New SqlParameter("@searchName", SqlDbType.NVarChar, 50)).Value = Session("SearchName").ToString
Dim dA As SqlDataAdapter = New SqlDataAdapter(oCom1)
dT = New DataTable
End Try

Open in new window

Larry Bristersr. DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I would not advise to use LINQ in this instance. In my project, I went the opposite way due to performance issues.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Larry Bristersr. DeveloperAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.