473,587 Members | 2,505 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need Expert Help and Advice. Thank You.

Hello,

Consider I have a String:

Dim MyString As String = "Hello"

or an Integer:

Dim MyInteger As Integer = 100

or a class which its properties:

Dim MyClass As New MyCustomClass
MyClass.Propert y1 = "Hello"
MyClass.Propert y2 = Unit.Pixel(100)
MyClass.Propert y3 = 100

Or even a control:

Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClas s = "MyLabelCssClas s"

Is there a way to save a String, an Integer, a Boolean, a Class, a
Control in an SQL database?

Something like:

Define something (Integer, String, Class, Control, etc)

Save in SQL 2005 Database

Later in code Retrive from database given its ID

Is this possible?

How should I do this?

What type of SQL 2005 table field should be used to store the
information?

Thanks,

Miguel

Feb 27 '07 #1
7 1203
Search for ADO.NET
Peter

"shapper" <md*****@gmail. comwrote in message
news:11******** *************@k 78g2000cwa.goog legroups.com...
Hello,

Consider I have a String:

Dim MyString As String = "Hello"

or an Integer:

Dim MyInteger As Integer = 100

or a class which its properties:

Dim MyClass As New MyCustomClass
MyClass.Propert y1 = "Hello"
MyClass.Propert y2 = Unit.Pixel(100)
MyClass.Propert y3 = 100

Or even a control:

Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClas s = "MyLabelCssClas s"

Is there a way to save a String, an Integer, a Boolean, a Class, a
Control in an SQL database?

Something like:

Define something (Integer, String, Class, Control, etc)

Save in SQL 2005 Database

Later in code Retrive from database given its ID

Is this possible?

How should I do this?

What type of SQL 2005 table field should be used to store the
information?

Thanks,

Miguel

Feb 27 '07 #2
On Feb 27, 1:11 pm, "Peter Bradley" <pbrad...@uwic. ac.ukwrote:
Search for ADO.NET

Peter

"shapper" <mdmo...@gmail. comwrote in message

news:11******** *************@k 78g2000cwa.goog legroups.com...
Hello,
Consider I have a String:
Dim MyString As String = "Hello"
or an Integer:
Dim MyInteger As Integer = 100
or a class which its properties:
Dim MyClass As New MyCustomClass
MyClass.Propert y1 = "Hello"
MyClass.Propert y2 = Unit.Pixel(100)
MyClass.Propert y3 = 100
Or even a control:
Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClas s = "MyLabelCssClas s"
Is there a way to save a String, an Integer, a Boolean, a Class, a
Control in an SQL database?
Something like:
Define something (Integer, String, Class, Control, etc)
Save in SQL 2005 Database
Later in code Retrive from database given its ID
Is this possible?
How should I do this?
What type of SQL 2005 table field should be used to store the
information?
Thanks,
Miguel
Yes, I use ADO.NET for creating code which work either with SQL/Oracle/
Access database, etc.
However I have no idea how to start this.

For example, I don't know:
1. Which data type should I use in the SQL 2005 database
2. How should I define the object in my C# / VB.NET and send it to the
database.

Thanks,
Miguel

Feb 27 '07 #3
On Feb 27, 1:26 pm, "shapper" <mdmo...@gmail. comwrote:
On Feb 27, 1:11 pm, "Peter Bradley" <pbrad...@uwic. ac.ukwrote:
Search for ADO.NET
Peter
"shapper" <mdmo...@gmail. comwrote in message
news:11******** *************@k 78g2000cwa.goog legroups.com...
Hello,
Consider I have a String:
Dim MyString As String = "Hello"
or an Integer:
Dim MyInteger As Integer = 100
or a class which its properties:
Dim MyClass As New MyCustomClass
MyClass.Propert y1 = "Hello"
MyClass.Propert y2 = Unit.Pixel(100)
MyClass.Propert y3 = 100
Or even a control:
Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClas s = "MyLabelCssClas s"
Is there a way to save a String, an Integer, a Boolean, a Class, a
Control in an SQL database?
Something like:
Define something (Integer, String, Class, Control, etc)
Save in SQL 2005 Database
Later in code Retrive from database given its ID
Is this possible?
How should I do this?
What type of SQL 2005 table field should be used to store the
information?
Thanks,
Miguel

Yes, I use ADO.NET for creating code which work either with SQL/Oracle/
Access database, etc.
However I have no idea how to start this.

For example, I don't know:
1. Which data type should I use in the SQL 2005 database
2. How should I define the object in my C# / VB.NET and send it to the
database.

Thanks,
Miguel
I have been also using the Enterprise Library Data Access Application
block.
I think I can do this using this ...

Thanks,
Miguel

Feb 27 '07 #4
"shapper" <md*****@gmail. comwrote in message
news:11******** *************@j 27g2000cwj.goog legroups.com...
>Yes, I use ADO.NET for creating code which work either with SQL/Oracle/
Access database, etc.
However I have no idea how to start this.

For example, I don't know:
1. Which data type should I use in the SQL 2005 database
2. How should I define the object in my C# / VB.NET and send it to the
database.

I have been also using the Enterprise Library Data Access Application
block.
I think I can do this using this ...
I've been following this thread with interest, but am really struggling to
work out what you're trying to achieve here... Maybe a bit of an explanation
as to what you're actually trying to do would be helpful...

Things tend to work best when they are used for the purpose for which they
were designed, so storing *data* in a database is good idea... :-) However,
what are you actually trying to store in your database here...? What is the
purpose of doing so...? What do you intend to do with it later...? What
value is this adding to anything...? What is the overall goal...?
Feb 27 '07 #5
On Feb 27, 1:43 pm, "Mark Rae" <m...@markNOSPA Mrae.comwrote:
"shapper" <mdmo...@gmail. comwrote in message

news:11******** *************@j 27g2000cwj.goog legroups.com...
Yes, I use ADO.NET for creating code which work either with SQL/Oracle/
Access database, etc.
However I have no idea how to start this.
For example, I don't know:
1. Which data type should I use in the SQL 2005 database
2. How should I define the object in my C# / VB.NET and send it to the
database.
I have been also using the Enterprise Library Data Access Application
block.
I think I can do this using this ...

I've been following this thread with interest, but am really struggling to
work out what you're trying to achieve here... Maybe a bit of an explanation
as to what you're actually trying to do would be helpful...

Things tend to work best when they are used for the purpose for which they
were designed, so storing *data* in a database is good idea... :-) However,
what are you actually trying to store in your database here...? What is the
purpose of doing so...? What do you intend to do with it later...? What
value is this adding to anything...? What is the overall goal...?
Mark,

Consider a web site with various pages.
Consider for example the homepage where I have an introduction text.
If the web site is multilanguage I would need to have that text in
more than one language.

So far so good. I created a control which inserts the text in various
languages in a SQL 2005 database.
for changing that text I have a form which my clients uses to edit
that text.

So all these small isolated content in my projects are saved on a SQL
2005 table.
Of course I have table for Documents or the Membership tables for
users, etc.
I use only this method for isolated content in web site pages.
Now I am trying to extend this to other data types, not just string.
For example, an integer, a control definition, a class, etc.
Of course only some of these elements will be available for the user
to edit.

Basically, I am trying to create a control which inserts various types
of resources into an SQL 2005 database.
They can be used only on my programming for saving singular
definitions or even expose the values to the user on CMS.

And of course I will use multilanguage for all of them. So I have two
tables:
One for common information on each record. For example data type, etc.
The other for the localized content, i.e., the object (string, class,
etc)

Anyway, any feedback would be great.

Thanks,
Miguel

Feb 27 '07 #6
"shapper" <md*****@gmail. comwrote in message
news:11******** **************@ k78g2000cwa.goo glegroups.com.. .
If the web site is multilanguage I would need to have that text in
more than one language.
Have you considered resource files...?
http://www.google.co.uk/search?sourc...guage+resource
Feb 27 '07 #7
On Feb 27, 4:08 pm, "Mark Rae" <m...@markNOSPA Mrae.comwrote:
"shapper" <mdmo...@gmail. comwrote in message

news:11******** **************@ k78g2000cwa.goo glegroups.com.. .
If the web site is multilanguage I would need to have that text in
more than one language.

Have you considered resource files...?http://www.google.co.uk/search?sourc...ie=UTF-8&rls=G...
Sure, of course. I use them.
But as I said I need to allow the client to access the data through
CMS and I prefer to use a database.

Resource files are ok for saving control properties and so on but not
to save content.

This that I am trying to do would be a mixture of saving various
resources (including objects) and content to be edited on CMS.

Anyway, I think this is possible ... ADO.NET, Enterprise Library,
etc...

For example, in ASP.NET 2.0 the profile classes are saved in the
database.

This would be something similar but saving not only classes but
objects ...

Or maybe I could create a container class which would have various
properties each one of a different type: string, integer, control, a
class, etc.

Then I would use the property or properties that I want and save that
class.

Anyway, these are just ideas ...

.... I have no idea how to start.

Any suggestions or help are welcome.

Thanks,
Miguel

Feb 27 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2337
by: John Smith | last post by:
Hi All, Sorry if I am calling expert's advice on such a simple thing. I am reading a c++ code but do not understand what this means? #define DM_ITEMS 6 #define FM_ITEMS ( 1 << (DM_ITEMS - 1) ) when I look at the value of FM_ITEMS in my debug log it is 32.
0
521
by: Gary Stollman | last post by:
My Father is a Clone//ETs plotting to overthrow the human race! On August 19, 1987 a gun-carrying Gary Stollman entered the studio of Los Angeles's KNBC television, crashing consumer reporter David Horowitz's live newscast. Stollman handed Horowitz a written statement and ordered him to read it while holding a gun on him. Unbeknownst to...
15
1488
by: Don Vaillancourt | last post by:
I do a lot of hiring for my company and a lot of the people I interview say that they are experts at SQL queries, but when I give them something simple just beyond the typical SELECT type of queries, they choke. For example I have a table that looks like this: PK_ID - primary key PARENT_ID - a FK to another row in the same table This...
5
1826
by: Kevin Carne | last post by:
First, Merry Christmas. I have been doing intensive Java programming for two years in school (no choice on the language), but now I need to return to C++ because my resume is filled with it both in Windows and Unix and I need work because I am graduating in a few months. Instead of just reading books to refresh my memory, I'm going to build a...
3
4830
by: apattin | last post by:
Hi all, I need some expert advice on a ROLLUP fine point. summary_table table has 4 columns: file_id primary_site morphology primary
1
1277
by: Chris | last post by:
Hi, I am developing an app with the common layers APP,BLL and DAL. I am puzzled as to where I should put the DAL? I need the app to be distributed as possible as well as the DAL will be acceddes by multiple apps. I was thinking of puting the BLL on the webserver and the DAL on a separate server. If I go that way how would I access the DAL...
9
2411
by: mistral | last post by:
Need help to remove list of days from date script. Need format "June 07, 2006" <SCRIPT LANGUAGE="JavaScript"> <!-- Begin // Get today's current date. var now = new Date();
0
1524
by: onegative | last post by:
G'day Y'all, I was hoping to get some expert feedback on a proposal I am considering regarding a new internal application to help fill some gaps in our IT department. I have some configuration data that would work well (very well in fact) defined as XML documents and I want to enrich that data with additional User defined information (child...
7
2131
by: SM | last post by:
Hello, I have a index.php template (2 columns). The right columns contains a bunch of links (interviews, poems, etc...) The left columns contains the actual article. So if I click on a link on the right menu, the article shows on the left column. The links have an url that look like this: http://www.myweb/library/?doc=194uf7s39
0
7923
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7852
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
5719
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3845
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.