Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2005, 05:00 PM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error With SqlDataAdapter Wizard?

Everytime I try to use the SqlDataAdapter Wizard in VS2003 I get the following error, any ideas?

ADO Error: Line 1: Invalid character near 'COLLATE'

Thnks

 
Old May 27th, 2005, 10:59 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

At what point does the error occur? Are you using a stored procedure or a sql statemtnt?

 
Old May 31st, 2005, 08:39 AM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It occurs at the last step of the wizard. I am using a SQL query, and the insert statement is built fine. Then Insert, Delete, and Update and the three that error all the same way.



 
Old May 31st, 2005, 10:42 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Can you post the SQL statement you are using?

 
Old May 31st, 2005, 11:42 AM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

SELECT Location_Id, Vet_Pen_Num, Post_To_Pen FROM tbl_Vet_Pen_Xref

HaHa, Real high-tech huh?

Thanks

 
Old May 31st, 2005, 12:04 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Hummm seems pretty straight forward. It is only a problem on the Insert, UPdate and Delete? Can you post your table structure..

BTW, does your table have a primary key?

 
Old May 31st, 2005, 01:43 PM
Authorized User
 
Join Date: Nov 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Location_Id, int, 4
Vet_Pen_Num, varchar, 10
Post_To_Pen, varchar, 10

All three are keys BTW!

thx

 
Old May 31st, 2005, 11:25 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I really don't know what that error means. Maybe you can try to use Google to find something. Also, I would try reinstalling VS. Let me know what happens. Sorry I couldn't be more help.






Similar Threads
Thread Thread Starter Forum Replies Last Post
sqldataadapter vgsgowrisankar C# 2005 7 April 23rd, 2008 04:32 PM
SqlDataAdapter DanRoche .NET Framework 1.x 3 August 20th, 2007 04:04 AM
setup error in deployment wizard prabathsrp Beginning VB 6 7 March 13th, 2006 09:17 AM
Database Results Wizard Error evelyn Classic ASP Databases 0 January 11th, 2005 08:53 AM
sqlDataAdapter [email protected] ADO.NET 1 April 8th, 2004 12:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.