Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C# 2012/5.0 > C# 2012/5.0 General Discussion
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
C# 2012/5.0 General Discussion Discussions about the C# 2012 language and tool not related to any specific Wrox book
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2012/5.0 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 14th, 2015, 11:34 AM
Authorized User
Points: 50, Level: 1
Points: 50, Level: 1 Points: 50, Level: 1 Points: 50, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2012
Location: Texas!!
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default VS 2013 C# and copy statements

I'm an old COBOL programmer...

Well when useing a SQL read in C#, I have lots of SQL code sniplets.

Is there a way to copy these as needed into a Form's CS file?


cmd.CommandText = "Select...";

is there a way to say cmd.CommandText = "C:/codelib/code1.cs"; ?

And have a library of code snipplets with whatever SQL statements one needs in a folder.

Yes I know I can make another class and do it that way but I wondered if this would work?

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VS 2013? RKevinBurton BOOK: Professional ASP.NET MVC 4 1 October 8th, 2015 01:17 AM
POSTgreSql and VS 2013 Deaf Smith .NET 4.5.1 and Visual Studio 2013 General Discussions 3 June 16th, 2015 05:45 PM
Need help with Chapter 4 in VS 2013 craigrow BOOK: Professional ASP.NET MVC 5 2 January 7th, 2015 04:21 AM
sharepoint 2013 sorin ASP.NET 4.5.1 General Discussion 0 August 24th, 2014 06:50 PM
Book 4.5 work with VSEW 2013 bogdan BOOK: Beginning ASP.NET 4.5 : in C# and VB 1 April 11th, 2014 03:06 AM

All times are GMT -4. The time now is 12:06 AM.

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