473,378 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Calling Encrypt2 function from Sqlserver select query

I use a database that has user names stored in Encrypted format using
the following API.

Declare Sub Encrypt2 Lib "QPRO32.DLL" (ByVal Work As String, ByVal
PASSWORD As String)

Every time i require the user name i have to again decrypt the name
using the same function.

My problem is that when i fetch a large number of records i have to
loop through every record and call the encrypt function for each
record.Instead of binding the recordset to my control i need to loop
through and fill my control
A MSHFlexGrid in Vb6.0.

Is there a way out to this problem that will make my record populatiog
faster withoutout changing the current Encrypted users.

Thanx in Advance
Jul 23 '05 #1
2 3337

"Udit Handa" <ud********@hotmail.com> wrote in message
news:82*************************@posting.google.co m...
I use a database that has user names stored in Encrypted format using
the following API.

Declare Sub Encrypt2 Lib "QPRO32.DLL" (ByVal Work As String, ByVal
PASSWORD As String)

Every time i require the user name i have to again decrypt the name
using the same function.

My problem is that when i fetch a large number of records i have to
loop through every record and call the encrypt function for each
record.Instead of binding the recordset to my control i need to loop
through and fill my control
A MSHFlexGrid in Vb6.0.

Is there a way out to this problem that will make my record populatiog
faster withoutout changing the current Encrypted users.

Thanx in Advance


From a server perspective, you could consider writing an extended stored
procedure to decrypt more than one user name and return them all in a result
set. (Or wait for MSSQL 2005 and write a stored proc using the .NET CLR to
do the same thing.) Although then you'd probably want to encrypt the network
traffic to the client, to prevent the unencrpyted user names going over the
network. If that doesn't help, I suspect you'll get better suggestions in a
VB or client-side forum as to how to process your grid most efficiently.

Simon
Jul 23 '05 #2
Depends on your reasons for using encryption. Assuming your database is
in a physically secure location then network protocol encryption will
be adequate for many applications. For the rest there are third party
applications and you can Google for those.

--
David Portas
SQL Server MVP
--

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joel Thornton | last post by:
Is it possible to call a user-defined function without prefixing it with 'dbo.' within a SELECT clause somehow? Just curious; it's not a big issue but just a stylistic one for me. Thanks! ...
2
by: tango | last post by:
In Excel VBA, I've established an ODBC connection to a SQLServer db, and I can do a successful SELECT query, but I'm having trouble doing an UPDATE query. When I run the following code, I get...
5
by: alingsjtu | last post by:
Hello, every body. When execute dynamic generated multiple OPENQUERY statements (which linkes to DB2) in SQLServer, I always got SQL1040N The maximum number of applications is already connected...
1
by: Darsin | last post by:
Hi, I have three tables with there fields given in brackets: User: (PK), Divisions: (PK), DivisionsOfUsers: , the "DivisionsOfUsers" tables has many-to-many relationships between userid...
4
by: MLH | last post by:
I have the following saved UNION query named qryPeople2NameInNPaperAd: SELECT & " " & & " " & & " " & & ", " & & " " & AS Item, tblVehicleJobs.VehicleJobID FROM tblVehicleJobs INNER...
2
by: pmacdiddie | last post by:
I have this sql that comes from the debug screen... where it fails in code. 'First' is not a recognized function name. I had this running on another machine where it did not question the...
2
by: Dinesh | last post by:
Hi experts, I am working on SQL Server 2005. Now i have to write a query which will extract some information from a table. My main table is having few columns supose 3 columns. EmpID ...
4
by: raghuvendra | last post by:
Hi I have a jsp page with 4 columns: namely Category name , Category order, Input field and a submit button. All these are aligned in a row. And Each Category Name has its corresponding Category...
8
Cintury
by: Cintury | last post by:
The problem is I have a function that I've created and stored in a module. I call it as an expression (e.g. total: Function(parameter)). I'm receiving the error 3061: too few parameters, expected 1....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.