none
CONNECTION STRING DATABASE located in the data directory

    Question

  • I want the code

    CONNECTION STRINGto the database inside the folder =D:\sqldatabase

    FOLDER =D:\sqldatabase

    NAME database= STUDENT.mdf

    FULL=  D:\sqldatabase\STUDENT.mdf

    SERVER MY PC= START-PC\SQLCON

    SQL SERVER =2014

    VISUAL BASIC.NET 2010 CODE

    CODE NT WORK

     Dim conns As New SqlConnection("Server=START-PC\SQLCON;AttachDbFilename=|D:\sqldatabase|STUDENT.mdf;Database=STUDENT;Trusted_Connection=Yes")

    Friday, July 6, 2018 12:16 PM

All replies