Sharp as a Marble
HomeAboutContactSyndicationLogin
 

So, I'm working on some R&D code for the new Subtext 2.0 (coming soon to a harddrive near you!). Had to run a stored procedure to get some information back from the database. Simple, right?

Spent 2 hours trying to figure out why I was getting this error

System.Data.SqlClient.SqlException: Line 1: Incorrect syntax near 'sp_myStoredProcedure'

No matter what I did it pooped out on me. Spent a good bit of time researching the proper way to do a stored procedure thinking, well, it is .Net 2.0, maybe something's changed.

Turns out, nothing's changed. You still have to set cmd.CommandType = CommandType.StoredProcedure; If you forget to do that, you could spend 2 hours researching a stupid mistake.

I'd blame the beer, but I had none tonight.

rolled out on Tuesday, August 29, 2006 10:19 PM
Comments
# re: Insert extremely long string of profanity here - Billy Hollis

Rolled Out On: 8/30/2006 1:05 AM

If I were snarky, I'd point out this article:

Using Stored Procedures in Visual Basic .NET

But that would be mean, so I won't do it...

Comments have been closed on this topic.
 
TipJar
2A Blogger Bash
Other bloggers with guns.

News

Recently upgraded to Subtext 2.0.

Article Categories


General

Archives


October, 2008 (17)
September, 2008 (114)
August, 2008 (93)
July, 2008 (93)
June, 2008 (77)
May, 2008 (79)
April, 2008 (53)
March, 2008 (46)
February, 2008 (46)
January, 2008 (63)
December, 2007 (69)
November, 2007 (63)
October, 2007 (83)
September, 2007 (73)
August, 2007 (84)
July, 2007 (59)
June, 2007 (63)
May, 2007 (35)
April, 2007 (30)
March, 2007 (37)
February, 2007 (32)
January, 2007 (38)
December, 2006 (14)
November, 2006 (28)
October, 2006 (25)
September, 2006 (24)
August, 2006 (28)
July, 2006 (27)
June, 2006 (28)
May, 2006 (14)
April, 2006 (17)
March, 2006 (35)
February, 2006 (33)
January, 2006 (26)
December, 2005 (15)
November, 2005 (22)
October, 2005 (35)
September, 2005 (37)
August, 2005 (50)
July, 2005 (34)
June, 2005 (55)
May, 2005 (53)
April, 2005 (56)
March, 2005 (57)
February, 2005 (77)
January, 2005 (72)
December, 2004 (79)
November, 2004 (76)
October, 2004 (59)
September, 2004 (74)
August, 2004 (69)
July, 2004 (75)
June, 2004 (56)
May, 2004 (28)

Post Categories


Humor (rss)
Views (rss)
Catblogging (rss)
News (rss)
Politics (rss)
Geekdom (rss)
Recipes (rss)
Blogging (rss)
Wingnuts and Moonbats (rss)
War on Terror (rss)
Photography (rss)
Brewsky (rss)
Guns. Lots of Guns. (rss)
Daughter Blogging (rss)
TMI (rss)
Anxiety & Panic Attacks (rss)
Gun Myths (rss)
Reloading (rss)
Range Time (rss)
Anti-Rights Idiocy (rss)
Firearm Safety (rss)
A Cancer Story (rss)
Second Amendment Blog Bash (rss)
Gun Rights (rss)
Gun-Free Zones (rss)
Self Defense (rss)
The Line Is Here (rss)
Getting old sucks (rss)
NRA (rss)
2A Blog Bash (rss)
Out of sight, out of mind (rss)
Video Podcasts (rss)
Para Blackwater Training (rss)
GTI (rss)
You need this (rss)
Competitive shooting (rss)

Image Galleries


Beyond the Pale brewing session

::Other Digs


The Line Is Here

::Sharpest Marbles


Eject! Eject! Eject!
Instapundit
Iraq the Model
Protein Wisdom
QandO
Sharp as a Marble
Vodka Pundit
WILLisms
Witting Shire
Wizbang

:Second Amendment


A Keyboard and a .45
Alphecca
Another gun blog
Anthroblogogy
Armed and Safe
Call Me Ahab
Carnaby Fudge
Days of our Trailers
Double Tapper
Dustin's Gun Blog
Fighting for Liberty
Great Blue Whale
Gun Owners Against Violence
Gun Pundit
Guntards
Justin Buist
Live from the (upper) Texas Gulf Coast
MArooned
Mausers and Muffins
Mike-istan
Musings of the Geek with a 45
Notes from the American Outback
Oleg Volk
Papa Delta Bravo
Pro-Gun Progressive
Random Nuclear Strikes
Ride Fast and Shoot Straight
Roberta X
Say Uncle
Sear and Hammer
Snowflakes in Hell
The Anarchangel
The Armed Schoolteacher
The Bitch Girls
The Breda Fallacy
The Countertop Chronicles
The Law Dog Files
The Liberty Sphere
The Mad Rocket Scientist
The Madman Raves
The Other Side of Kim
The Real Gun Guys
The Sentinel
The Smallest Minority
The View From North Central Idaho
The War on Guns
View from the porch
Walls of the City
West, By God
Xavier thoughts

Blogroll


Guide to Midwestern Culture
Basil's Blog
Captain's Quarters
Coalition of the Swilling
Cold Fury
Cranky Neocon
Daily Pundit
dorkafork
File It Under
Florida Cracker
Garfield Ridge
INDC Journal
Is Full Of Crap
Medium at Large
Notes from the trenches
One Ping Only
Sean Gleeson
Sekimori
Sissy Willis
Six Meat Buffet
Speed of thought
Squeaky Wheel Seeks Grease
The Belmont Club
The Munchkin Wrangler
The Spoons Experience
The Unforgiving Minute
Tim Worstall
UNSpace
Vern's Blog

Extended Blogroll


21st Century Paladin
Bill Peschel
Cowboy Blob
Craziness
Flight Pundit
Hubs and Spokes
In the Right
Pajamaverse
PEER Review
TechnoChitlins
The Tygrrrr Express

Funny, as in Ha-ha


Ace of Spades HQ
Cox & Forkum
IMAO
ScrappleFace
The Superficial
Topic Drift
Wuzzadem

Good Reads


Drink This
Evil White Guy
Leaning to the Right
Ramble Strip
Save the Soldiers
SondraK
The Resplendent Mango
Triticale
You Big Mouth You

Tampa Area Blogs


Tampa Film Fan

My Technorati Conversations

Hang in there Mom

Cool Post-it Note Icon