473,396 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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.Property1 = "Hello"
MyClass.Property2 = Unit.Pixel(100)
MyClass.Property3 = 100

Or even a control:

Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClass = "MyLabelCssClass"

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 1192
Search for ADO.NET
Peter

"shapper" <md*****@gmail.comwrote in message
news:11*********************@k78g2000cwa.googlegro ups.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.Property1 = "Hello"
MyClass.Property2 = Unit.Pixel(100)
MyClass.Property3 = 100

Or even a control:

Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClass = "MyLabelCssClass"

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*********************@k78g2000cwa.googlegro ups.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.Property1 = "Hello"
MyClass.Property2 = Unit.Pixel(100)
MyClass.Property3 = 100
Or even a control:
Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClass = "MyLabelCssClass"
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*********************@k78g2000cwa.googlegro ups.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.Property1 = "Hello"
MyClass.Property2 = Unit.Pixel(100)
MyClass.Property3 = 100
Or even a control:
Dim MyLabel As Label
MyLabel.Id = "MyLabel"
MyLabel.CssClass = "MyLabelCssClass"
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*********************@j27g2000cwj.googlegro ups.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...@markNOSPAMrae.comwrote:
"shapper" <mdmo...@gmail.comwrote in message

news:11*********************@j27g2000cwj.googlegro ups.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.googlegr oups.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...@markNOSPAMrae.comwrote:
"shapper" <mdmo...@gmail.comwrote in message

news:11**********************@k78g2000cwa.googlegr oups.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
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 -...
0
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...
15
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...
5
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...
3
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
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...
9
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
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...
7
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.