Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics SL forum
Answered

Dynamics SL 2011 - reading from syscolumns table

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

  • 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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,558 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,645 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans