Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 24th, 2005, 02:20 PM
concentricsoft concentricsoft is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: NC, USA
Posts: 2 concentricsoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 14 sec
Reputation Power: 0
Unhappy fbclient.dll and API calls

I am using the same old calling conventions used under gds32.dll for isc_add_user, isc_delete_user, and isc_modify user. None of the calls I make are working, and I don't know what to make of the returned status codes since I can't find a reference table with that data. Can someone please lead me in the right direction? I am using Firebird 1.5.2.4731. Sample code attached.

procedure ChangePassword;
var
userData: TUserSecData;
status: array[0..19] of ISC_STATUS;
begin
userData.user_name := 'user1';
userData.password := 'welcome1'; //new password
userData.server := 'MYSERVER:C:\TestDB.GDB'
userData.protocol := sec_protocol_tcpip;
userData.dba_user_name := 'sysdba';
userData.dba_password := 'masterkey';
userData.sec_flags := sec_server_spec or
sec_password_spec or
sec_dba_user_name_spec or
sec_dba_password_spec;

isc_modify_user(@status, @userData);
end;

Last edited by concentricsoft : February 24th, 2005 at 02:28 PM. Reason: Add info

Reply With Quote
  #2  
Old February 24th, 2005, 03:06 PM
concentricsoft concentricsoft is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Location: NC, USA
Posts: 2 concentricsoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 14 sec
Reputation Power: 0
Nevermind

I am officially a complete and utter ideot. The server name needs only be the hostname of the machine the database is on. I will now go bang my head on the wall.

Reply With Quote
  #3  
Old February 25th, 2005, 08:06 AM
fikret fikret is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Location: Sarajevo, Bosnia
Posts: 111 fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level)fikret User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 5 h 17 m 43 sec
Reputation Power: 7
Quote:
Originally Posted by concentricsoft
I am officially a complete and utter ideot. The server name needs only be the hostname of the machine the database is on. I will now go bang my head on the wall.


LOL )


--
Best regards,
Fikret Hasovic http://fikret.fbtalk.net
USAID TAMP Senior Programmer
FirebirdSQL Foundation member.
- Join today at http://www.firebirdsql.org/ff/foundation
JEDI VCS contributor
http://jedivcs.sourceforge.net/

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > fbclient.dll and API calls


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway