Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / January 2008

Tip: Looking for answers? Try searching our database.

DataSet bug

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aleksey Timonin - 18 Jan 2008 18:21 GMT
Hi guys,
I'm using Dataset in my project. In design time I configure TableAdapter in
the Dataset and set to the adapter as an Insert query following sql:

INSERT INTO UserInterface.ViewFields
                     (createdBy, createdOn, modifiedBy, modifiedOn, viewId,
fieldId, logicalFieldName)
SELECT     @currUserId, GETUTCDATE(), @currUserId, GETUTCDATE(), @viewID,
fld.id, clmn.name
FROM         UserInterface.Fields AS fld INNER JOIN
                     DBMetaData.Columns AS clmn ON fld.columnId = clmn.id
WHERE     (clmn.tableId = @tableID)

The problem is that the method automaticaly generated by VS for this only
sql (with others I don't have such a problem) has no parameters!!! I was
more confused, when by click on "Query Builder..." -> "Execute Query" in
"TableAdapter Query Configuration Wizard" VS asked me to enter these
params!!!
Does anybody know about the bug, and know how can I resolve it?

Thanks a lot
Aleksey
Nicholas Paldino [.NET/C# MVP] - 18 Jan 2008 18:33 GMT
Aleskey,

   I think part of the reason is the name of the table (i.e.
UserInterface.ViewFields).

   Try changing "UserInterface.ViewFields" to "[UserInterface.ViewFields]".

Signature

         - Nicholas Paldino [.NET/C# MVP]
         - mvp@spam.guard.caspershouse.com

> Hi guys,
> I'm using Dataset in my project. In design time I configure TableAdapter
[quoted text clipped - 18 lines]
> Thanks a lot
> Aleksey
Aleksey Timonin - 18 Jan 2008 18:39 GMT
I have tried it. It doesn't make defference. I still have the same problem.
And as I have said below QueryBuilder is see these params!
Any idea?

> Aleskey,
>
[quoted text clipped - 26 lines]
>> Thanks a lot
>> Aleksey

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.