5 replies
by john.a.wills
by billscott
your vb code should change little, you might need to change your delimiters around dates in your queries. your connection string will definitely change, one of these should do the trick for you:
Sql Standard = "provider=SQLSRV32;Driver={SQL Server};Server=[SERVER];Database=[DEFAULTDB];Uid=[USERID];Pwd=[PASSWORD];"
SQL Trustted = "provider=SQLSRV32;Driver={SQL Server};Server=[SERVER];Database=[DEFAULTDB];Trusted_Connection=yes;"
SQL OLEDB Trusted = "provider = SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=[DEFAULTDB];Data Source = [SERVER]"
by billscott
your vb code should change little, you might need to change your delimiters around dates in your queries. your connection string will definitely change, one of these should do the trick for you:
Sql Standard = "provider=SQLSRV32;Driver={SQL Server};Server=[SERVER];Database=[DEFAULTDB];Uid=[USERID];Pwd=[PASSWORD];"
SQL Trustted = "provider=SQLSRV32;Driver={SQL Server};Server=[SERVER];Database=[DEFAULTDB];Trusted_Connection=yes;"
SQL OLEDB Trusted = "provider = SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=[DEFAULTDB];Data Source = [SERVER]"
by jlanus
As of date format, in ADO I use the ODBC std escape and it works with all bases:
{d '2004-02-28'} for example. Note the zero in 02.
Function SQLdate(d As Date) As String
'============================================================
' Retorna la fecha d editada en formato standard ODBC {d 'yyyy-mm-dd'}.
SQLdate = "{d '" & Format$(d, "yyyy\-mm\-dd") & "'}"
End Function
There are escapes for timestamps and times too.
This might let you make your app more compatible before migrating.
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending