Yii Framework Forum: MS SQL problem - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

MS SQL problem Rate Topic: ***-- 1 Votes

#1 User is offline   xrx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 11-November 09
  • Location:Bosnia And Herzegovina

Posted 17 February 2010 - 05:24 AM

MS SQL It's not my favorite DB but I have to use it for my project and I tried Yii with it.
After troubles with login, I finally managed to connect on server but now I get new error that I cannot figure out. I cannot create model from console. I get following error:

exception 'CDbException' with message 'CDbConnection failed to open the DB connection: SQLSTATE[28000] Nom d'acces incorrect. (severity 2)'

After that server disconnects me. I have owner privileges and I can connect and work normally using client (management studio).
I'm using Yii 1.1.0 and XAMPP 1.7.2 on Windows 7. All required PDO extensions are enabled

Thanks in advance
0

#2 User is offline   xrx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 11-November 09
  • Location:Bosnia And Herzegovina

Posted 17 February 2010 - 05:33 AM

Just quick note: I can connect on DB using PDO and do queries without problem. Yii seems to have problems with it...
0

#3 User is offline   dimis283 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 277
  • Joined: 24-January 09

Posted 17 February 2010 - 05:36 AM

I thing this may be related with this
Posted Image
0

#4 User is offline   xrx 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 11-November 09
  • Location:Bosnia And Herzegovina

Posted 17 February 2010 - 05:44 AM

I found it.

I had to install SQL SERVER 2008 native drivers. I don't know why PDO without Yii was not making those errors before, but I guess that's the microsoft :rolleyes:

Thanks to all
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users