Hi i have to add a image path to a column in table. i have the image file in a local folder. how to achieve this? i dont want to add the image fully as binary , i just want to add the image path to the column. thanx in advance.
1 Answer
Just save it as a VARCHAR(260) and then you can access it from whatever program you are using/writing. [edited due to marc_s' comment]
2 Comments
marc_s
Since a path in Windows can be a maximum of 260 characters long -
varchar(max) with a maximum of 2 GByte of data seems like a massive overkill..... varchar(260) would be just as good and doesn't carry any of the downsides of the max datatypes...The_Cthulhu_Kid
I couldn't remember the max length of the address =)