I'm working on Windows 8 Desktop Application and I'm using a SQL Server database. But I cannot figure out how to connect to that SQL Server database with this.
Try SQLite , I used it and it worked fine for me . Here's a tutorial and the official website
http://blogs.msdn.com/b/robertgreen/archive/2012/11/13/using-sqlite-in-windows-store-apps.aspx
http://www.sqlite.org/index.html
If you're using .NET look up the SqlConnection class
Related
How can I create my on STUN/TURN server on Windows server 2012? I want to use that on webRTC project.
For now I'm using http://numb.viagenie.ca/ on my project, but that's very slow and can't use that on my project.
I searched on youtube but there is no tutorial video.
You can try gortcd which is lightweight and written in go. Can even run on Win7.
I want to build an app that gets data from a server and it displays it in xaml. I'm new to universal programs and in windows store apps in general. I haven't found anything useful yet as ms sql solutions require libraries that is not allowed for universal store apps :(
P.S.: The answer in how to connect sql server 2008 R2 with windows store application did not answer my question, but Jeffery's answer did.
You can’t connect to a MS SQL Server directly from the Windows App. The common way is host a data service and the app query the data through the REST API.
App -> data service (e.g. OData service) -> database (e.g. MS SQL Server)
In this case, you can deploy the SQL Server Data Service on IIS.
How to: Deploying OData Services using IIS & SQL Server
Then you use the HttpClient to retrieve the data from service.
Similar Question:
Windows phone 8.1 app connect with a database
The SMO-libraries are for a specific version of SQL Server.
So , is there any possibility to use different SMO libraries , in the same VB.net application in order that my application works regardless of SQL server version?
Thank you !
Yes! You can use older version of SMO-libraries for both servers. I used SMO-libraries from SQL Server 2008R2 in C# apllication and powershell script to migrate DB from 2008R2 to SQL Server 2005. Thus, there shan't be problems and when using VB.net.
How can I monitor all SQL commands that go through a ODBC User DSN?
the datasource is using the SQL Server native Client 10.0 driver.
I have an access app with hundreds of confusingly complex reports. Over the last 3 years We have ported the app to ColdFusion and MS Sql server and one of the reports has some inconsistencies with the access version of the app.
I've tried tracing the code through in the access app to discern exactly what is going on but I've been unable to figure it out. The access app uses an ODBC user DSN with the SQL Server native Client 10.0 driver. Is there some way I can monitor the datasource and see all the sql commands that are executed over that channel?
Setup a SQL Server profile trace and capture the command being executed on the server. I assume you are using MSSQL as the backend?
https://expressprofiler.codeplex.com
It's free profiler in case you use SQL Server Express version.
I am working with one Windows 8 app using SQLite database. now i wanted to sync SQLite with SQL Server 2012, there are lots of things available but not proper for Windows 8 app. Can any one help me out
Thanks
Have a look this link.
http://forums.xamarin.com/discussion/5719/sync-sqlite-with-sql-server-merge-replication
It should work for Windows 8 as the SQLite is cross platform. There is a Sqlite implementation for Windows 8 App. http://code.google.com/p/csharp-sqlite/