Create System DSN

Hello Myself is Neeraj I am using I know how to create system dsn runtime using vb. Is it possible to devlop system dsn for SQL Server runtime using

please help me to solve this problem

Neeraj Kumar Gill
Software Engineer
Value One Infotech Pvt Ltd.
Email [email protected]


  • using Microsoft.Win32;
    using System.Runtime.InteropServices;

    private static extern bool SQLConfigDataSource(IntPtr parent, int request, string driver, string attributes);

    private void btnDsn_Click(object sender, EventArgs e)

    SQLConfigDataSource((IntPtr)0, 4, "SQL Server",str);


    try the above code.I feel it will solve ur problem. Let me know if you have nay specific requirement.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion