[dba-SQLServer] How good are you really?

Haslett, Andrew andrew.haslett at ilc.gov.au
Sun Nov 20 16:29:11 CST 2005


Do you need to work with the database directly?

If not, you can use the built in dotnetnuke methods to retrieve these
values.  Its quite easy to use..

-----Original Message-----
From: dba-sqlserver-bounces at databaseadvisors.com
[mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of John
Colby
Sent: Friday, 18 November 2005 3:20 AM
To: dba-sqlserver at databaseadvisors.com
Subject: [dba-SQLServer] How good are you really?

The challenge:

DotNetNuke stores it's user info in a denormalized field in a table in
SQL Server.  One field has the definition of the data, for that record,
at that
instant:

Website:S:0:0:TimeZone:S:0:4:PreferredLocale:S:4:5:Region:S:9:7:FirstNam
e:S:
16:6:PostalCode:S:22:5:Street:S:27:22:LastName:S:49:11:Unit:S:60:0:Telep
hone
:S:60:12:Country:S:72:13:IM:S:85:0:Fax:S:85:0:City:S:85:8:Cell:S:93:12:

With the data itself as follows:

 -480en-USMontanaLouise82637918 Keller Dr. Box
642Hammersmark307-436-9731United StatesGlenrock307-259-8423

As you can see, the data is really a set of fields, with the field names
embedded in the definition, then a start position within the data
string, and the length of the data actually in the string.

Is it possible to build a query or SP to pull the data out of the data
field, using the formatting data and return a table of the data with
field names and the data available?

John W. Colby
www.ColbyConsulting.com 

Contribute your unused CPU cycles to a good cause:
http://folding.stanford.edu/


_______________________________________________
dba-SQLServer mailing list
dba-SQLServer at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-sqlserver
http://www.databaseadvisors.com



IMPORTANT - PLEASE READ *** This email any any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not.



More information about the dba-SQLServer mailing list