I have on scenario which I have to call a web service from SQL Server. Is there any way to accomplish this task?
As GSerg mentioned in comments, this is something you can do within a SQL CLR procedure. This link will walk you through a proof of concept scenario, but the principles are there.
http://blogs.msdn.com/b/spike/archive/2010/11/25/how-to-consume-a-web-service-from-within-sql-server-using-sql-clr.aspx
Depending on what you need to do with it, you can also build an SSIS package. It has an out-of-the-box task for web services.
https://msdn.microsoft.com/en-us/library/ms140114.aspx
I would use SQL Server Data Tools for Business Inteligence (SQL2012+) or Business Inteligence Development Studio (SQL2008[R2]) to create an Integration Services project including Web Service Task:
Related
In 2005, SQL Reporting Services had two separate services:
http://[server]/reportserver/reportexecution2005.asmx
and
http://[server[/reportserver/reportservice2005.asmx
In 2010, the reportservice2005.asmx has been replaces with reportservice2010.asmx. There are some differences between the two, but so far I've been able to navigate them ok.
But what I am not finding is any new service for reportexecution2005.asmx. And it does not appear that the functionality in this service has been rolled into reportservice2010.asmx.
So, for actually rendering reports, should I still just use reportservice2005.asmx?
From Report Server Web Service Endpoints and more specific the Execution Endpoints section I would say that ReportExecution2005 Namespace is still the way to go.
The ReportExecution2005 endpoint makes it easy for developers to
customize report processing and rendering from a report server in both
native and SharePoint integrated modes. The endpoint includes classes
and methods that existed in earlier versions of the Report Server Web
service. In addition, many new classes and methods have been added to
the Report Server Web service that are exposed through the execution
endpoint.
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.
A developer on my current project has used Microsoft.SqlServer.Management.Smo within the code of our development to build tables programmatically.
To me this seems like a bad idea.
Is it?
I thing being or not being a bad idea for that matter depends on the environment under which the application will be run or deployed or what the application is required to do.
SMO makes it easy to perform database administration operations in .NET code. While all of those admin tasks can be performed with T-SQL directly on a database or through the SQL Server Management Studio, being able to use SMO offers broad flexibility to include these types of operations in .NET applications.
In fact, SQL Server Management Studio relies on SMO for most of its management tasks.
I did find an article demonstrating what can be done with SMO here http://msdn.microsoft.com/en-us/magazine/cc163409.aspx
We are developing a multi-user desktop application with C# 3.5, windows forms and sql 2008.
There are various things I want to test -
1) performance - how application behaves when multiple users are accessing the database?
2) How to simulate a conflict, and test how application is helping out the user.
How can I test the above scenarios?
Any other scenarios you can think of?
thanks
We need to see how the application communicates with DB layer
Web Services or stored procedure calls
For Stored proceduress I would suggest using SQLQueryStress - sql server query performance testing tool
Alternatively if it through web services I would suggest testing using VSTT
VSTT has good information and articles on web testing, load testing
Visual Studio Performance Testing Quick Reference Guide (Version 2.0) Published http://blogs.msdn.com/b/edglas/archive/2010/04/13/visual-studio-performance-testing-quick-reference-guide-version-2-0-published.aspx
One more alternate option is
SQL 2008 has data services - Exposing Stored procedures as Web Services
You can exposre core procedures and load test them as web services in VSTT
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