Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datareader.read()
Message
From
22/03/2009 11:20:52
 
 
To
22/03/2009 03:12:14
Arjun Bagojikop
Dynamic Super Software
Sangli, India
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01390223
Message ID:
01390397
Views:
43
No, you'd have to set the values in your DataTable to either variables or IDbParameters. That select won't work.

~~Bonnie



>Thanks a lot off Bonnie Bernet for given valuable time
>i will follow your suggestion
>i am very happy to see you code as
>
>Dim csql As String = ""
>csql = [String].Format( _
>      "insert into Employee_week_offdays (emp_unique_code,week_off_date,off_day) " + _
>                 "values({0}, {1}, {2})", @emp_code, @mydate, @off_day)
>
>'can i write this like
>'mytable from dataset
>
>Dim csql As String = ""
>csql = [String].Format( _
>      "insert into Employee_week_offdays (emp_unique_code,week_off_date,off_day) " + _
>                 "values({0}, {1}, {2})", select emp_unique_code,week_off_date,off_day from mytable )
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform