Wondering if anyone can help me with this. I have a query that returns results just fine in MSSQL, however when I run it in my code, it returns 0 rows. Here's the query:
SELECT m.Email FROM o.dbo.mem m, o.dbo.roleKey u, o.dbo.role r WHERE r.RoleName = 'Member' AND r.rid = u.rid AND u.uid = m.uid
And in the code:
cmd.CommandText = "SELECT m.Email FROM o.dbo.mem m, o.dbo.roleKey u, o.dbo.role r WHERE r.RoleName = 'Member' AND r.rid = u.rid AND u.uid = m.uid";
cmd.Connection = sqlConnection1;
sqlConnection1.Open();
Object rowsR = cmd.ExecuteNonQuery();
SqlDataReader reader = cmd.ExecuteReader();
sqlConnection1.Close();
rowsR returns -1. Again, the query works when I run it in MSSQL.
I tried to re-write it with joins, so here is it rewritten a different way, however this doesn't work either. I had to hard code the role values, so I'd prefer to simply fix the first way.
SELECT m.Email FROM o.dbo.mem M JOIN o.dbo.roleKey U ON M.uid = U.uid WHERE rid = 'Key1' OR rid = 'Key2'
I'm really new to Visual Studios. I used Visual Basic about 6 years ago in High School, and have been thrown into Visual Studios in order for this semester long project. So, I may be over looking something incredibly simple, but I'm learning it as I go along.
I also understand that the database isn't set up in the best way, but it's what I've been given and I can't change the structure at this point.
Well I've done a grand total of nothing, and it now clocks between 2010mhz and 1995mhz (stock is 1710mhz) and hovers around 80c, warmer than it used to, but tolerable clocks seem to have returned.
Thanks for all the advice on this thread. Will review the evidence and make a choice.
Audacious 4.6.1 by Razvan Serea
Audacious is a lightweight, open-source audio player that emphasizes simplicity, performance, and sound quality. Designed for Linux, Windows, and macOS, it supports a wide range of audio formats, internet radio streaming, and playlist management. Users can customize the interface with Winamp-style skins or modern themes, making it flexible for different preferences. Audacious also includes an equalizer, advanced audio effects, and a plugin system for extending functionality. Its low resource usage makes it especially suitable for older computers or users who value efficiency without sacrificing playback quality.
Audacious key features:
High audio quality – delivers clean, gapless playback with minimal distortion.
Wide format support – plays MP3, FLAC, Ogg Vorbis, AAC, WAV, WMA, and more.
Internet radio streaming – supports Shoutcast, Icecast, and other online streams.
Winamp skin support – classic, nostalgic look for users who prefer the old-school style.
Modern GTK-based interface – clean, simple UI with a more modern feel.
Customizable themes – change appearance through skins and themes.
Advanced playlist management – organize, save, and edit playlists with ease.
Equalizer – fine-tune audio output with a built-in graphical equalizer.
Audio effects – built-in DSP options like crossfade, replay gain, and more.
Plugin system – extend functionality with additional components.
File metadata support – displays and organizes music based on tags.
Drag-and-drop support – quickly add songs or playlists.
Global hotkey support – control playback without switching windows.
Bit-perfect output modes – bypass system mixers for pure audio output.
ReplayGain support – normalizes track loudness automatically.
Cue sheet support – play entire albums from a single audio file with .cue.
MPRIS2 integration – integrates with Linux desktop environments for media controls.
Advanced resampling options – adjust playback quality with different resampler settings.
Gapless playback – seamless transition between tracks encoded properly.
Crossfade plugin – blend one song into the next smoothly.
Last.fm scrobbling plugin – track listening history online.
Remote control support – control Audacious via command-line or scripts.
Lyrics plugin – display song lyrics if available.
Alarm / timer plugin – start or stop playback at set times.
SOX resampler plugin – high-quality resampling for audiophiles.
Spectrum analyzer / visualization plugins – visual feedback while playing music.
Headphone crossfeed effect – simulates speaker listening for headphones.
Customizable buffer size – tweak latency and playback smoothness.
Audacious 4.6.1 changelog:
Use XDG cache dir to store temporary files (#1817)
Accept embedded lyrics in more cases (#1818)
Bump .so and plugin ABI versions retrospectively (#1819)
Include Georgian translation (#1820)
Fix build on systems using musl instead of glibc (#1823)
Download: Audacious 4.6.1 | 48.2 MB (Open Source)
Download: Portable Audacious 4.6.1 | 69.8 MB
View: Audacious Website | Screenshot
Get alerted to all of our Software updates on Twitter at @NeowinSoftware
I really wonder if this has to do with the built in VPN or "private DNS" of browsers that trip up legal requirements like cookie consent and Cloudflare (to avoid all the botnet attacks we get).
And BTW some botnets still manage to get past Cloudflare, we are constantly having to tweak it to block malicious traffic that ultimately cause a DDoS.
Question
Hendrick
Hi-
Wondering if anyone can help me with this. I have a query that returns results just fine in MSSQL, however when I run it in my code, it returns 0 rows. Here's the query:
And in the code:
rowsR returns -1. Again, the query works when I run it in MSSQL.
I tried to re-write it with joins, so here is it rewritten a different way, however this doesn't work either. I had to hard code the role values, so I'd prefer to simply fix the first way.
I'm really new to Visual Studios. I used Visual Basic about 6 years ago in High School, and have been thrown into Visual Studios in order for this semester long project. So, I may be over looking something incredibly simple, but I'm learning it as I go along.
I also understand that the database isn't set up in the best way, but it's what I've been given and I can't change the structure at this point.
Any help is GREATLY appreciated.
Thanks!
Edited by HendrickLink to comment
https://www.neowin.net/forum/topic/1135378-visual-studios-c-query-fail/Share on other sites
2 answers to this question
Recommended Posts