Click here to Skip to main content
15,895,084 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server 2000: Login failed for user ' ' Pin
Rob Philpott23-Feb-09 1:37
Rob Philpott23-Feb-09 1:37 
GeneralRe: SQL Server 2000: Login failed for user ' ' Pin
Nada Adel23-Feb-09 2:33
Nada Adel23-Feb-09 2:33 
GeneralRe: SQL Server 2000: Login failed for user ' ' Pin
Rob Philpott23-Feb-09 2:57
Rob Philpott23-Feb-09 2:57 
GeneralRe: SQL Server 2000: Login failed for user ' ' Pin
Nada Adel23-Feb-09 3:08
Nada Adel23-Feb-09 3:08 
QuestionParameter Multivalue Pin
Hakmeh Mohannad23-Feb-09 1:01
Hakmeh Mohannad23-Feb-09 1:01 
AnswerRe: Parameter Multivalue Pin
Wendelius23-Feb-09 8:50
mentorWendelius23-Feb-09 8:50 
QuestionSQL LOGIC Pin
Vimalsoft(Pty) Ltd23-Feb-09 0:28
professionalVimalsoft(Pty) Ltd23-Feb-09 0:28 
AnswerRe: SQL LOGIC Pin
Wendelius23-Feb-09 8:28
mentorWendelius23-Feb-09 8:28 
If possible, I think you should change the structure and use a child table to represent those values. It would be then far easier to handle the data.

However, if you want to have all 63 possible values in columns where the correspinding bit is on, you could use something like:
select convert(int, substring(data.field, 1, 1)) * 1,
       convert(int, substring(data.field, 2, 1)) * 2,
       convert(int, substring(data.field, 3, 1)) * 3,
       convert(int, substring(data.field, 4, 1)) * 4,
       convert(int, substring(data.field, 5, 1)) * 5,
       convert(int, substring(data.field, 6, 1)) * 6,
       convert(int, substring(data.field, 7, 1)) * 7,
       convert(int, substring(data.field, 8, 1)) * 8
       ...
from (select convert(varchar(63), 10101010101010)
       + replicate('0', 63-len(convert(varchar(63), 10101010101010))) as field
       ) data


The need to optimize rises from a bad design.My articles[^]

GeneralRe: SQL LOGIC Pin
Vimalsoft(Pty) Ltd23-Feb-09 19:28
professionalVimalsoft(Pty) Ltd23-Feb-09 19:28 
GeneralRe: SQL LOGIC Pin
Wendelius23-Feb-09 20:17
mentorWendelius23-Feb-09 20:17 
GeneralRe: SQL LOGIC Pin
Vimalsoft(Pty) Ltd23-Feb-09 20:35
professionalVimalsoft(Pty) Ltd23-Feb-09 20:35 
GeneralRe: SQL LOGIC Pin
Wendelius23-Feb-09 22:49
mentorWendelius23-Feb-09 22:49 
QuestionSQL Server 2008 Remote Debugging Pin
cfoxtrot22-Feb-09 21:08
cfoxtrot22-Feb-09 21:08 
AnswerRe: SQL Server 2008 Remote Debugging Pin
Wendelius23-Feb-09 9:02
mentorWendelius23-Feb-09 9:02 
QuestionI need Websit that compare SQL server - Oracle - Access Pin
E_Gold22-Feb-09 1:18
E_Gold22-Feb-09 1:18 
AnswerRe: I need Websit that compare SQL server - Oracle - Access Pin
riced22-Feb-09 2:19
riced22-Feb-09 2:19 
GeneralRe: I need Websit that compare SQL server - Oracle - Access Pin
Wendelius22-Feb-09 2:26
mentorWendelius22-Feb-09 2:26 
AnswerRe: I need Websit that compare SQL server - Oracle - Access Pin
Wendelius22-Feb-09 2:24
mentorWendelius22-Feb-09 2:24 
GeneralRe: I need Websit that compare SQL server - Oracle - Access Pin
E_Gold22-Feb-09 4:45
E_Gold22-Feb-09 4:45 
GeneralRe: I need Websit that compare SQL server - Oracle - Access Pin
Wendelius22-Feb-09 7:27
mentorWendelius22-Feb-09 7:27 
QuestionSQL Server Inventory and Database Documentation Pin
DrMaltz20-Feb-09 18:27
DrMaltz20-Feb-09 18:27 
AnswerRe: SQL Server Inventory and Database Documentation Pin
Wendelius20-Feb-09 20:45
mentorWendelius20-Feb-09 20:45 
Questionsqlite problem Pin
mirko8620-Feb-09 5:47
mirko8620-Feb-09 5:47 
AnswerRe: sqlite problem Pin
Wendelius20-Feb-09 5:56
mentorWendelius20-Feb-09 5:56 
GeneralRe: sqlite problem Pin
mirko8620-Feb-09 6:17
mirko8620-Feb-09 6:17 

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.