cancel
Showing results for 
Search instead for 
Did you mean: 

PowerBuilder11.0 : SQL Azure : SQL Server Native Client 10.0

Former Member
0 Kudos

while connecting powerbuilder application to SQL Azure using ODBC(DSN) getting this error on datawindow update.

ERROR [22008] [Microsoft][SQL Server Native Client 10.0]Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.

Any help will be greatly appreciated.

Thank you
Arun Kumar Pal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You need the following in your connection string:

Constant String PBDateTimeFmt = "DateTime=''{ts '\'yyyy-mm-dd hh:mm:ss.fff\''}''"

I have a SQL Azure connection example on my website:

Topwiz Software - SQLAzure

Former Member
0 Kudos

Hi;

  • What's the statment you want to fire?
  • What the table schema you are targetting on?
  • Do you use datetime, datetime2 or smalldatetime datatype?

best regards

Former Member
0 Kudos

used smalldatetime in table