SQL .BAK öffnen

  • VB.NET

    SQL .BAK öffnen

    Hallo zusammen,

    Ich habe eine neue Aufgabe. Ich versuche ohne SQL-Server eine .BAK Backupdatei auszulesen.
    Leider konnte ich nur dieses Thema finden in dem es aber keine Lösung gibt.
    Altes Thema

    Ich habe jetzt mal versucht die Datei einfach so einzulesen, aber das funktioniert nicht.

    VB.NET-Quellcode

    1. Imports System.Data.SqlClient
    2. Public Class Form3
    3. Private Const _sqlDB As String = "Data Source=(localdb)\v11.0;Initial Catalog=localACETest;Integrated Security=True; AttachDbFileName=y:\EBL\EWareCalls_db_201311210400.BAK"
    4. Private Sub Form3_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
    5. Using connection = New SqlConnection(_sqlDB)
    6. connection.Open()
    7. connection.Close()
    8. End Using
    9. End Sub
    10. End Class
    There is no CLOUD - just other people's computers

    Q: Why do JAVA developers wear glasses?
    A: Because they can't C#

    Daily prayer:
    "Dear Lord, grand me the strength not to kill any stupid people today and please grant me the ability to punch them in the face over standard TCP/IP."