mercredi 21 octobre 2015

Whats wrong with my connection string?

Hello please help me out with this connection string

enter image description here

try
        {
            conn = new SqlConnection("Server=RANJITHM-MOBL\MSSQLSERVER1;DataBase=master;Trusted_Connection=True;");


            conn.Open();
            SqlCommand cmd = new SqlCommand("dbo.new", conn);
            cmd.CommandType = CommandType.StoredProcedure;
            rdr = cmd.ExecuteReader();
            Console.WriteLine(" connection success");

        }


// I hope i have mentioned correct connection string but not able to execute my   stored procedure

// please see  my images which attached  also  

enter image description here

Aucun commentaire:

Enregistrer un commentaire