
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2018 05:50 PM
Is it possible to add an asset programmatically to Lansweeper using an sql call?
Labels:
- Labels:
-
General Discussion
6 REPLIES 6

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2018 10:30 AM
Unfortunately, I don't have a import script example.
Most asset data is in tblAssets and most asset data related tables are also linked to that table. If you have a test environment you can try creating the script by using our database documentation. If you can't find the database dictionary, there is a guide here: https://www.lansweeper.com/forum/yaf_postst9870_Lansweeper-database-dictionary.aspx
Obviously I would not advice trying this in a production environment. Issues related to custom database modifications are not supported by our support team. If need be, you can find a guide on how to create a full backup of your Lansweeper installation here: https://www.lansweeper.com/kb/94/backing-up-your-installation.html
Most asset data is in tblAssets and most asset data related tables are also linked to that table. If you have a test environment you can try creating the script by using our database documentation. If you can't find the database dictionary, there is a guide here: https://www.lansweeper.com/forum/yaf_postst9870_Lansweeper-database-dictionary.aspx
Obviously I would not advice trying this in a production environment. Issues related to custom database modifications are not supported by our support team. If need be, you can find a guide on how to create a full backup of your Lansweeper installation here: https://www.lansweeper.com/kb/94/backing-up-your-installation.html

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2018 10:06 PM
I track a lot of different types of assets
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2018 10:29 PM
Are you looking to add various types of assets or just computer assets? I would suggest using SQL Profiler to monitor activity during an upload using the import utility for each type of asset you are adding.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2018 05:00 PM
Yeah, I'm trying to avoid another process of physically uploading a file. Is there an example SQL create everywhere around that I'll be able to use as a starting point? Thanks!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2018 09:24 AM
Since Lansweeper uses an SQL server, you can indeed add assets to Lansweeper using an SQL script. However, this does require some basic SQL scripting knowledge and advanced knowledge of the Lansweeper database structure.
For most people I would recommend using the import feature to add assets to Lansweeper: https://www.lansweeper.com/kb/88/importing-assets.html
For most people I would recommend using the import feature to add assets to Lansweeper: https://www.lansweeper.com/kb/88/importing-assets.html

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2018 04:57 PM
Charles.X wrote:
Since Lansweeper uses an SQL server, you can indeed add assets to Lansweeper using an SQL script. However, this does require some basic SQL scripting knowledge and advanced knowledge of the Lansweeper database structure.
For most people I would recommend using the import feature to add assets to Lansweeper: https://www.lansweeper.com/kb/88/importing-assets.html
