<<split from here>>

As tha same i 2 had tried but t is coming error like

Default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not open a
connection to SQL Server)).

ther mustproblem with your connection string post your code

See this link will solve your problem for remote connection here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.