Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
CLR Integration and Programming.
»
CLR newbie attempting JSON Serializer
CLR newbie attempting JSON Serializer
Rate Topic
Display Mode
Topic Options
Author
Message
Rekonn
Rekonn
Posted Wednesday, June 20, 2012 3:24 PM
Grasshopper
Group: General Forum Members
Last Login: Thursday, November 01, 2012 9:28 AM
Points: 17,
Visits: 161
Hi, I need to take a stored procedure that currently returns a simple and small record set, and change it to return JSON as an nvarchar(MAX) instead. There seem to be a good articles out there on how, but my knowledge of C# and Visual Studio is miniscule, so I'm missing some basic steps. Can someone help me bridge the gap between these two?
http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/
and
http://www.sqlservercentral.com/articles/CLR/74160/
Or, if it's not much harder, I'd like to see if I can implement the CLR using fastJSON, as that seems to have much better performance.
http://www.codeproject.com/Articles/159450/fastJSON
I'm using SQL Server 2008 R2 and Visual Studio 2010 btw, thanks in advance!
Post #1318993
Lynn Pettis
Lynn Pettis
Posted Wednesday, June 20, 2012 3:31 PM
SSC-Insane
Group: General Forum Members
Last Login: Today @ 11:09 AM
Points: 21,604,
Visits: 27,435
Rekonn (6/20/2012)
Hi, I need to take a stored procedure that currently returns a simple and small record set, and change it to return JSON as an nvarchar(MAX) instead. There seem to be a good articles out there on how, but my knowledge of C# and Visual Studio is miniscule, so I'm missing some basic steps. Can someone help me bridge the gap between these two?
http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/
and
http://www.sqlservercentral.com/articles/CLR/74160/
Or, if it's not much harder, I'd like to see if I can implement the CLR using fastJSON, as that seems to have much better performance.
http://www.codeproject.com/Articles/159450/fastJSON
I'm using SQL Server 2008 R2 and Visual Studio 2010 btw, thanks in advance!
To make it easier for others to get to the referenced url's:
http://blog.sqlauthority.com/2008/10/19/sql-server-introduction-to-clr-simple-example-of-clr-stored-procedure/
http://www.sqlservercentral.com/articles/CLR/74160/
http://www.codeproject.com/Articles/159450/fastJSON
Lynn Pettis
For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here
or
when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here
and
here
Managing Transaction Logs
SQL Musings from the Desert
Fountain Valley SQL
(My Mirror Blog)
Post #1318998
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.