Home Forums SQL Server 2005 Backups database backup and restore in sql server 2005 RE: database backup and restore in sql server 2005

  • BP is always to specify the database name you want to connect to (don't rely on the logins default database ! A sql instance can host multiple databases !)

    Check out BOL for the jdbc driver: http://msdn.microsoft.com/en-us/library/ms378988%28SQL.90%29.aspx

    IMO you should provide as many info as you can in your connection !

    This will help with problem solving, monitoring, ...

    e.g.

    // Get connection

    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());

    String url="jdbc:microsoft:sqlserver://yourip;DatabaseName="yourdb";

    Connection conn=DriverManager.getConnection(url,"username","password");

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me