StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



SqlException Using BrowseDialogExpand / Collapse
Author
Message
Posted 03/16/2006 10:22:43 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 04/11/2006 10:06:57 AM
Posts: 13, Visits: 49
Please see attached.

I can successfully load my BO manually, however, I'm getting an SqlException when I attempt to search for a range of records, by date, using a BrowseDialog.

Any clues?

TIA,

Rob

  Post Attachments 
SqlException.jpg (57 views, 127.97 KB)

Post #648
Posted 03/17/2006 11:08:14 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
Rob,

I am going to attempt to recreate this and I will get back with you.  Thanks.

Post #650
Posted 03/17/2006 4:19:55 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
Rob,

I cannot reproduce this error.  It looks as though the value of the date is invalid when passed to the parser.  What database are you connecting to and what is the date field that you are using in your search criteria?  Also, one last thing, how did you setup the search fields?

Post #656
Posted 03/17/2006 4:33:15 PM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 04/11/2006 10:06:57 AM
Posts: 13, Visits: 49
MSSQL 2005

field name is date_added, type = datetime

To setup the search fields, I used the search fields dialog via the SearchFields propery on my BrowserDialog object. See attached.

  Post Attachments 
Search Fields.jpg (46 views, 42.78 KB)

Post #657
Posted 03/17/2006 4:44:52 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
Is there anyway you could send me the database (structure) so I could reproduce the problem?  Just email me directly if you would like.  You can just create an script through SQL Server Management Studio if you would like which will make it very easy for me to create the exact structure on my server for reproducing the error.  Thanks
Post #658
Posted 03/22/2006 11:00:32 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
The issue ended up being the Maximum number of records returned was set to -1 and since SQL Server does not support a "TOP -1" an error was generated.  The BrowseDialog has been changed to prevent this from happening in the future.
Post #693
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 6:05am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.