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. General Programming
  3. C#
  4. SQL Server Connection with C# program

SQL Server Connection with C# program

Scheduled Pinned Locked Moved C#
databasesql-servercsharpsysadminsecurity
4 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.
  • U Offline
    U Offline
    unitecsoft
    wrote on last edited by
    #1

    Hi everybody I have a sort of strange problem . On my computer I have VS2003 and MSSQL server 2000 . for a long period I have been running my application under development with no problem . I had to format my PC , reinstall SQL server and VS2003 with same application when database connection start to fail . I am using SQLdataconnection with connection string and using windows authentication for the SQL server . the strange part is that when I log in as administrator at starting the computer , the connection will work only once . then start failing all the time . Any one having an Idea about this situation . UnitecSoft We will either find a way or make one .

    P 1 Reply Last reply
    0
    • U unitecsoft

      Hi everybody I have a sort of strange problem . On my computer I have VS2003 and MSSQL server 2000 . for a long period I have been running my application under development with no problem . I had to format my PC , reinstall SQL server and VS2003 with same application when database connection start to fail . I am using SQLdataconnection with connection string and using windows authentication for the SQL server . the strange part is that when I log in as administrator at starting the computer , the connection will work only once . then start failing all the time . Any one having an Idea about this situation . UnitecSoft We will either find a way or make one .

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Sounds like some kind of user privilege problem.  Does it work if you are not using Windows Authentication?

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer

      U 1 Reply Last reply
      0
      • P Paul Conrad

        Sounds like some kind of user privilege problem.  Does it work if you are not using Windows Authentication?

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer

        U Offline
        U Offline
        unitecsoft
        wrote on last edited by
        #3

        I Don't think its a user privilege problem , no reason to have a successful connection in the first run then a failure connection in the second run while no changes in anything between the two runs . could it be a setup parameters problem for the .NET framework or SQL server . I will try to change windows Authentication to sqlserver security . UnitecSoft We will Either Find A Way Or Make One .

        U 1 Reply Last reply
        0
        • U unitecsoft

          I Don't think its a user privilege problem , no reason to have a successful connection in the first run then a failure connection in the second run while no changes in anything between the two runs . could it be a setup parameters problem for the .NET framework or SQL server . I will try to change windows Authentication to sqlserver security . UnitecSoft We will Either Find A Way Or Make One .

          U Offline
          U Offline
          unitecsoft
          wrote on last edited by
          #4

          hi everyone Just to share the information , The reson of being unable to connect to sql server database via C# application was due to the anti virus protection I am useing ( Kaspersky ) . Disabling this program will solve the problem . maybe there is a certain setting within Kaspersky to allow or deny this access . :-D UnitecSoft We will Either Find A Way Or Make One .

          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