SqlShare.com Logo
 
Skip Navigation Links
Home
Video List
Events
Classes
About Us
Login / Register
Subscribe RSS Feed 

Confio Ignite

Using Managed Procs with SQL Compact

This video shows you how to emulate stored procedures in SQL Compact by creating managed procs in a Visual Studio 2008 project

Duration:
3 mins 31 secs
Skill Level:
100
Rating:
4.42 out of 5
Publish Date:
October 14, 2008
Using Managed Procs with SQL Compact You must be logged in to view this video.  
Bookmark and Share
 
1=Poor, 3=Good, 5=Excellent

About the Author

Image of Michael Wells
Michael is a Database Administrator for large financial firm in the Tampa Bay area and the leader of the Sarasota SQL Server User Group.

References



Comments
Tonci on 11/18/2009
Simple and to the point. Great! Thank you.

Thomas Kelley on 5/21/2010
Thanks. I was curious how the parameterized SQL differed from the select all. I will check out the project. Thanks for posting.

Marcelo Marim on 5/21/2010
Good Stuff.

Dennis Allen on 5/21/2010
Great organization

jeff ewing on 5/21/2010
really good stuff.

Thomas Lukasik on 5/22/2010
Nice.. would be even nicer if there was a sample project to download ;-)

Thomas Lukasik on 5/22/2010
Ooops.. sorry, my bad.. I missed the download until now.

Madhavi on 5/23/2010
audibility is not clear.

Team FAB on 5/25/2010
I guess you had already commented out the "alter" stuff at the top of the file for the contact stored procedure - I expected you were going to do that in the video.

Jules Wensley on 5/26/2010
Very useful

mark brito on 5/29/2010
I wonder if it works with more complex sql that contains multiple queries and/or loops?

Michael Wells on 6/2/2010
Mark, One thing to keep in mind is that SQL Compact will only execute the first query in a batch. While this can be viewed as a limitation, it also protects the framework from SQL Injection. If you have a need to process mutiple queries there are code examples available that split the query into seperate batches on the keyword "GO". There were sacrifices made to allow the framework to be so compact and light-weight, but please keep in mind that since your app is so close to the data (no round trips to a service on another machine) you can do your complex code and loops in C#/VB and just keep your T-SQL for simple CRUD statements. I hope this answers your question.

David Burnett on 6/1/2011
Good. Could be better example typing was not clean. had to watch again to see mistake.



Must Be Logged In
 

How Do I Become a Video Author? |  Newsletter History

Copyright © Fourdeuce, Inc., 2005-2009. All Rights Reserved | Privacy Policy | Terms & Conditions