Jump to content

Recommended Posts

i wrote a script that dumps into mssql from mysql. it fetches the data then  create an insert query to insert into mssql. the problem am having now is that the date will always prompt  me that null values not accepted even though there is data to be inserted.

 

INSERT INTO asset ( assetcode , desc1 , type , purchdate , allocatedt , amount , modelno , regdno , make , status , comment , regdate , deptcode , allocate1 , regddate , accttype , accode , staffid , purdate , compcode) VALUES('AST56','555','555','08/01/2008','444','44','44','44','09/01/2008','555','555','02/01/2008','555',1,'01/08/2008',8.8,'888','777','09/01/2008','bssl');

 

i tried to unquote the date values but still same problem.

Link to comment
https://forums.phpfreaks.com/topic/89386-inserting-into-date-datatype-in-mssql/
Share on other sites

  • 1 month later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.