Mango and System.Data - sql

I've been experimenting with Mango's new data libraries (System.Data.Linq) but I've never used Linq to SQL before and all of my existing code is written for SQLite with ADO.NET. Is there any way (via referencing a Silverlight DLL or otherwise, that I can just write the SQL myself or am I forced to use Linq if I want to use SQL Server CE?

The only way to use SQL Server CE on Windows Phone 7 is via Linq.
There is now way to use SQL that you write yourself.

Related

Include SQL database in .NET Console program without requiring client to have SQL?

I'm working on writing a .NET console program, and one of the things that it is planned to do is CRUD operations on a specific set of data. I currently have that set up as a List, but I'm thinking a SQL database would be ideal. Problem is, I don't want the end user to have to install a SQL server for this program.
I looked at the question Include SQL Server database in application, which suggested using SQL Server Compact Edition. However, that is deprecated, and I would rather use something that isn't deprecated. MySQL is my SQL server of choice, but if that's not the best for this program, I am perfectly fine looking at other solutions.
Is it possible to have a SQL database as part of my program without requiring a SQL server for the end user? If so, how?

TSQL in Windows phone 7

I'm porting an app from iPhone to Windows phone 7. The server sends an SQL file (T-SQL queries) with all info. Is there a way to execute these commands inside the SQL CE?
I can parse the sql file as its a flat text file, but I wonder if the sql ce can do it automatically?
There is no direct SQL access in Windows Phone, the only way is to use Linq to SQL!
All database access in Windows Phone is based on generated data models that make tables and their rows into collections of objects.
You can't even call a method to execute an SQL command, like you would in the desktop with ExecuteNonQuery()
So, seems to me that the only way you will be able to work this out is if you just send the whole SQL Compact database file (*.sdf), save it to the Isolated Storage, and then access it with Linq to SQL, or you'll have to write some code to parse your SQL file...

Creating SQL statements for creating tables in SQLce database

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.

Connect to the SQL instance using VB 6.0

How I can connect to the SQL instance using SMO with VB6.0?
I don't think you can because Microsoft.SqlServer.Smo.dll is not an ActiveX DLL, but depending on what it is you want to do you may be able to accomplish it using SQLDMO. Unfortunately Microsoft is ending support for SQLDMO after SQL 2008. You can read more at http://msdn.microsoft.com/en-us/library/ms141187%28SQL.100%29.aspx

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.