Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 17th, 2007, 02:39 AM
Authorized User
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Debug CLR Integrated Stored Porcedure

Hi All,
I m creating CLR Integrated stored procedure in C# VS 2005

 Im using Streamwrite n creating text file in C drive.
Now in retriving date in data set.
writing data n text file using steam writer.
Now my code is getting build n deplyed
when i m executing through Management studio .procedure is getting executed Bt my text file is not getting created.
Cn any body help me.
plzzzzzzz
:((


 
Old October 17th, 2007, 04:30 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

I know this will sound silly, but you are checking on the right hard drive - I'm assuming it will be the C: drive on the server that it is trying to write to, rather than the C: drive on your PC (unless you happen to be running the server on your own PC, in which case they will obviously both be the same).

Other than that its likely to be a security issue, but in that case I would expect you to get an Exception, rather than the procedure running fine.

/- Sam Judson : Wrox Technical Editor -/
 
Old October 17th, 2007, 05:00 AM
Authorized User
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi ,
First of all thanks for reply.
Actually i m trying this code on Server machine itselt.
One more doubt i hv whether SQL Server supports System.IO Bcaz when i went into add reference on soln explorer i m not abel to get any of dll except System.Data,System.Data.sqlClint,OracleClient..... ..
 If nt
cn u suggest me i hv to retrive data n write that data frm sql n that data i hv to write in text file n File shoukd be created at runtime
regards,
Pady 123
:)






Quote:
quote:Originally posted by samjudson
 I know this will sound silly, but you are checking on the right hard drive - I'm assuming it will be the C: drive on the server that it is trying to write to, rather than the C: drive on your PC (unless you happen to be running the server on your own PC, in which case they will obviously both be the same).

Other than that its likely to be a security issue, but in that case I would expect you to get an Exception, rather than the procedure running fine.

/- Sam Judson : Wrox Technical Editor -/
 
Old October 17th, 2007, 05:10 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

The System.IO namespace is core to the .Net framework, therefore most (if not all) of it is in mscorlib.dll. You can confirm this by looking at the "Assembly:" bit in the MSDN reference for each class.

You keep missing letters out of your words - I'm finding it very hard to read you posts. Please try to include all your vowels in future!

/- Sam Judson : Wrox Technical Editor -/
 
Old October 18th, 2007, 05:45 AM
Authorized User
 
Join Date: Sep 2007
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

THANKS A LOT



Quote:
quote:Originally posted by samjudson
 The System.IO namespace is core to the .Net framework, therefore most (if not all) of it is in mscorlib.dll. You can confirm this by looking at the "Assembly:" bit in the MSDN reference for each class.

You keep missing letters out of your words - I'm finding it very hard to read you posts. Please try to include all your vowels in future!

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
version of CLR yugi9966 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 4 December 3rd, 2008 06:11 AM
Clr Error? hat Visual C++ 2005 0 January 10th, 2008 01:08 PM
.NET 3.5 CLR Vx General .NET 0 July 21st, 2007 02:50 PM
CLR Integration timstspry BOOK: Professional SQL Server 2005 Reporting Services ISBN: 0-7645-8497-9 0 October 13th, 2006 11:47 PM
Can't Debug a Stored Procedure DGrimesII SQL Server 2005 1 March 12th, 2006 12:38 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.