Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
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:
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  
Old April 15th, 2008, 12:48 PM
vkaluv vkaluv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 11 vkaluv New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 3 h 44 m 37 sec
Reputation Power: 0
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.

Reply With Quote
  #17  
Old April 15th, 2008, 12:54 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
Quote:
Originally Posted by pabloj
...
Also, consider that "anywayz" and other slang is something frowned upon here, again, try to make easy and pleasant for others to solve your problems.
... by properly formatting your code (I did it for you this time)

Reply With Quote
  #18  
Old April 15th, 2008, 12:55 PM
vkaluv vkaluv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 11 vkaluv New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 3 h 44 m 37 sec
Reputation Power: 0
thank you much .. i dint mean to hurt you guys at any point ...i m sorryy

Reply With Quote
  #19  
Old April 15th, 2008, 01:08 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
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 ...
sql Code:
Original - sql Code
  1. SELECT p.IP
  2. FROM GENINTTOQUAD(3520061480) p
(which should turn into 209.207.224.40) and I got this error ...
Quote:
SQL Message: -802
Arithmetic overflow or division by zero has occurred
I'd suggest reviewing your code before anything else.
Also note that an ip address is 15 chars, not 16

Reply With Quote
  #20  
Old April 15th, 2008, 01:14 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
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

Reply With Quote
  #21  
Old April 15th, 2008, 01:24 PM
vkaluv vkaluv is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 11 vkaluv New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 3 h 44 m 37 sec
Reputation Power: 0
thank you.. i will try it out and let u knw

Reply With Quote
  #22  
Old April 21st, 2008, 03:30 AM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,707 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 2 h 38 m 50 sec
Reputation Power: 259
Quote:
Originally Posted by pabloj
... the feature not supported is wrapping it into a view ...
Just read it will be in 2.5, see CORE-886

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Help with view and stored procedure..


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 3 hosted by Hostway