|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#16
|
|||
|
|||
|
ok i m srry at that time i dint have tables...but i gt it now....
table 1: Code:
CREATE TABLE NETWORK_ADAPTER ( ADAPTER_ID Numeric(18,0) NOT NULL, ADAPTER_TYPE Varchar(255) NOT NULL, ADVANCED_PASSWORD Varchar(32), CONTACT_LOCATION Varchar(255), CONTACT_NAME Varchar(255), HOSTNAME_DNS Varchar(255), MAC_CANONICAL Varchar(12), MANUFACTURER Varchar(255), MODEL_NAME Varchar(255), FIRMWARE_REVISION Varchar(255), SYSTEM_NAME Varchar(255), PORTS Integer NOT NULL, SERIAL_NUMBER Varchar(50), SNMP_READ_COMMUNITY_NAME Varchar(255), SNMP_WRITE_COMMUNITY_NAME Varchar(255), COMM_CONTEXT Numeric(18,0), IP_ADDRESS_INT Integer, PRIMARY KEY (ADAPTER_ID) ); table 2: Code:
CREATE TABLE NETWORK_PRINTER ( PRINTER_ID Numeric(18,0) NOT NULL, MANUFACTURER Varchar(255), MODEL_NAME Varchar(255), ADAPTER_ID Numeric(18,0) NOT NULL, PROPERTY_TAG Varchar(255), SERIAL_NUMBER Varchar(255), FIRMWARE_REVISION Varchar(255), LIFETIME_PAGE_COUNT Numeric(18,0), MEMORY Numeric(18,0), SPEED Varchar(255), MARKING_TECHNOLOGY Varchar(255), COLOR Varchar(255), COPY Smallint, SCAN_TO_FAX Smallint, SCAN_TO_EMAIL Smallint, SCAN_TO_NETWORK Smallint, RECIEVE_FAX Smallint, PROFILE Smallint, ESF Smallint, DUPLEX Smallint, COPIER_OPTION_NAME Varchar(255), ADAPTER_PORT Integer, PRIMARY KEY (PRINTER_ID) ); can u pls help me out.... ![]() Last edited by pabloj : April 15th, 2008 at 12:52 PM. |
|
#17
|
||||
|
||||
|
Quote:
__________________
My blog about OpenSource Databases PDF tutorials about OSS databases, DBMonster ... Please contribute to Open Source Development, fill bug reports!!! Developer Shed eSupport Commented my.ini/my.cnf (PLEASE ADD YOUR OWN CONFIG TRICK) An introduction to database normalization Natural or Surrogate key Custom ordering for your results Correlated and uncorrelated subqueries Don't turn your outer joins into inner joins |
|
#18
|
|||
|
|||
|
thank you much .. i dint mean to hurt you guys at any point ...i m sorryy
|
|
#19
|
||||
|
||||
|
You should anyway try to post correct code, I've recreated your tables and view (what's the point of it? It's not using the stored proc), then I created the stored proc and tested it before trying to create the final view, here is the result ... (which should turn into 209.207.224.40) and I got this error ...
Quote:
Also note that an ip address is 15 chars, not 16 |
|
#20
|
||||
|
||||
|
After reviewing your code and having a working procedure you'll notice the the select query I suggested works, the feature not supported is wrapping it into a view ...
so put everything into your stored procedure |
|
#21
|
|||
|
|||
|
thank you.. i will try it out and let u knw
|
|
#22
|
||||
|
||||
|
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Databases > Firebird SQL Development > Help with view and stored procedure.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|