Ah, Sorry,
Never tried the DataForm wizard, but I couldn't find any way to specify
sql types over oledb. However, you can easily change from OleDb to Sql
with a search and replace the following
Important! Open the designer generated code region before you do a search
and replace or you won't find all items.
System.Data.OleDb.OleDbType => System.Data.SqlDbTypes
System.Data.OleDb.OleDb => System.Data.SqlClient.Sql
oleDb => sql
Then you need to change a few data types as oledbtypes and SqlDbTypes are
differently named.
Alternately, Create a dataset before you start the wizard and use this
dataset instead of a new dataset when running the wizard.
> Hi Morten,
> Thanks for your prompt response.
[quoted text clipped - 32 lines]
>> Happy Coding!
>> Morten Wennevik [C# MVP]

Signature
Happy Coding!
Morten Wennevik [C# MVP]
Ralph - 21 Nov 2006 10:54 GMT
I've never used any of the drop functionality. I am used to coding it
all manually.
However if what gets produced is close to what I am looking for and
saves time I believe I should give it a try.
I noticed that if I just create a dataadapter it autmatically does that
using the SQL Client.
However for some reason the dataform wizard uses oledb.
With the difference in how the two deal with parameters there is a
little more to do than just search and replaces.
Creating the dataset before.
I will have to give that a try.
I wonder if the xsd file cotains info to specify which database it was
created from?
> Ah, Sorry,
>
[quoted text clipped - 51 lines]
> >> Happy Coding!
> >> Morten Wennevik [C# MVP]