Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 C# Generator
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Onamuji
Aged Yak Warrior

USA
504 Posts

Posted - 05/16/2002 :  10:44:21  Show Profile  Visit Onamuji's Homepage  Send Onamuji an AOL message  Reply with Quote
The VB code was ok if you wanted it to be basic but when I was using it and trying to get it to work into my project it was quite painful. So in retrospect I have gone back to C# ... so I can have operator overloading plus smaller code anyhow ... will post here new routine ... working on one that will convert a stored procedure to a function as well...
...
I still have the old code if anyone is interested, but like I said ... it's not very robust and getting it there in VB.NET just was a bigger pain than I need at the moment ...

Edited by - onamuji on 05/23/2002 13:05:52

robvolk
Most Valuable Yak

USA
15732 Posts

Posted - 05/16/2002 :  11:31:27  Show Profile  Visit robvolk's Homepage  Reply with Quote
SWEET!

I do have one request though: if you are a code indenter, and you're gonna use the [ code ] tags on SQL Team, PLEASE break the lines in your code.

I'm running at 1280x960, and I STILL have to scroll to read everything.

Go to Top of Page

Onamuji
Aged Yak Warrior

USA
504 Posts

Posted - 05/23/2002 :  13:05:38  Show Profile  Visit Onamuji's Homepage  Send Onamuji an AOL message  Reply with Quote
This script will convert each table into a C# struct with the columns of the table being properties. It should work most of the time unless you have weird naming standards... but this is definitely helpful for create a type that represents a row of data ... i will post help scripts here in the future...

http://www.notevil.net/scripts/sql/SQL0001.sql



Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000