Results 1 to 4 of 4

Thread: Visual Basic express sql server connection

  1. #1
    Join Date
    Dec 2008
    Posts
    70

    Visual Basic express sql server connection

    I am trying to create a connection from VB 2005 Express to a database that may created with SQL Server 2005. I have a program which I wrote that connected to a Pervasive SQL database. Now my client has switched to MSSQL Server 2005. the error i hav is "login failed for user "IFCDU1-WS23\user" (It's on window authentication where there is no password.). I changed the connection string in my program to access MSSQL Server 2005 database however when I run the program I get no errors and the update query didnt work.

  2. #2
    Join Date
    Dec 2008
    Posts
    128

    Re: Visual Basic express sql server connection

    I suspect that it's trying to use SQL Server Express by default. In the Add Connection dialog (the one where you browse to the MDF file), click the Advanced... button in the lower right. SQL Server Express disallows remote connections by default. Have you changed that behaviour so you can connect to the server from a remote machine?

  3. #3
    Join Date
    Jan 2009
    Posts
    163

    Re: Visual Basic express sql server connection

    I have solved the problem already. Its due to the administrator login. manage to get the password and run as administrator so it works. The .mdf file is in the following path (local hard disk):

    C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\

    It may be something basic, since I am beginner.

  4. #4
    Join Date
    Feb 2006
    Posts
    185

    Re: Visual Basic express sql server connection

    To set up a SQL Server 2005 database and connect it to a WinForms application written in Visual Basic 2005. Ensure that you have configured the SQL Server 2005 Listeners. By default SQL Server 2005 is locked down and needs TCP/IP enabled.The steps detailed in this series can be taken using the free tools, too -- SQL Server 2005 Express and Visual Basic 2005 Express.

Similar Threads

  1. How to create Snake game in Visual Basic 2010 express
    By BhushanB in forum Software Development
    Replies: 7
    Last Post: 22-01-2012, 04:20 PM
  2. How to use Visual Basic 2008 Express with Windows 7
    By Breath in forum Software Development
    Replies: 5
    Last Post: 28-01-2010, 04:34 PM
  3. Connect Visual Basic with SQL server database
    By samualres in forum Software Development
    Replies: 4
    Last Post: 28-11-2009, 08:37 AM
  4. Issue with connection database in Visual Basic
    By Capers in forum Software Development
    Replies: 3
    Last Post: 08-04-2009, 08:40 PM
  5. Visual Basic 2005 or Visual Basic 6
    By Aasha in forum Software Development
    Replies: 5
    Last Post: 15-01-2009, 06:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,595,923.98226 seconds with 16 queries