Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. sql server connection

sql server connection

Scheduled Pinned Locked Moved Mobile
sysadmindatabasesql-serversecurityhelp
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mersad00
    wrote on last edited by
    #1

    hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...

    SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
    SqlCommand cmd = con.CreateCommand();
    try
    {
    con.Open();
    }
    catch (Exception f)
    {
    MessageBox.Show(f.Message);
    }

    sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1

    S R 2 Replies Last reply
    0
    • M mersad00

      hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...

      SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
      SqlCommand cmd = con.CreateCommand();
      try
      {
      con.Open();
      }
      catch (Exception f)
      {
      MessageBox.Show(f.Message);
      }

      sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1

      S Offline
      S Offline
      Stryder_1
      wrote on last edited by
      #2

      Would you post the exception details? That will help to determine the issue.

      1 Reply Last reply
      0
      • M mersad00

        hi there, Im really confused! i need to connect sql server from my pocket pc ... i made a wireless network and connect them to each other. now with this code i try to connect ...

        SqlConnection con = new SqlConnection(@"Data Source=mohsen-pc\sqlexpress;Initial Catalog=ManagerCo;Persist Security Info=True;User ID=sa;Password=123456");
        SqlCommand cmd = con.CreateCommand();
        try
        {
        con.Open();
        }
        catch (Exception f)
        {
        MessageBox.Show(f.Message);
        }

        sqlexception is result! note that firewall is switched off, sql express accepts remote and configured correctly plz help!!!!!!!!!1

        R Offline
        R Offline
        RaviRanjanKr
        wrote on last edited by
        #3

        please clear your question to justify it what is error in this code and what about exception. Mention it then we can solved it. :)

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups