If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > Vb.net Database Connection

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-11, 16:41
morke morke is offline
Registered User
 
Join Date: Jul 2009
Posts: 20
Vb.net Database Connection

Hi,
I currently have a database in MS SQL2008 which is accessed via a VB2010.net app on a Local Area network. The password for the database is hardcoded within app.config file in the program. However I want to transfer the database out to the web. To that end I have set up virtual server to host the database and transferred a copy of the database with some dummy data to the site. I have written an ASP 3.5 app to login to that test database. The ASP app lets me have a secure user login via authentication within the web.config file. (SHA1). Works fine and brings me back a selection of records to a gridview. I can also make the connection from the VB2008 LAN app. However, I can not figure out how to make this latter a secure connection as is the case with the ASP program. Note: the VB2010 type app is required as it has a large number of modules for speedy data entry, etc. which will not be incorporated wtihin the web app.


Anyone any ideas.

Yours
Morke
Reply With Quote
  #2 (permalink)  
Old 02-15-11, 22:30
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
How secure do you need to go? You could always roll your own encryption if you want to stay with the config file driven approach. That alone will keep the honest folk honest.

What's the problem with incorporating your VB "modules" into your web based platform, exactly? Is it something you explored and shot down, or is there just no interest in a port?
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 02-20-11, 04:39
morke morke is offline
Registered User
 
Join Date: Jul 2009
Posts: 20
Hi Teddy,
Thanks for the reply. The reason I have not went with a full port over to ASP is speed. I cannot even remotely get the speed with ASP as I can with a Winform. The database has some 110,000 names and address details, as well as other information. A payments, table has over 3million records. At the moment in the Winform app the search module fills a grid picklist with names and other details after the second character of a surname and keeps refining it as each further character is typed. There is vitually no lag time. However, using asp (with and without AJAX) there is a very noticable time lag. This lag would be more than tolerable on a new site. However, the users (50-60) have become used to having the speed of previously having a 1GB lan connection to the server.

Yours
Mock
Reply With Quote
  #4 (permalink)  
Old 02-20-11, 04:42
morke morke is offline
Registered User
 
Join Date: Jul 2009
Posts: 20
PS
Oh! Each user currently has the actual program on their individual machines. So it is only the data which will have to travel over the net.
Mick
Reply With Quote
  #5 (permalink)  
Old 02-20-11, 16:33
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Mitigating lag on type-ahead searching is very doable. That said, don't fix what ain't broke...


If they're all coming on on the same network does that mean they're authenticated to AD at the time? I could just drop them all in to a role on SQL Server and give them connection strings with integrated security. Otherwise, it's pretty easy to switch from connectionStrings to an appSettings entry and then use your own encryption method to deal with de/encrypting the string. Wrap it up in a ConfigHelper type deal that accepts an appKey and returns the plain text connection string. It's pretty painless.

Note damn near anything other than integrated security will fail to a determined hacker with reasonable tools. If your code knows how to decrypt it, so does anyone who disassembles your code.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #6 (permalink)  
Old 02-22-11, 17:29
morke morke is offline
Registered User
 
Join Date: Jul 2009
Posts: 20
Yep, thats my problem. Am thinking of having the client keep the server in house, and either give acces over TS or, for some remote users, providing access via an ASP app.
Mick
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On