Results 1 to 3 of 3

Thread: Strange Problem

  1. #1

    Thread Starter
    Addicted Member hyousuf2's Avatar
    Join Date
    Dec 2004
    Location
    Dublin
    Posts
    226

    Strange Problem

    im having a strange problem that i can access a database thru a desktop application but not able to do that in a web application, here's da code, used in both places

    VB Code:
    1. Dim ob As New System.Data.OleDb.OleDbConnection
    2.         ob.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=ivcontrol;Password=ivcontrol43;Initial Catalog=InventoryControl;Data Source=202.163.115.116"
    3.         ob.Open()
    Women ...r like tea bags, you neva know how strong they really r untill u put them in hot water

    Huzefa Yousuf
    Software Engineer
    Verticity Inc.
    +92-345-2235303

    [email protected]

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: Strange Problem

    If you are trying to connect to SQL Server then you should be using System.Data.SQLClient.SQLConnection and not OleDBConnection.
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Strange Problem

    Would help if you told us the error message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width