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. Database & SysAdmin
  3. Database
  4. Windows integrated Security issues

Windows integrated Security issues

Scheduled Pinned Locked Moved Database
csharphelpasp-netdatabasesql-server
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.
  • K Offline
    K Offline
    kinsella_john
    wrote on last edited by
    #1

    i am a part time student in web design and i am trying to learn asp.net and ado.net at the moment. i do not delve into SQL until a little bit later in my course. [i am using visual studio 2003 and sql server express 2005] i am having integrated security issues. i keep getting this message; "" ! ADO Error: ' [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. "" i can vaguely remember somebody mentioning to me, that i must change the security settings within SQL Server to allow visual studio to communicate with it. i dont know whwat to change! and there are so many options and different security folders.. guest, dbo, etc.. any help would be timelessly appreciated many thanks in advance

    John Michael Kinsella kinsellajohn@hotmail.com

    B 1 Reply Last reply
    0
    • K kinsella_john

      i am a part time student in web design and i am trying to learn asp.net and ado.net at the moment. i do not delve into SQL until a little bit later in my course. [i am using visual studio 2003 and sql server express 2005] i am having integrated security issues. i keep getting this message; "" ! ADO Error: ' [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. "" i can vaguely remember somebody mentioning to me, that i must change the security settings within SQL Server to allow visual studio to communicate with it. i dont know whwat to change! and there are so many options and different security folders.. guest, dbo, etc.. any help would be timelessly appreciated many thanks in advance

      John Michael Kinsella kinsellajohn@hotmail.com

      B Offline
      B Offline
      BrokenS
      wrote on last edited by
      #2

      John, Make sure your connection string includes the following: ConnectionString = "Data Source=.\SQLEXPRESS;" _ + "Integrated Security=True;" _ + "AttachDBFilename=" + [DB filename and path] & ";" _ + "Initial Catalog=" + [DB filename] + ";" _ + "Connect Timeout=30;" _ + "User Instance=True" example: "Data Source=.\SQLEXPRESS;Integrated Security=True;AttachDBFilename=C:\mydb.mdf;Initial Catalog=mydb;Connect Timeout=60;User Instance=True"

      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