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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 Image Mode
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

377 Posts

Posted - 02/15/2013 :  00:00:03  Show Profile  Reply with Quote

Is it possible to identify the Image(*.jpg) mode (Landscape/Portrait)
which i've stored in Hardrive (d:\images\) through T-sql Statement?

Starting Member

47 Posts

Posted - 02/19/2013 :  09:07:40  Show Profile  Reply with Quote
T-SQL is for working with fields and tables. To get the orientation of the picture you would have to read the file using a language that supports file reads.

So to answer your question, not really.

You can:
1) Add a field to the table and maybe update that field by the code that adds the image directory.
2) Write a CLR stored procedure that returns the information based on a passed in path. You can then call this sp the the SQL statement. I wouldn't want to run it on a large recordset due to possible performance problems.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000