dbtype Questions

4

Solved

I have taken over some C# code. The code is hitting a database with some SQL which uses parameters. All of the string parameters are typed as DbType.AnsiString instead of DbType.String. Why wou...
Elm asked 8/3, 2011 at 7:37

4

Solved

Does anyone know what is the DbType equivalent to SqlDbType.Bit? I am trying to convert param[0] = new SqlParameter("@Status", SqlDbType.Bit); param[0].Value = Status; to db.AddInParameter(db...

2

Possible Duplicate: SQL Server datetime2 vs datetime What is the difference between DbType.DateTime and DbType.DateTime2 in .NET? If I am using DbType.Date and I want to change to a ...
Sfumato asked 17/8, 2010 at 2:5
1

© 2022 - 2024 — McMap. All rights reserved.