Find all resources using a database connection.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

Find all resources using a database connection.

#1

Postby Steve James » Fri Mar 03, 2017 3:53 pm

Hi, in pre 5.0 Ebase I would simply find all the references from a database connection.

How do I find all resources using 'x' database connection?

Thanks
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#2

Postby Segi » Fri Mar 03, 2017 4:45 pm

Are you asking how you can find out which database resources are using a given database connection ?
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#3

Postby Steve James » Mon Mar 06, 2017 8:58 am

Hi Segi, yes.
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Mon Mar 06, 2017 9:23 am

Click the Search Files icon on the main toolbar, select Database Resources and maybe Dynamic Lists and enter the connection name.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#5

Postby Steve James » Mon Mar 06, 2017 9:33 am

Hi, I should have mentioned that I had tried that without success.

Thanks
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#6

Postby Jon » Mon Mar 06, 2017 10:15 am

Yes sorry you're right, I just found a bug saying exactly the same thing. Quickest way is probably to do a Windows file content search against the workspace directory.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#7

Postby Steve James » Mon Mar 06, 2017 10:36 am

Thanks Jon,

For anyone needing to do this you'll need to add .eb files to the indexing options to index properties and file content.

https://www.howtogeek.com/99406/how-to- ... ws-search/

We don't have some of our workspaces on our local PC but I can write a quick Ebase form to loop through all files and look for the specified content.

Thanks
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#8

Postby Segi » Mon Mar 06, 2017 4:46 pm

Steve,

If you are currently using Ebase 5.0 or higher there's also another way that I find much easier.

I use a text editor called Notepad++ https://notepad-plus-plus.org/ which is a very powerful text editor.

One of its features is "find in files" which lets you search the contents of all files in a directory that you choose for a given string.

So you could point it to your Ebase workspace folder and search for

database="YOUR DB CONNECTION NAME" and it will return all database resources that use that database connection.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#9

Postby Steve James » Mon Mar 06, 2017 6:19 pm

Ahh brilliant thanks Segi.

I prefer EditPadPro but I'd not considered "find on disk" which also exists.
Excellent, I have some colleagues who use Notepad++

That'll be really handy for other reasons as well I'm sure....

Thanks again
0 x

Segi
Ebase User
Posts: 649
Joined: Mon Dec 09, 2013 6:37 pm

#10

Postby Segi » Mon Mar 06, 2017 6:21 pm

You're welcome. I can't recommend Notepad++ enough.
0 x

Steve James
Ebase User
Posts: 331
Joined: Mon Mar 10, 2014 8:34 am

#11

Postby Steve James » Mon Mar 06, 2017 6:33 pm

Yes it's used a lot in our department.

The one thing that has prevented me jumping from EditPadPro is copying search matches.

That is I set up a regular expression and search, EditPadPro has the option to copy the matched results into list. I use this a lot to generate things like a sql statement for each match.
0 x


Who is online

Users browsing this forum: No registered users and 124 guests