Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Setting a 'pointer' to an image....

Author  Topic 

dwfresh
Starting Member

4 Posts

Posted - 2003-05-06 : 14:14:04
Hi, I am trying to set a column in my SQL Server DB to be a 'pointer' to an image file.
I have had no luck finding any resources on the web, except those that actually store the image in the DB, which is not what I want.
Can anyone tell me exactly how to do this?
What do I set as the datatype for this column?

Also, is it the same process of setting a pointer to a text file?

I'm a rookie DB person so please excuse my ignorant questions!!

Thanks!!

X002548
Not Just a Number

15586 Posts

Posted - 2003-05-06 : 14:45:01
Not really sure, but I think all you want to store is the path and filename of anything on your box or someplace else on your network...using unc file names

Is that what you're talking about?



Brett

8-)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-05-06 : 14:55:22
A pointer? What you want is the path to the file as X002548 mentioned. So it doesn't matter what kind of file it is, just store the path in the database. The datatype would be varchar.

Tara
Go to Top of Page

dwfresh
Starting Member

4 Posts

Posted - 2003-05-06 : 21:03:18
great, that seems easy enough, I really don't know why I had such a hard time figuring this out. I thought I had to do some fancy SQL Server commands like TEXTPTR and WRITETEXT like I saw in this Wrox book a while ago..

thanks so much!!!

Go to Top of Page
   

- Advertisement -