Hi all,
I need to replicate all the stored procedures in a database. I've generated a DDL to re-create them, but for some reason the DDL does not contain the GRANT statements required to allow my various user groups access to the procedures.
The GRANT statements are generated when I run the...
Hi all.
Does anyone know of a way in which I can search all the stored procedures in a database for a particular table name? I have to make a slight change to the structure of one of my tables and would like to know precisely which stored procs I'll have to alter as a result.
Cheers,
DaveMere
Call the stored procedure by name, in the same fashion as you would pass through any SQL string from VB. For example. you might pass a simple SQL string like so;
strSQL = "SELECT * FROM <tablename>"
Set mRs = mCn.Execute(strSQL)
To call a stored procedure you should replace strSQL with the...
Hi all.
Is it possible to re-order the contents of a 2-dimensional array according to the contents of one field?
I have an array; LOC(1 to 5, 1 to n) which consists of n returned records with 5 fields each. I'd like to reorder this array several times in the same function, each time ordering...
Thanks Dimandja, but I'm afraid I still can't get this to work.
I copy the code from that link into my application; but what do I do with the actual vbSendMail exe that I downloaded? How does my application use the vbSendMail code?
Cheers,
DaveMere
Hi all.
Is anyone familiar with sending email from VB applications using the vbSendMail download? I've downloaded the program and it works fine when running independantly. What I'd like to do though is to send an email automatically from an application of mine when a certain function is...
Hi,
I've been trying to find a way of sending emails automatically through VB, and I've been usign the MAPI functionality. Initially the system crashed because of a lack of a certain mapi32.dll file, which I have since located and copied to my C drive. Now however when I run the line...
Hello all.
I'm having problems with handling errors returned from a Sybase database. We use an ODBC driver with ADO as an access interface. The problem is when the database returns an error for some reason, the connection object supplies no numbers associated with the errors. It recognises that...
I can't find the mapi.dll anywhere. I'm a little confused about all this to be honest. We don't use Outlook Express, and the techs seem to think that direct mail from VB using mapi isn't going to work.
What about sending the mail via a direct UNIX command? Can you send a line of unix code...
Hello all.
I'm trying to send an email automatically when a certain procedure in my application runs successfully. I'm using MAPI controls to do this, but even though I've added the MAPI component to my project when I try to run the line;
MAPISession1.SignOn
I get the error;
Run time error...
Hello all.
Does anyone know of a way to call non-ascii keys through code? Like the "End" key for instance?
I'm trying to produce code that sends the cursor to the end of the text in a text box.
DaveMere
Hi all,
I'd like to prevent the input of inappropriate characters to a text box. I have an ascii check on the KeyPress event which weeds out non-numeric and non-alphabetic characters, however it is still possible to add dodgy characters via the paste option on the right-click dropdown menu. Is...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.