Click here to Skip to main content
12,292,953 members (73,532 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted

error in select statment

, 16 Nov 2012 CPOL
Change SqlDataAdapter cmd = new SqlDataAdapter("select * from calender where date= " + monthCalendar1.SelectionRange.Start , con);toSqlDataAdapter cmd = new SqlDataAdapter("select * from calender where date= CAST('" + monthCalendar1.SelectionRange.Start.ToString() + "' as datetime)" ,...

Revisions


  

Compare Revision Minor Date Status Editor
4 - publicly available No 16-Nov-12 18:48 Available Rohit Shrivastava
updated the code to make it more accurate.
2 No 16-Nov-12 18:02 Available Maciej Los
tags added
1 No 16-Nov-12 17:59 Available Rohit Shrivastava

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Rohit Shrivastava
Architect
India India
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160518.1 | Last Updated 16 Nov 2012
Article Copyright 2012 by Rohit Shrivastava
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid