Raised This Month: $ Target: $400
 0% 

SQL Column Issue.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 01-19-2007 , 14:06   Re: SQL Column Issue.
Reply With Quote #1

Code:
stock retrieve_data(query[]="",output[][32]) {     g_SqlTuple = e_core_get_sql_handle()         server_print(query)         new ErrorCode         SqlConnection = SQL_Connect(g_SqlTuple,ErrorCode,g_Error,511)     if(g_SqlTuple == Empty_Handle)         set_fail_state(g_Error)

It can be this set of code. If SQL_Connect return a 0 or Empty_Handle Then you will get that error. It because it couldn't possible connect to your database. It will return Empty_Handle and you will get Invalid Database Handle: 0

Edit.

You will get the Invalid Database Handle: 0 on native like SQL_PrepareQuery and SQL_Execute. If the Sqlconnection has an Empty_Handle
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by teame06; 01-19-2007 at 14:31.
teame06 is offline
Send a message via AIM to teame06
Reply



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

Forum Jump


All times are GMT -4. The time now is 22:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode