MVC DataSet to Model Help Needed
Primary Question: I need help to efficiently go from a dataset directly into a model (not a list).
I know the code for generating a list to model, but I can't find an efficient way to just input the first matching record into the model.
Any help is appreciated!
Below is the code that works, but is very inefficient. The inefficiency is causing problems because I need to program a lot of data retrieval while I'm rewriting the whole system.
Bonus Question... I can't get the list result to sort by UPPER(lastname). It generates the error
Error [42S22] [Microsoft][ODBC Visual FoxPro Driver]SQL: Column " is not found.
// CODE THAT WORKS BUT IS WAY TO INEFFICIENT
Studrec model = new Studrec();
DataSet dataset = new DataSet();
string Path2File = "Provider=MSDASQL/SQLServer ODBC;Driver={Microsoft Visual FoxPro Driver};SourceType=DBF;Exclusive=No;Collate=Machine;NULL=NO;DELETED=YES;BACKGROUNDFETCH=NO;SourceDB=\\\\LocalServer\\Students\\DBFS";
using (OdbcConnection cn = new OdbcConnection(Path2File))
var sql = "select studid, first, lastname,grade,homeschl,lastname,birthday,address,address2,program,city,state,zip,phone,sex,specneeds,allergies,medical,lifethreat,c1lastname,c1frstname,c1relat,c1hmphone,c1wkphone,c1cell,c1canpup,c2lastname,c2frstname,c2relat,c2hmphone,c2wkphone,c2cell,c2canpup,c3lastname,c3frstname,c3relat,c3hmphone,c3wkphone,c3cell,c3canpup,c4lastname,c4frstname,c4relat,c4hmphone,c4wkphone,c4cell,c4canpup,c5lastname,c5frstname,c5relat,c5hmphone,c5wkphone,c5cell,c5canpup
from studrec.dbf order by lastname, first where studid like '%" + @studId.Trim() + "%'";
using (OdbcCommand cmd = new OdbcCommand(sql, cn))
cn.Open();
OdbcDataAdapter DataAdapter = new OdbcDataAdapter(cmd);
DataAdapter.Fill(dataset);
List<Studrec> student = dataset.Tables[0].AsEnumerable().
Select(dataRow => new Studrec()
StudId = dataRow.Field<string>("studid"),
First = dataRow.Field<string>("first"),
LastName = dataRow.Field<string>("lastname"),
Grade = dataRow.Field<string>("grade"),
Homeschl = dataRow.Field<string>("homeschl"),
Address = dataRow.Field<string>("address"),
City = dataRow.Field<string>("city"),
State = dataRow.Field<string>("state"),
Zip = dataRow.Field<string>("zip"),
Prog = dataRow.Field<string>("program"),
Phone = dataRow.Field<string>("phone"),
Sex = dataRow.Field<string>("sex"),
Birthday = dataRow.Field<string>("birthday"),
}).ToList();
//}).FirstOrDefault(); // THIS DOESN'T WORK
//THIS IS MY WORK AROUND
model.StudId= student.First().StudId;
model.First=student.First().First;
model.LastName=student.First().LastName;
model.School=student.First().School;
model.Grade=student.First().Grade;
model.Address = student.First().Address;
model.City = student.First().City;
model.State = student.First().State;
model.Phone = student.First().Phone;
model.Sex = student.First().Sex;
model.Birthday = student.First().Birthday;
Hello,
Specifically, this should be asked in the
ASP.Net MVC forum on forums.asp.net.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book: Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})
Similar Messages
-
Extremely slow 20" iMac G5 (iSight model) Help needed!!
Hi Everyone
Okay, I've spent the best part of the last two days troubleshoooting this machine for a friend of mine.
SYMPTOM
Her iMac is running slowly fullstop. It boots slowly and trying to perform any functions only results in the "beachball" pointer for a long time before the computer responds. Example: Clicking on the Apple Menu can take over a minute to display the options. Select an option and you wait over another minute before the computer displays the result. This is the same for anything you do - within the Finder or any other app!
WHAT I'VE DONE SO FAR
Okay, here is a list of everything that I've done so far:
Disk Utility: Repaired disk permissions 3 times whilst booted in safe mode. No improvement!
Disk Utility: Repaired disk permissions 2 times whilst booted in normal mode. No improvement!
Disk Utility: Repaired disk 2 times whilst booted in normal mode. No improvement!
Zapped PRAM 3 times. No improvement!
Decided to take the plunge and eliminate the HD and OS as possible culprits:
Started computer in Target Disk Mode and connected it to a PowerBook G4 (i.e. another PPC Mac)
performed a backup
Disk Utility: reformatted hard drive 3 times
TechTool Pro: Read/Write Test on hard drive - passed!
TechTool Pro: Surface Scan on entire hard drive - passed! (yes, all 488,397,168 blocks after 17hrs 25mins)
reinstalled Mac OS X Leopard (10.5.6) from an original Apple retail DVD
Booted iMac - now starts up in about 3mins 30 secs (as opposed to a lot longer earlier)Tried using the Finder to perform basic Mac OS X functions (e.g. open system preferences, access About This Mac, etc). STILL TAKES A LONG TIME - Very little improvement!!!
Removed the 2GB DDR2 SDRAM from iMac's RAM slot
Booted iMac - still starts up in about 3mins 30 secs
Tried using the Finder to perform basic Mac OS X functions (e.g. open system preferences, access About This Mac, etc). STILL TAKES A LONG TIME - no improvement over having the extra RAM installed!!!
Re-inserted the extra 2GB RAM DIMM back into iMac
Ran TechTool Pro to test hardware (everything passes, including memory).
Okay, so now I'm at a loss. Any suggestions would be most welcome and appreciated!
Thanks!
Joe.Actually, I haven't tried Rember, thinking that since the computer displayed the same behavior without the extra SDRAM installed as it does with it installed, that it couldn't be the RAM. And the factory RAM is soldered on, so I can't do anything about that. Still, RAM is what I was suspecting originally (after the HD), so I'll go ahead now and run Rember on it.
Since you're online, I'd appreciate your opinion on something else I've identified. Since reinstalling the system, the computer boots a lot quicker than it was, but as I said it is still extremely slow performing functions once booted. HOWEVER, I've noticed that now once a particular function is performed once, it can be performed again and again quickly.
EXAMPLE
Clicking on the Finder icon in the Dock the first time takes the computer 26 seconds to open a finder window. Do it again and it appears instantly. Likewise, selecting clicking on the Trash icon in the Dock took 31 seconds the first time to open it up. After that it opens up instantly. It's the same with using the Apple Menu, etc.
If I reboot the computer, the same thing happens all over again. Any ideas what this may mean?
Thanks very much for your help!
Joe. -
HT4623 cant find software updates on my iphone4 model MC605J.Need help please..
cant find the sofware update on my phone model MC60J
Need help please..What happens when you connect the iPhone to the computer you
usually sync with and use iTunes on that computer to update the
iPhone?
What version of iOS is currently on your iPhone? -
Help needed asap! I want to buy an IPAD 3G + Wifi before I return to my country from the US. The problem is that I have GSM service providers in my country that provide 3G services but I am wondering if their SIM card would work in the IPAD? In other words, can I get an unlocked IPAD 3G wifi? Thanks for helping out
The AT&T 3G iPads (which are GSM/sim based) in the US are not locked (the Verizon models are CDMA based so they effectively are). So as long as you can get a sim in your own country you shouldn't have a problem
-
File missing (file\BCD error code 0Xc0000034 help need for work!
file missing (file\BCD error code 0Xc0000034 help need for work! what can i do?
have an p 2000 notebook pcHi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
What is the model or product number of your notebook? What version of Windows is installed?
Guide to finding your product number
Which Windows operating system am I running?
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
1941W configuration help needed
Our Deployment Scenario:-
1941W Gigabit Ethernet 0/0 is connected to the PPOE connection of the ISP.
Gigabit Ethernet 0/1 is connected to the wired LAN
I have created 2 wireless radio Cisco_Kamran_BGN which is operating at 2.4 Ghz Devices and Cisco_Kamran_A which is operating at 5Ghz Devices.
I have created 2 VLans for the Wireless.
Vlan 10 for Cisco_Kamran_A 192.168.10.x
Vlan 11 for Cisco _Kamran_BGN 192.168.11.X
The problem is the Wireless users are not getting the IP address from the respective DHCP server which has been configured on the Router.
Can please any from the community help me and show me where I am missing the configuration.
Please find my router & ap configuration below.
Router Configuration
Router#
sh run
Building configuration...
Current configuration : 3022 bytes
! No configuration change since last restart
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
hostname Router
boot-start-marker
boot-end-marker
enable secret 5 $1$TdQt$npYeaf/W0kRElcfMggzJ31
no aaa new-model
service-module wlan-ap 0 bootimage autonomous
no ipv6 cef
ip source-route
ip cef
ip dhcp excluded-address 192.168.1.1 192.168.1.50
ip dhcp excluded-address 192.168.10.1 192.168.10.10
ip dhcp excluded-address 192.168.11.1 192.168.11.10
ip dhcp pool DHCP
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 195.229.241.222 213.42.20.20
ip dhcp pool Cisco_Kamran_A
network 192.168.11.0 255.255.255.0
default-router 192.168.11.1
dns-server 195.229.241.222 213.42.20.20
ip dhcp pool Cisco_Kamran_BGN
network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
dns-server 195.225.241.222 213.42.20.20
multilink bundle-name authenticated
crypto pki token default removal timeout 0
license udi pid CISCO1941W-E/K9 sn FCZ1553C1VK
hw-module ism 0
redundancy
bridge irb
interface Embedded-Service-Engine0/0
no ip address
shutdown
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
interface wlan-ap0
description Service module interface to manage the embedded AP
ip unnumbered GigabitEthernet0/0
arp timeout 0
no mop enabled
no mop sysid
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 1
interface Wlan-GigabitEthernet0/0
description Internal switch interface connecting to the embedded AP
switchport mode trunk
no ip address
interface Vlan1
no ip address
interface Vlan10
ip address 192.168.10.1 255.255.255.0
ip access-group DSL_ACCESSLIST in
ip nat inside
ip virtual-reassembly in
interface Vlan11
ip address 192.168.11.1 255.255.255.0
ip access-group DSL_ACCESSLIST in
ip nat inside
ip virtual-reassembly in
interface Dialer1
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 1
ppp authentication pap callin
ppp pap sent-username xxxxxx password 0 xxxxxx
ppp ipcp route default
ip forward-protocol nd
no ip http server
no ip http secure-server
ip nat inside source list DSL_ACCESSLIST interface Dialer1 overload
ip access-list extended DSL_ACCESSLIST
permit ip 192.168.0.0 0.0.255.255 any
control-plane
line con 0
password xxxxxx
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line 67
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
line vty 0 4
password xxxxxx
login
transport input all
scheduler allocate 20000 1000
end
Router#
Router#
Router#
Access Point Configuration
ap#
ap#
ap#
sh run
Building configuration...
Current configuration : 2603 bytes
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
hostname ap
enable secret 5 $1$JxdQ$a2/00bWJuhUKP9QLC94YD/
no aaa new-model
dot11 syslog
dot11 ssid Cisco_Kamran_A
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 7 1045081417161C5A555C7A7B
dot11 ssid Cisco_Kamran_BGN
authentication open
authentication key-management wpa
guest-mode
wpa-psk ascii 7 020D05561907017015165949
username Cisco password 7 14341B180F0B
bridge irb
interface Dot11Radio0
description 802.11bgn radio
no ip address
no ip route-cache
encryption mode ciphers aes-ccm
broadcast-key change 3600
ssid Cisco_Kamran_BGN
antenna gain 0
station-role root
bridge-group 11
bridge-group 11 subscriber-loop-control
bridge-group 11 block-unknown-source
no bridge-group 11 source-learning
no bridge-group 11 unicast-flooding
bridge-group 11 spanning-disabled
interface Dot11Radio1
description 802.11a radio
no ip address
no ip route-cache
encryption mode ciphers aes-ccm
ssid Cisco_Kamran_A
antenna gain 0
no dfs band block
channel dfs
station-role root
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface GigabitEthernet0
description the embedded AP GigabitEthernet 0 is an internal interface connecting AP with the host router
no ip address
no ip route-cache
bridge-group 1
no bridge-group 1 source-learning
bridge-group 1 spanning-disabled
interface GigabitEthernet0.10
description 802.11a bridge
encapsulation dot1Q 10
no ip route-cache
bridge-group 10
bridge-group 10 subscriber-loop-control
bridge-group 10 block-unknown-source
no bridge-group 10 source-learning
no bridge-group 10 unicast-flooding
bridge-group 10 spanning-disabled
interface GigabitEthernet0.11
description 802.11bgn bridge
encapsulation dot1Q 11
no ip route-cache
bridge-group 11
bridge-group 11 subscriber-loop-control
bridge-group 11 block-unknown-source
no bridge-group 11 source-learning
no bridge-group 11 unicast-flooding
bridge-group 11 spanning-disabled
interface BVI1
ip address dhcp client-id GigabitEthernet0
no ip route-cache
ip http server
no ip http secure-server
ip http help-path http://www.cisco.com/warp/public/779/smbiz/prodconfig/help/eag
bridge 1 route ip
line con 0
no activation-character
line vty 0 4
login local
end
ap#
ap#
ap#Hi Stepehen,
Did the configuration as per your advice but i am getting the below mentioned error which i have highlighted it in red. Please advice what needs to be done.
Home
Re: 1941W configuration help needed
created by Stephen Rodriguez in Getting Started with Wireless - View the full discussion
conf t
interface Dot11Radio0
no ssid Cisco_Kamran_BGN
no encryption mode ciphers aes-ccm
exit
interface Dot11Radio1
no encryption mode ciphers aes-ccm
no ssid Cisco_Kamran_A
exit
dot11 ssid Cisco_Kamran_A
vlan 10
dot11 ssid Cisco_Kamran_BGN
vlan 11
exit
interface Dot11Radio0
encryption vlan 11 mode ciphers aes
ssid Cisco_Kamran_BGN
exit
interface dot11radio0.1
encapsulation dot1q 1 native
bridge-group 1
interface dot11radio 0.11
encapsulation dot1q 11
bridge-group 11
Configuration of subinterfaces and main interface
within the same bridge group is not permitted
exit
interface Dot11Radio1
encryption vlan 10 mode ciphers aes-ccm
ssid Cisco_Kamran_A
interface dot11radio1.1
encapsulation dot1q 1 native
bridge-group 1
interface dot11radio1.10
encapuslation dot1q 10
bridge-group 10
Configuration of subinterfaces and main interface
within the same bridge group is not permitted
end
wr
Reply to this message by going to Home
Start a new discussion in Getting Started with Wireless at Home -
Hi
My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
Problem i am facing is upload is ending up with error mesg. Error Mesg are
<b>Error 8 when starting the extraction program - R3019
Error in Source System - RSM340
Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
Its quite urgent bcoz this error is occuring in Production system.
Plzzzz urgent help needed.
Thanks
Rohini
Message was edited by: Rohini Gargrohini,
go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
ryan. -
Help Needed for T42 Start-up Problem
Urgent help need!!!
I have a ThinkPad T42 with Windows XP installed. It works perfectly for a while without ever have any problem or error message. Then suddenly it won’t work anymore. The symptom is following:
After power on the laptop the Microsoft window would show up and it prompt me for window logon password. After I type in the password it then shows “window is loading your personal setting”. After a long while nothing would show up on the screen other than the background of the normal screen. There is no window bar at the bottom or any icon on the screen. If I start in safe mode then everything would show up. I don’t know what is going on.
This happened two months ago and I ended up restoring a backup image to get it work again. It happens again today with the same symptom. I am really tired of having to restore image backup every 2 months.
I would really appreciate it if any of your experts can offer me some insight into this problem. I am desperate in need of help.
Thanks very much!wangy26, welcome to the forum,
Have a look at this thread to see if my post there helps. The problem seems to mostly occur at the start of a month, why I don't know. Unfortunately the member didin't report back whether or not this was a viable solution for them.
Andy ______________________________________
Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
Deutsche Community Comunidad en Español English Community Русскоязычное Сообщество
PepperonI blog -
Help needed on online theme creation for mobile phones
Hello everybody,
I want to create an web application which will create themes for different mobile phones. In that application end user can upload jpg/gif images of there choice and select the mobile phone make like Nokia and also the model number like 6030. After that they can create their desired theme by clicking on a button and also can download it.
My main problem is how to convert an image into a mobile phone theme (*.thm or *.nth or *.sis).
Can anybody give any suggestion on this matter?
Thanks in advance.
TanmoyHi everybody,
My main problem is how to convert an image into a mobile phone theme (*.thm or *.nth or *.sis).
Please give me any guideline that I can proceed.
Help needed.
Thanks in advance.
Tanmoy -
Messaging:System Error(-10)HELP NEEDED!NEED BEFORE...
Messaging: System Error(-10) [Nokia N70] URGENT HELP NEEDED! - NEEDE BEFORE WED 21ST MAY '08 - BUT HELP OTHERWISE APPRECIATED!______________________________
Hey,
I need this help before Wednesday 21st May 2008 as I am going abroad and urgently need my phone. I have had my phone for just over a year now and I have never had any problems with it up until now.... Think you can help...?
This is the scenario. My messages are saved under my nokia N70's MMC memory card and when I get a message there are a number of problems.
1) My phone does not vibrate or alert me when a message comes in. I have checked my profile settings and they are all up to volume.
2) When the messages come through they are not displayed on the main window of the phone as "1 New Message Received" but in the top corner with a little envelope icon. I know the icon normally comes up but the "1 New messge received part doesn't come up.
3)When "1 New Message Reveived" is not displayed on the main window I go into the "INBOX". When I click inbox on "Messaging" the phone displays an error saying: Messaging: System Error(-10) with a red exclamaion mark. The I can not write any messages, view sent, or drafts.
I have tried to change me message settings by going on "Messaging"> Left Click "Settings" > "Other" > "Memory in use" and selected "Phone Memory". This works but then my I looses all my previous messages.
4)My phone is also dead slow. I click menu and it takes at least five minutes to load menu.
IF YOU COULD HELP ME ON ANY OF THESE ISSUES I WOULD BE MAJORLY GREATFUL!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thanks Soo Much,
Robert__________U said in another post u've tried all my solutions = =?
On that post its for Nokia N95 u kno? Although the problem is similar, but different phone model can lead to quite different solutions.
Are u sure u tried all my solutions?
have u tried this?:
/discussions/board/message?board.id=messaging&message.id=7926#M7926
Also format ur memory card, do not use content copier! dont install too much softwares, as ur phone model is old and doesnt have much space.
This is from NOkia, sometimes does work depending on ur situation:
Memory low
Q: What can I do if my device memory is low?
A: You can delete the following items regularly to avoid
memory getting low:
• Messages from Inbox, Drafts, and Sent folders in Messaging
• Retrieved e-mail messages from the device memory
• Saved browser pages
• Images and photos in Gallery
To delete contact information, calendar notes, call timers, call cost timers, game scores, or any other data, go to the respective application to remove the data. If you are deleting multiple items and any of the following notes are shown: Not enough memory to perform operation. Delete some data first. or Memory low. Delete some data., try deleting items one by one (starting from the smallest item).
use device status http://handheld.softpedia.com/get/Desktop-and-Shell/Windows/Nokia-Device-Status-57673.shtml
to maybe let me see what u got on ur phone (by saving/exporting report).
Make sure u have the latest firmware! Updating firmware is like a hard reset but also upgrade.
Message Edited by goldnebula on 20-May-2008 02:05 PM -
[HELP] need TX2 recovery DVD/Image
[HELP] need TX2 recovery DVD/Image HP won't repair it b/c i dont have the original software....can someone provide me an image or i will pay $ for DVD plz full model is TX2-1024CA
That is a notebook PC. Maybe this document will help? http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00810334&cc=us&dlc=en&lc=en&jumpid=reg_R1002_US...
... an HP employee expressing his own opinion.
Please post rather than send me a Message. It's good for the community and I might not be able to get back quickly. - Thank you. -
I cannot configure yahoo small business after upgrading to Mavericks Help needed
Hi Guys,
it is as simple as that:
I cannot configure yahoo small business after upgrading to Mavericks Help needed
ThanksPlease read this whole message before doing anything.
This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches.
Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test. -
Troubleshooting help needed: My iMac keeps crashing and restarting with a notice: "Spinlock application timed out" What can I do?
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
But not sure that my lenses will work.
I have a 170mm/ 500mm APO Sigma.
A 10/20 ex Sigma HSM IF.
And a 180 APO Sigma Macro or do I have to scrap them and buy others.
ALL Help will be greatly received. Yours BRODIEIn short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
Weekend Travelers Blog | Eastern Sierra Fall Color Guide
Maybe you are looking for
-
I have changed Internet providers and have finally managed to update my primary email details under the Apple ID manage your account area. However my old email details are still showing up when I try to update my apps etc. Can anyone please tell me w
-
Error in Integration of Defect Module of HP QC with SolMan Ehp 1
Hi, We are using QC version 10 patch 12 and connected with SolMan Ehp 1 for testing. We are facing a problem in integrating the defect module of QC with Service desk of SolMan. The required settings are done in SPRO -> SAP Solution Manager -> Scenari
-
Mac Pro | Mac OSX 10.6.8 | iPhone 4 | iPhone 5 | iTunes 10.7 (21) SYMPTOM: Syncing iPhone 4/4s/5 with iTunes and all music content is greyed out. [Mac Platform] Friends, I had epic issues with my iPhone 4 (After upgrading to iOS6) & my new iPhone 5.
-
I've been having problems with my broadband connection for a few days and according to my ISP there is nothing wrong with the line or modem. They've told me that the cause of the problem is that my computers aren't releasing the IP addesses. Even whe
-
hello I am trying to run a sync interface RFC2WS. I recieve the message and in the response I recieve this message: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> - <!-- Call Adapter --> - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Mes