Using an Embedded SQL Express Database

Click Once

Mike Wachal has done some excellent work discussing how to embed a SQL Express

database into an application for use with click once.  In his approach, the mdf file is packaged as an application resource and is copied to the application directory by the application at run time.  Later versions of the application are deployed with update transact SQL scripts that are then run by the application against the local copy of the embedded database to install changes.  This avoids the problem where you overwrite a user's prior data each time an application is updated.  Check out Mike's blog at SQL Express Blog.  A link to the web cast can be found at SQL Express Weblog

More information on Click Once is at...

Click Once deployment on MSDN

 

User Instances

From my background using SQL Server in an Enterprise environment I had no frame of reference for understanding user instances, so I found this SQL Express User Instances on MSDN very helpful. This is a highly recommended read if you're trying to use SQL Express in an embedded application.  It explains the connection string argument AttachDbFilename which makes it possible to connection to a database file in the current application's directory.  Using this statement also requires administrator access unless you use the User Instances feature which is also discussed at length.

 

Detecting SQL Express

This Whitepaper also contains code showing how to detect whether SQL Express is installed and tips on how to get it installed.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: mcstar
Posted on: 8/29/2008 at 1:45 PM
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Moving layers and divs and lists OH MY!

jParallax is javascript that works on layered objects (images, divs, etc) and moves them in response to your mouse.  The affect is to simulate depth in the way old school side-scrolling games used to work.  (think Super Mario Brothers).  It's a very cool affect. Grab this tool and add it to your web programming arsenal and give your site some distinction.  

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: mcstar
Posted on: 8/28/2008 at 2:46 AM
Categories: Developer Tools
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Machine Learning and AI book

The Ultimate AI Primer

AI is handled superbly in this AI textbook..Artificial Intelligence: A Modern Approach (On Amazon).  This book teaches the art and science Artificial Intelligence at the graduate level.  It's a great read for the developer wanting to add that edge to his programming skills.   It's done in a language agnostic way which presents the algorithms as pseudo code. It's left to the developer to come up with an implementation, but what you learn is priceless.

Implementation

I've been studying this book for over a year now.  About 6-months into it, I actually used what I learned in a production application.  The problem at hand was to sort a list addresses (lat/long) by the shortest possible path between them for a mapping application.  This was done to minimize travel distance and fuel cost for field personnel as they perform on-site service. The problem was solved using a variant of the traveling salesman algorithm and a node based path costing algorithm. I created these algorithms from knowledge gained in this book, so I can truly attest to it's value.  This system has become a valuable time saver that the business now uses daily.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Posted by: mcstar
Posted on: 8/27/2008 at 2:36 AM
Categories: Artificial Intelligence
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (3) | Post RSSRSS comment feed

Tag cloud

    About the author

    I've been a software desinger and developer for over ten years, for the last 8 I've worked in corporate IT.  Recently I've become aware that my youthful desire to program has been suppressed by the needs of my job.  Originally, I had an intense desire to design more intelligent solutions and this desire spurred me to learn to program.  Early on, it was my interest in AI that got me in to the software industry, but due to the demands of Corporate IT, much of the work I acutally do tends to be in the UI/CRUD/Framework area.  This blog is intended to focus discussion about the use of Artificial Intelligence programming techniques and algorithms in the business world.

    It's apparent to me that more intelligent designs could go a long way towards assisting users in making faster, better decisions.  How though do we integrate AI algorithms into the coporate world?  How can we get users used to interacting with smarter algorithms?  Much of what IT programming does today is centered around displaying and editing data.  Can we build Intelligence into our frameworks that is more aware and capable of delivering data in more useful ways?  Can we build Intelligence into capacity and load planning that will prevent the kinds of failures systems are prone to under heavy use? 

    This blog will explore these ideas and discuss AI that is actually in use in various business applications.

    Page List