|
-
Aug 25th, 2006, 12:28 AM
#1
Thread Starter
Addicted Member
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:
Dim ob As New System.Data.OleDb.OleDbConnection
ob.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=ivcontrol;Password=ivcontrol43;Initial Catalog=InventoryControl;Data Source=202.163.115.116"
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]
-
Aug 25th, 2006, 01:33 AM
#2
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
-
Aug 25th, 2006, 11:38 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|