---
title: "SP/Invoke -- Stored Procedure Invocation Code Generator for VB, C# and JScript.NET"
url: "https://osherove.com/blog/2003/5/28/spinvoke-stored-procedure-invocation-code-generator-for-vb-c.md"
canonical: "https://osherove.com/blog/2003/5/28/spinvoke-stored-procedure-invocation-code-generator-for-vb-c.html"
published: "2003-05-28T14:55:00"
updated: "2003-05-28T14:55:00"
tags: [".Net Quotations", "Cool Tools"]
author: "Roy Osherove"
description: "\" SP/Invoke generates code to allow C#, VB or JScript.NET programmers to invoke SQL Server stored procedures as if they were static methods on CLR classes. Posted on the Code Project. Created by Simon Wilson.\" [via…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# SP/Invoke -- Stored Procedure Invocation Code Generator for VB, C\# and JScript.NET

By Roy Osherove May 28, 2003 In [.Net Quotations](https://osherove.com/blog/category/net-quotations), [Cool Tools](https://osherove.com/blog/category/cool-tools)

**Historical article** · Originally published May 28, 2003; technical details may be outdated.

> "[_SP/Invoke_](http://www.codeproject.com/dotnet/spinvoke.asp) _generates code to allow C#, VB or JScript.NET programmers to invoke SQL Server stored procedures as if they were static methods on CLR classes._

_Posted on the Code Project. Created by Simon Wilson."_

\[via [Sanjay's Coding Tips](http://sastools.com/b2)\]

## More in .Net Quotations

[All posts in .Net Quotations](https://osherove.com/blog/category/net-quotations)

- May 30, 2003

    ### [Remoting Events May Break in V1.1](https://osherove.com/blog/2003/5/30/remoting-events-may-break-in-v11.html)

- May 28, 2003

    ### [Paper Prototyping](https://osherove.com/blog/2003/5/28/paper-prototyping.html)

- May 27, 2003

    ### [Good Stuff](https://osherove.com/blog/2003/5/27/good-stuff.html)

- May 26, 2003

    ### [Dynamic Invocation with Reflection.Emit](https://osherove.com/blog/2003/5/26/dynamic-invocation-with-reflectionemit.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
