Creating SQL statements for creating tables in SQLce database - sql

I'm starting to learn database, and I will work with SQLce. Is there some type of library that can assist in creating the proper SQL statements for creating tables etc? (Not for query of the database, as I plan to use LINQ). I'm not thinking an MS library, but some amateur project maybe..

You want to download SQL Server Management Studio Express. The SSMS tools let you connect to SQL CE as well as the full blown SQL Server databases, and best of all it's free. You can create your tables via the GUI, and then instead of saving the table, you could have it show you the SQL script instead and learn that way. Everything you do in the GUI executes T-SQL behind the scenes and you have the option of saving all that SQL and running it yourself.
See this stackoverflow question here too for some more details.

Related

How can i generate a databasediagram in Oracle Application Express?

I need to generate a database diagram automatically from a database script I have.
I have run the sql script and it worked. Right now I need to generate a database diagram using the script I ran.
I am working with Oracle Application Express web based and I googled it but I couldn't find anywhere how to do it. Does anyone know how I can generate automatically a database diagram with the SQL script I have in Oracle Application Express.
Below is my dashboard where do I need to click to generate my database diagram automatically?
APEX does not create a database diagram as you describe. Instead, you should use Oracle SQL Developer, which is a free tool for creating and editing SQL And PL/SQL and Oracle database structures. Included with SQL Developer is a Data Modeler that can reverse engineer a database connection to generate diagrams.

Is there a simple GUI to create SQL Server Queries and operations?

I have created a Database in SQL Server using MS SQL Management studio.
I'm looking for a simple GUI tool to easily search in the database or add new data to the database.
for example, if my database stores links for pictures - each picture has some tables like location, objects, animals, lighting etc.
I want to be able to search the database, so i can choose of a box list for each table instead of Querying through the SQL.
i understand this can be done with Sharepoint and MS Access, but i recon it's too complicated.
any thoughts and ideas?
thnx.
Try using EMS SQL Manager for SQL Server - it has free Lite version which ones limitations are acceptable.
Also you may try DevArt's dbForge Studio for SQL Server - this product's progress is very impressive. It's one of the best solutions for managing SQL Server.

SQL to SQL CE: How to read an SQL or Access database and write it out as SQL CE database?

I have just one simple table in my MS SQL database (or Microsoft Access). How do I read in this table and write it out as an SQL CE database? I have both Visual Studio and WebMatrix installed so I can use either of these tools if required. Thanks.
Is it possible to copy and paste one table to another? This would be the simplest if it works.
Try my Visual Studio add-in, allows you to migrate from SQL Server to SQL Server Compact: http://sqlcetoolbox.codeplex.com - command line walkthrough here: http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html
You can download a free copy SQL Express Management Studio (SSMS).
SSMS has the ability to connect to both full blown SQL, SQL Express, and SQL CE databases.
Within SSMS you can right click on the table and use the wizard to move data back and forth. Or create scripts that will generate the raw table structures that exist in MS SQL, SQL Express and allow you to move them to SQL CE.
The primary wizard you'll probably use in SSMS to move data from an Access table to a SQL, or SQL CE table is called SQL Server Import/Export Wizard.
The learning curve on these wizards is pretty minimal. As your needs grow more advanced and the things you want to do get a little more fancy you'll find that scripting and the tsql language is where you'll want to dedicate some time to learning. But this should get you started with the question at hand.

Export MS Access Database to SQL Server 2008 Express

Is there an easy way to export a MS Access Database backend (Tables & relations) into an SQL Server database, so that it then can be used as a backend for a tailored application written in C# using Entity Framework?
The Access Database contains at least 50 tables and the export should not ruin its structure and relations.
Microsoft SQL Server Migration Assistant for Access
As Gabriel indicates using the SSMA is the best solution for upsizing the tables, indexes and relationships in Access. Then I'd suggest working on the Access front end, containing the queries, forms, reports, macros and VBA code so it works with the SQL Server data storage. This won't take very long by comparision to rewriting the app.
Then you may find you don't need to rewrite the application in another environment. This assumes that the tables are properly normalized and clean. Even then it may be simpler to do some cleanup in that respect in Access.
The Microsoft SSMA link in the comment from 2010 only worked when I chose NOT to register. Also, here is an updated link to the MS SSMA executable.
There are Upsizing Wizard for Access to do the migration to MSSQL 2008.
Goto [Database Tools] menu and click on [SQL Server] icon, then proceed the migration with the wizard.

Moving from Microsoft Access 2007 to Sql Server 2005

I have MS Access 2007 Databases and VBA modules associated with it.
I Now want to upgrade my project so as to use Sql Server 2005 and Vb.net using visual studio.net.
Can any one suggest Complete details on the transfer without much hassle or data loss.?
Thanks In Advance
Per RBarry's answer...the data migration to SQL Server is easy using the SQL Server Migration wizard. Then you will have a working microsoft access application (probably but maybe it will require polishing and tweaking).
To convert the front end (ui) to vb.net there might be a converter but even if there is one you would likely have to do a lot of it manually anyway. So you treat the access version like a prototype and you start building your app in vb.net by hand.
Seth
Start with the Ms-Access SSMA site: http://www.microsoft.com/sqlserver/2005/en/us/migration-access.aspx
I am not aware of a migration guide specifically for Access -> SqlSever, however, there is a very extensive Oracle -> SqlServer Migration Guide that you could easily cherry-pick for a project plan.
I use SQL Server to import data from Access databases. Be aware that it won't import your keys or relationships- you'll need to recreate those.
Your VBA code is specific to Access. You'll need to rewrite it in VB.NET.
The Access queries are probably going to cause you the most trouble. Simple ones can be converted with the Upsizing Wizard, but the more complex ones will have to be rewritten in SQL.
Also note SQL Server objects follow different naming conventions. An Access table is typically prefixed with tbl, SQL tables typically aren't named with a prefix.