Link to home
Start Free TrialLog in
Avatar of rmtogether
rmtogether

asked on

URL (hyperlink) in SQL server table

Hi,

Is it possible to make a URL in the return table in SQL server 2008

for example, in my case

I import excel data in to SQL server. and this is the result from select statement

<return table>
ID value
1   10
2    20
3    5

if I want to look back to my excel file, can I make a hyperlink possible in this kind of table.
 for example, make value 10 is both value and hyperlink, when I click "10" it will open the original excel file that I import from (e.g D:\sample.xls) or it can only be a separate column contains the hyperlink

Please teach me if it is possible and how to do it. thanks in advance
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Then you need to store the hyperlink value ( html tag value) instead of value in your table..
Instead of storing the hyperlink in the manner you have requested, try storing the file location of the excel file..
Avatar of rmtogether
rmtogether

ASKER

so it can't be both "value" and "hyperlink value" am I correct?
Yes.. You can store Hyperlink in one column and data in another column and not in a single column..
could you give me a simple example to do this

like create a table and one column is hyperlink data-type and  an insert statement

thanks.
ASKER CERTIFIED SOLUTION
Avatar of Raja Jegan R
Raja Jegan R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial