Skip to main content

Notifications

Microsoft Dynamics SL (Archived)

Dynamics SL 2011 - reading from syscolumns table

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Newbie here,

I am trying to find out why we sometimes have a bunch of reads from the syscolumns table

It looks like this:

Select CONVERT(CHAR(30),sc.name), sc.type, sc.usertype, sc.length, sc.status from syscolumns sc where sc.id = object_id( 'inventory_ext' )

There can be from a few to as many as 20 such statements in a bunch, all using a different table name (with object_id)

Does anyone know if that really is useful ?    Any way to turn that off ?

Thanks

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics SL 2011 - reading from syscolumns table

    I understand what you are saying.

    I am very disappointed to learn that, I expected the product to be better than that at accessing the database.

    Thank you for your answer.

  • Verified answer
    Erich Strelow F Profile Picture
    Erich Strelow F 1,642 on at
    RE: Dynamics SL 2011 - reading from syscolumns table

    Yes, it is useful.

    Dynamics SL has its own database layer, which is how the SL client talks to the database. For the SL client to understand what the datastream from the database means, the layer has to query the corresponding metadata, which resides in the syscolumns table. I've built some database layer in the past and that's the standard way to do it.

    Turning this off would be like turning off your car engine. Maybe you can do it, but the car won't take you anywhere.

    I guess this goes back to when SL was first ported to Visual Basic technology. There wasn't at the time a fast and reliable database connector for VB, so Solomon had to build one from scratch.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans