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. Connecting C# in VS 2008 to SQL server management studio

Connecting C# in VS 2008 to SQL server management studio

Scheduled Pinned Locked Moved Mobile
databasecsharpsql-servervisual-studiosysadmin
2 Posts 2 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.
  • D Offline
    D Offline
    Deepali Khalkar
    wrote on last edited by
    #1

    I am developing an application on Win mobile 5.0 emulator. I need SQL server 2005 for database storage and hence i am using SQL server management studio. I want to connect a smart device project in C# to SQL server 2005. I have done the following steps- 1. In SQL server management studio, i have selected server type as SQL server mobile and have entered a path for database file and then pressed connect. I have created one table under the database 2. I have connected the emulator with the active sink .I have then transfered this database to Win mobile 5.0 emulator and have placed it under Program Files in the emulator. 3. In VS 2008 under data source configuration wizard i have created a new connection.Then add connection window appears. Now i am not sure which data source to select. What will be the connection string in order to access the database on Win mobile 5.0 emulator? Please help me with this. I am a novice in application development on Win mobile platform. Please help me with the detail steps to connect the SQL mobile database to C# smart device project. Also let me if i have followed the proper steps. Thanks in advance. :)

    L 1 Reply Last reply
    0
    • D Deepali Khalkar

      I am developing an application on Win mobile 5.0 emulator. I need SQL server 2005 for database storage and hence i am using SQL server management studio. I want to connect a smart device project in C# to SQL server 2005. I have done the following steps- 1. In SQL server management studio, i have selected server type as SQL server mobile and have entered a path for database file and then pressed connect. I have created one table under the database 2. I have connected the emulator with the active sink .I have then transfered this database to Win mobile 5.0 emulator and have placed it under Program Files in the emulator. 3. In VS 2008 under data source configuration wizard i have created a new connection.Then add connection window appears. Now i am not sure which data source to select. What will be the connection string in order to access the database on Win mobile 5.0 emulator? Please help me with this. I am a novice in application development on Win mobile platform. Please help me with the detail steps to connect the SQL mobile database to C# smart device project. Also let me if i have followed the proper steps. Thanks in advance. :)

      L Offline
      L Offline
      lakpa
      wrote on last edited by
      #2

      hello, Here is the process: In the emulator File > configure > shared folder....... give a link to your any folder like D:\Mobile Storage and keep your .sdf file in that folder and connection string for the sdf file should be Data Source=\storage card\database.sdf;Password=xyz;

      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