Announcement

Collapse
No announcement yet.

How do i connect to an sql server using odbc and vc++?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do i connect to an sql server using odbc and vc++?

    i created a dsn named "halogen" and i called the following code:
    SQLConnect(hdbc1,(SQLWCHAR *)"halogen",strlen("halogen"),NULL,0,NULů
    it is suppose to use windows authentication, dats why some parameters are null, but it still cant connect to the database..
    i also tried SQLDriverConnect(), bt the same thing.
    any help please?
Working...
X