Please tell me the rest of the code doesn't look like this...

Posted by: Marc's Musings, on 10 Aug 2007 | View original | Bookmarked: 0 time(s)

This is not right:internal static bool DoesDbExist(SqlConnection conn, string database){    using (SqlCommand cmd = conn.CreateCommand())    {        // prefer this to a where clause as this is not prone to injection attacks        cmd.CommandText = "SELECT name FROM sys.databases";        cmd.CommandType = CommandType.Text;        ...

Category: SQL | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 819 | Hits: 74

Similar Posts

  • Windows Auto Sign On In Locked Mode more
  • SQL SERVER Mirrored Backup and Restore and Split File Backup more
  • On the Fly DropDown Editing with jQuery more
  • PM Tip #10: Interview Tips for Landing a Great Program Management Job more
  • Ajax survey 2009: jQuery and MS Ajax are almost tied more
  • Regaining results from a performance test run more
  • Cloud Computing with Force.com more
  • Open Source License For System.Web.Mvc more
  • Dev Connections - The Code! more
  • Talking Points: WCF and RESTful Services (Part II) more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD