Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SQL Equivalent of Access OLE Object field

Posted on 2013-06-22
12
Medium Priority
?
1,353 Views
Last Modified: 2013-06-25
Hi

What is the SQL Equivalent of Access OLE Object field
0
Comment
Question by:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 24

Accepted Solution

by:
Bitsqueezer earned 1000 total points
ID: 39268570
Hi,

there is no real equivalent, but to save binary objects the recommended choice is "varbinary(MAX)".

Normally it's better not to save big binary objects into a table. It's better to use a normal file repository like a file server and then only save a link to this file into the database.

Cheers,

Christian
0
 
LVL 23

Assisted Solution

by:Racim BOUDJAKDJI
Racim BOUDJAKDJI earned 1000 total points
ID: 39268733
Normally it's better not to save big binary objects into a table. It's better to use a normal file repository like a file server and then only save a link to this file into the database.
You are talking about BLOB which I agree is a poor idea but why bother ? Simply use FILESTREAM.
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
ID: 39268736
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39268800
Actually, I think the author should back up entirely and see why they were using the MS Access OLE Object.  I suspect there is a far more elegant way to solve this problem then just saving all that binary data.  If they are going to do that they may as well use Xml. :)
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39268801
That last comment regarding Xml was said half in jest for Racim's benefit. I know he will get a kick out of it.
0
 

Author Closing Comment

by:Murray Brown
ID: 39268969
Thanks very much
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
ID: 39269182
That last comment regarding Xml was said half in jest for Racim's benefit. I know he will get a kick out of it.
:)

Though I appreciate the intent, I'd have to say that benefit and xml have quasi mutually exclusive meanings,  as far as I am concerned.

I invite you to read the following for more info...
http://workflow.healthbase.info/monographs/XML_myths_Browne.pdf
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39270193
Racim,

You know we will never agree on the merits (or lack) of Xml.  Certainly around that time when that article was written (2003) there was a lot of hype regarding Xml (as there is now IMHO with JSON), but if used wisely Xml has its place in the proverbial toolbox.
0
 
LVL 23

Expert Comment

by:Racim BOUDJAKDJI
ID: 39270544
You know we will never agree on the merits (or lack) of Xml.
Yes I know but I hope to change your mind someday :).  No big deal.

The article underlines fundamental timeless flaws about the hierarchic structure of XML and hoping to get something out of this.   I guess I came to the conclusion that living without it is better that living with it.  

I am curious on what cases you consider to use XML wisely ?  Since I don't use XML at all I may give it a shot and see.

Regards..
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39273493
In the past (prior to SQL Server 2008) I have used it very effectively to pass a dynamic list of parameters.  The case where you you be passing one ID or several hundred.  Another case is when you had a large list of optional parameters to be passed to a Stored Procedure for say searching purposes.  These two use cases can now be replaced with Table Valued Parameters.

Another case, that is still valid is to use Xml in a Stored Procedure to create a comma delimited list.
0
 
LVL 24

Expert Comment

by:Bitsqueezer
ID: 39274381
Hi acperkins,

little hint: This was also possible with SQL Server 2005 (and maybe before): Instead of using a table valued parameter simply create a temp table which is available in all called stored procedures without the need of a parameter. The lifetime of a temp table ends after the SP which created it. And it's an often heard myth that table valued parameters are all stored in memory - in fact SQL Server also creates temp tables for them so you have no disadvantage of creating a temp table in case of forwarding a parameter list.

Cheers,

Christian
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39276719
This was also possible with SQL Server 2005 (and maybe before): Instead of using a table valued parameter simply create a temp table which is available in all called stored procedures without the need of a parameter.
Absolutely.  I should have clarified when calling Stored Procedures from .NET and using SQL Server 2005 the only way was to use Xml (or God forbid) a delimited string.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question