I am trying to populate a table in a table in a database I have created
using parameters. The following line doesn't work.

cmd.Parameters.Add(New SqlCeParameter("CUniq", SqlDbType.Shortint))

due to the fact that SqlDbType is not found. (not declared)

I have the following imports.
Imports System.IO

Imports System.Data.SqlServerCe

Imports System.Data.Common

Imports System.Data

The documentation says that SqlDbType enumeration is a member of the
System.Data namespace, but I can't find in the tab completion.

Please, any explanation or commentary is very appreciated...

Regards,

BM

Re: SqlDbType not Found using VB.NET (compact framework) by Cowboy

Cowboy
Fri Jun 18 11:25:29 CDT 2004

Perhaps you are looking for SmallInt instead of Shortint?

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"Brett Miller" <brett@NOSPAMpsion.co.za> wrote in message
news:ePvt1jSVEHA.712@TK2MSFTNGP11.phx.gbl...
> I am trying to populate a table in a table in a database I have created
> using parameters. The following line doesn't work.
>
> cmd.Parameters.Add(New SqlCeParameter("CUniq", SqlDbType.Shortint))
>
> due to the fact that SqlDbType is not found. (not declared)
>
> I have the following imports.
> Imports System.IO
>
> Imports System.Data.SqlServerCe
>
> Imports System.Data.Common
>
> Imports System.Data
>
> The documentation says that SqlDbType enumeration is a member of the
> System.Data namespace, but I can't find in the tab completion.
>
> Please, any explanation or commentary is very appreciated...
>
> Regards,
>
> BM
>
>
>