Click here to Skip to main content
15,911,789 members
Home / Discussions / Database
   

Database

 
AnswerRe: query optimization Pin
Mycroft Holmes8-Aug-10 2:04
professionalMycroft Holmes8-Aug-10 2:04 
AnswerRe: query optimization Pin
PIEBALDconsult9-Aug-10 17:21
mvePIEBALDconsult9-Aug-10 17:21 
Question0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
whitesail7-Aug-10 2:24
whitesail7-Aug-10 2:24 
AnswerRe: 0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
Blue_Boy7-Aug-10 5:07
Blue_Boy7-Aug-10 5:07 
GeneralRe: 0x00 byte problem while storing binary data to MySQL BLOB via ODBC (C API) Pin
whitesail7-Aug-10 11:00
whitesail7-Aug-10 11:00 
QuestionCommon Data validation best practice SQL & .Net? Pin
billyjoesunday6-Aug-10 4:54
billyjoesunday6-Aug-10 4:54 
AnswerRe: Common Data validation best practice SQL & .Net? Pin
Mycroft Holmes7-Aug-10 0:39
professionalMycroft Holmes7-Aug-10 0:39 
GeneralRe: Common Data validation best practice SQL & .Net? Pin
billyjoesunday12-Aug-10 5:00
billyjoesunday12-Aug-10 5:00 
A solution to one part of the problem can be to define types in sql and then extract that information for code validation. I'd be interested in any tools to do the latter, but this is a nice way to define "constants" or types in sql.

/*Define INENTIFIER as varchar(50*/
IF NOT EXISTS (SELECT * FROM sys.types st JOIN sys.schemas ss ON st.schema_id = ss.schema_id WHERE st.name = N'IDENTIFIER' AND ss.name = N'dbo')
CREATE TYPE dbo.IDENTIFIER from varchar(50) null

/*Use the newly defined system type.*/

ALTER TABLE [dbo].[Customers] ALTER COLUMN [Id] IDENTIFIER /* varchar(50) */

You can use IDENTIFIER for your stored procs and have more control over hard coded lenghts, etc.
GeneralRe: Common Data validation best practice SQL & .Net? Pin
Mycroft Holmes12-Aug-10 12:17
professionalMycroft Holmes12-Aug-10 12:17 
QuestionHow to insert values in to one table, data from two different tables? Pin
sarala.s6-Aug-10 2:15
sarala.s6-Aug-10 2:15 
AnswerRe: How to insert values in to one table, data from two different tables? Pin
thatraja6-Aug-10 2:27
professionalthatraja6-Aug-10 2:27 
AnswerRe: How to insert values in to one table, data from two different tables? Pin
Blue_Boy6-Aug-10 2:32
Blue_Boy6-Aug-10 2:32 
QuestionRe: How to insert values in to one table, data from two different tables? Pin
lovejun7-Aug-10 22:54
lovejun7-Aug-10 22:54 
AnswerRe: How to insert values in to one table, data from two different tables? Pin
Blue_Boy8-Aug-10 6:17
Blue_Boy8-Aug-10 6:17 
Questionsql function Pin
Thanusree Duth5-Aug-10 19:27
Thanusree Duth5-Aug-10 19:27 
AnswerRe: sql function Pin
Blue_Boy6-Aug-10 1:06
Blue_Boy6-Aug-10 1:06 
QuestionCalling Executables from CLR Procedure Pin
Shahzad.Aslam5-Aug-10 6:18
Shahzad.Aslam5-Aug-10 6:18 
QuestionGet Names from Id Pin
SatyaKeerthi155-Aug-10 0:25
SatyaKeerthi155-Aug-10 0:25 
AnswerRe: Get Names from Id Pin
Jörgen Andersson5-Aug-10 2:29
professionalJörgen Andersson5-Aug-10 2:29 
GeneralRe: Get Names from Id [modified] Pin
J4amieC8-Aug-10 23:41
J4amieC8-Aug-10 23:41 
GeneralRe: Get Names from Id Pin
David Skelly9-Aug-10 1:51
David Skelly9-Aug-10 1:51 
GeneralRe: Get Names from Id Pin
J4amieC9-Aug-10 1:53
J4amieC9-Aug-10 1:53 
GeneralRe: Get Names from Id Pin
Jörgen Andersson10-Aug-10 0:27
professionalJörgen Andersson10-Aug-10 0:27 
AnswerRe: Get Names from Id [modified] Pin
J4amieC8-Aug-10 23:43
J4amieC8-Aug-10 23:43 
GeneralRe: Get Names from Id Pin
tarun_j20026-Aug-10 19:05
tarun_j20026-Aug-10 19:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.