I'm new to silverlight and I'm porting from asp.net 2.0. I have done many data binding applications in asp.net where I use sql server 2005 and use it's tables and access them via sqlconnection object and perform all kind of database related functions. Can anyone tell does silverlight 2.0 supports such kind of facility. If so can I use any database server, if not is it through web services? can anyone point me some good place to start with.
No you can't connect directly to a database server. You need to use a web service. However to simplify things you can call a data web service such as SQL Server Data Services or Amazon S3. Otherwise use REST.
Silverlight is a client side technology. You can't access a database on the server directly. You have to use a layer in between, like webservices. For a nice tutorial on how to do that, check http://weblogs.asp.net/scottgu/pages/silverlight-2-end-to-end-tutorial-building-a-digg-search-client.aspx
Related
There is a offline WPF client and WCF server.
Client use SQL-CE or localDB - EF-Code first
For example, for the following scenario - Administrator can edit the common information and to add jobs to Users, and the user can see the lobules added him the job, and synchronize changes made when a connection.
Prompt the best way to synchronize reference data.
Looking toward the "microsoft sync framework" - but it seems that then have to implement your own provider. Maybe there's an easier way?
SQL CE and LocalDB are both supported out of the box in Sync Framework. you can use the same SqlSyncProvider against the LocalDb
no need to write custom sync providers.
Is it possible to handling handling external inserts/updates to Azure SQL Database from Azure Mobile Services (INSERT, UPDATE, directly to db and etc.)
I know about scripting. All tables working fine, and visible from Mobile Service manage center.
I need to handle events like direct SQL requests to DB from DB management portal or Azure Web sites, without direct requests to Mobile Service (REST API, and etc.)
Is the question how to execute SQL commands from a mobile device directly against the database (SQL Database) without first going through the REST API and scripting layer Mobile Services provides?
If so, then the answer is essentially no. The mobile device needs some way to communicate with the database, it uses the API and scripting layer to do this. Of course, you could build your own web service layer that then works with the database. But, this layer is what Mobile Services is providing for you out-of-the-box.
However, if the question is can you issue SQL commands against the database using tools like SQL Server Management Studio or even other web sites, then the answer is yes. The SQL Database which Mobile Services provides is a regular SQL Database. You have full control over it. You can connect to it and issue commands just like you would with SQL Database (via an ORM or direct SQL statements).
In my app, I want to read a remote sql database. After spending some hours on searching the net, I found out that this can not be done with sql commands but that it needs a webservice wrapper I.E WCF or ADO.net
Are there (and where) any examples on how to read/write records to a remote database server using windowsphone.
Thanks,
Bart
Your best option will be to use WCF Data Services with an AD.NET Entity Framework model (there even is a client for Windows Phone). Beware that the Windows Phone client by default does not use compression and does not use the compact json format. UPDATE: Latest client/server parts now use json with Windows Phone
I have created a form and grid using ExtJS 4.1.1 for insert, update, delete in MVC pattern in Visual Studio 2010. I want to perform these CRUD task with SQL Server (I have created the procedure) but I have no idea that how can I use ExtJS with SQL Server and C#. Even in Sencha web there is tutorial for PHP and MySQL only.
Thus, I am looking to connect ExtJS with SQL. I need step by step tutorial and guide that I can complete my official project.
Ext JS is a server-agnostic UI framework... so while some of the examples you have seen are in PHP with MySQL, it ultimately doesn't affect the JavaScript code. For example, the REST proxy:
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.data.proxy.Rest
This proxy (like all proxies in Ext JS) connects to a remote data service. That service sends/receives XML, JSON, or some other data format.
What the remote data service (written in .NET, PHP, Java, or anything else) does with the data once it's been received has nothing to do with Ext JS.
It sounds to me like you need a tutorial for writing web services in C#.
We're deploying some new WCF calls in our SQL 2005 DB using the CLR. In testing, I hardcoded in the code the endpoint to connect to, and deployed it to our test server. When we go to deploy this to production, we will be deploying it to many different SQL DBs, and using different endpoints to connect to (same service running on different servers). How can something like this be done? Is there a config file that can be referenced for the deployment of the dll into SQL?
The solutions above would work, but we found that the best practice approach would be to create a new table storing all of the different endpoints into the DB. Then, we updated the CLR to make a call to this table to get the endpoint(s) that were needed. So each server would have the proper metadata loaded for it, and it would all be retrieved from the DB. No hardcoding this way, and there's no need to worry about external text files on the SQL server. It's all contained in the DB.
Accessing Application Configuration Settings from SQL CLR
another technique..