错误提示:java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][Shared Memory]无效的连接。数据源连接的设置没有问题 设置完的测试也没有问题请问是怎么回事 谢谢
package demo;
/*
 * 程序中连接数据源
 */
import java.sql.*;
public class Demo1 {public static void main(String[] args) {
    Connection ct=null;
    Statement sm=null;
    try{
        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
        ct=DriverManager.getConnection("jdbc:odbc:mytest");
        sm=ct.createStatement();
    }catch(Exception e){
        e.printStackTrace();
    }
    finally{
        try {
            if(sm!=null){
            sm.close();
            }
            if(ct!=null){
            ct.close();
            }  
        } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
        }
    }
}}