Visually creating database tables with the Data Explorer - delphi

I watched a video in relations to creating and working with databases in Delphi. The video states that you can create the database using code, the data explorer or the SQLite3 console application, but I am unable to find out how to create the database using the Data Explorer. Does anyone know a way I can go about doing this?
Thank you in advanced.

The instructions that follow are for XE3, but they should work for XE as well.
Right-click on the SQLite item in the Data Explorer, and choose New connection.
Enter the full path to your new database file (which, of course, won't exist yet) in the Database edit control.
Click the Advanced button in the lower right corner of the dialog. Find the entry for FailIfMissing, and change the value from True to False, and then click the OK button to close the Advanced Properties dialog.
Click the Test connection button in the lower left corner of the dialog (directly across from the Advanced button you clicked before). You should get a dialog that says Test connection successful. Close the New Connection dialog. (If you don't get a successful test connection at this point, check the path to the database you entered; it will fail if the folder doesn't exist. It can also fail if the SQLite3.dll isn't on your Windows PATH or is the wrong version.)
To create tables, expand the Data Explorer entry for your new connection created above, so you can see the Tables, Views, and Procedures branches. Right-click on Tables, and choose New table from the pop-up menu.

Related

Where does ASP MVC - "Individual account authentication" project database gets stored?

I've encountered a strange thing...
I created a new project, with Individual account authentication authentication which creates a
DefaultConnection in Web.config.
I've also configured an oracle database connection, and commented the DefaultConnection.
Then I've registered a new user and data was saved in a hidden .mdf file that
was showed in App_Data after I've pressed "Show All Files" button in
Visual Studio.
I've deleted that .mdf file, Clean Solution, Build solution, Run project again -> login with same data and login still working
I'm very confused where did the app get's login data if no database exists with that info. Is it storing in another place that I don't know about?
It might be attached to local Db instance. Check Server Explorer to find if that is the case.If yes then you can delete the database from there.
I've found it eventually. Best way to make sure you see all databases on local device is to go to (in Visual Studio): View -> SQL Server Object Explorer -> Add SQL Server -> here you add all available servers (in my case was on my hostname\SQLEXPRESS)

Generate from database

I am new to MVC application. When I tried to create the Model I wanted to find "Generate from database" option as follow.
But I have following options.
Which option I can select instead "Generate from database" option.
Right-click the Models folder, and select Add and New Item.
In the Add New Item window, select Data in the left pane and ADO.NET Entity Data Model from the options in the center pane. Name the new model file.
Click Add.
In the Entity Data Model Wizard, select EF Designer from database.
Click Next.
If you have database connections defined within your development environment, you may see one of these connections pre-selected. However, if you want to create a new connection. Click the New Connection button.
In the Connection Properties window, provide the name of the local server where your database was created or you sql server name. After providing the server name, select your database from the available databases.
Click OK.
The correct connection properties are now displayed. You can use the default name for connection in the Web.Config file
Click Next.
Select Tables to generate models for the needed tables.
Click Finish.
For the full tutorial on Microsoft website
https://www.asp.net/mvc/overview/getting-started/database-first-development/creating-the-web-application
If you want to create entity classes, then choose the "EF Designer from database", then follow below:
New connection.
Change.
Microsoft sql server.
insert your SQL server name + SQL credential
Chose your database.
Test connection, if you got it right press k.
Next > Next.
Then choose the table you would like to generate.

PhpStorm tables displaying database setting

I connect to Sybase IQ database via PhpStorm. End I have a tables explorer at database tool window.
What I need is to make tables names display like schema_name.table_name, not just the table name. Seems like I can achieve it in database driver settings, but don't know what should I do exactly. There is a setting in database connection window where I can choose such setting in AquaData studio.
AFAIK it's not possible to have schema_name.table_name -- only db_name.schema_name.table_name.
For this just enable "Flatten Schemas" option (under "cog" icon or via right click on tool window title/label).
P.S.
Cannot say anything about database driver settings for Sybase.

Pentaho 5.0.1 CE Adding folder to pentaho-solutions directory

How do I get a folder to appear in the browser after adding it to \pentaho-solutions in Pentaho 5.0.1 CE. The documentation I read does not seem to work with this new version.
1. Create a new directory in /pentaho/server/biserver-ee/pentaho-solutions/.
Use underscores instead of spaces in the solution directory name. Ensure that the directory has the appropriate user
and group ownership to be writable from the BI Platform.
2. Using an XML-aware text editor (or Design Studio), create a file named index.xmlin your new solution directory.
3. Copy the following text into the index.xml file, changing the content accordingly:
***<index>
<name>Example Solution</name>
<description>This solution contains examples I created while learning to
work with action sequences.</description>
<icon></icon>
<visible>true</visible>
<display-type>icons</display-type>
</index>***
4. Save the file and close the text editor.
5. Log into the Pentaho User Console as an administrator.
6. Refresh the solution repository cache by going to the Toolsmenu, then selecting the Refreshsubmenu, then
clicking on Repository Cache.
You now have a new solution directory. It will show up in all file dialogues in the Pentaho User Console as well as the
Solution Browser in the left pane.
Every time you add or edit an action sequence to your solution directory, you must refresh the repository cache as
explained above. Each user currently logged into the Pentaho User Console must also refresh their session cache; this
is best done by re-logging into the Pentaho User Console.
I am using Pentaho design studio to develop an xaction sequence script. I followed this procedure:
1. In Design Studio, go to the Filemenu, then select New, and click on Other...in the sub-menu.
The Newwindow will appear.
2. In the Newwindow, click the triangle next to Pentaho, select New Action Sequence Wizard, then click Next.
3. In the File namefield, type hello_world.xaction.
4. Select Hello Worldfrom the Templatedrop-down box, then click Finish.
The wizard will generate the new file and bring you back to the workbench.
5. Click on HelloWorldComponentin the Process Actionssection on the left.
The right side of the screen will change to show the options available for this action: Nameand Message. The
Name field controls the name of the component in the Process Actions list on the left; it doesn't do anything else of
note. The Message field contains the text that will appear on the screen when the action sequence is run. It is prepopulated with %quote, which is a token that represents a quote message in a nonexistent properties file. Pentaho
used to provide properties files for each example, but they have been removed from the standard Pentaho Business
Analytics distribution.
6. Replace the %quotewith a sufficiently inspiring message.
Alternatively, you could create a hello_world.propertiesfile and populate it with the appropriate messages and
tokens, but that has no advantage unless you intend to internationalize this action sequence.
7. Save the file.
You now have a working action sequence that prints a short text message: "Hello, World." plus whatever you typed into
the Message field. The first part of the message is determined by a message bundle packaged with the Pentaho Web
application archive.
To test the action sequence, use the Test tab if you are on Windows or OS X, or log into the Pentaho User Console and
run it from the Solution Browser.
Running the sample xaction fails with
Sorry. We really did try.
Something went wrong. Please try again
or contact your administrator.
I figure this is because pentaho cannot locate the xaction file as specified in the file path when I generate the url from within design studio. The folder I created within the solution directory does not appear in the browser directory list despite refreshing the cache. Any help?
With Version 5 the files and folders are no longer stored in "/pentaho/server/biserver-ee/pentaho-solutions/..."
It is stored now in a jackrabbit repository.
You can create folders and upload files in the user console.
I did mistake after starting biserver 5.2. Unexpectedly i deleted Public folder after configuring to jackrabbit. Now how do i create the folder so that i can see Public and Home Folders.
Sorry for getting back to this question some time later, just in case someone searches something related to Pentaho repositories management with no success, i hope this information can help.
Just to make things more clear, i'm using version 5.2.x and i'm supposing you want to create a new folder on the root directory of Browse Files screen, something that is not allowed on Pentaho5 CE Web Console.
The answers about repository management based on JackRabbit are correct, so the old way we used to configure new "solutions" folders doesn't work anymore. From version 5 on, Pentaho exposes an interesting REST api that allows you doing things not allowed in web console.
For instance, for creating a folder in root directory you should create a http REST PUT request against Pentaho Server (using tools like curl or if you appreciate Google Chrome, something like Advanced Rest Client, etc.) using the following URL:
http://localhost:8080/pentaho/api/repo/dirs/:new_directory_name?userid=admin&password=password
Pentaho repository directory REST api is documented here:
http://javadoc.pentaho.com/bi-platform500/webservice500/resource_DirectoryResource.html
It's worthy to spend some time reading REST API the documentation.

Is there an intuitive way to modify and save a stored procedure in VS 2012

The only way I can determine in VS 2012 to open an existing stored procedure for modification and save changes is the following:
1) Manually remove the initial word CREATE and retype ALTER in its place (every time).
2) From the "SQL" menu, then its "Transact-SQL Editor" submenu, choose Execute.
Given that VS2012 is in Release Candidate, I'm certain there will be no fundamental changes along these lines.
And, I understand that from a purist point of view that this is executing a query to change the procedure on the server. But from a usability point of view is there no longer a near-equivalent to a simple Save button on a toolbar? Over the course of day this is a not-inconsequential waste of time and mental focus. I could live with Ctrl+Shift+E but manually editing CREATE to ALTER every time is ridiculous.
I take it that you're trying to apply changes to a stored procedure to your database?
You can try the following:
Go to View SQL Server Object Explorer. Right click on the SQL Server node and add your server. Open the database and identify the procedure you need to edit. Double click on the procedure, which opens the CREATE script for the object. Leave the CREATE there and simply modify this and click the 'Update' button. Then select Generate Script or Update database depending on whether you want to apply the changes immediately or generate the script to a query window and apply the script yourself.
If you want to generate an ALTER, you can use the Server Explorer (as distinct from the SQL Server Object Explorer, which is also in the View menu). Add your database to Data Connections. Find your procedure, right click and select Open.
I'm fairly certain you can add the procedure to source control, make changes, check in, and publish to your DB. I've never done it, but its talked about in this video:
SSDT talk at TechEd 2012

Resources