Click here to Skip to main content
15,920,602 members
Home / Discussions / Database
   

Database

 
QuestionJOIN on two tables where with a MAX value [modified] Pin
Gareth H10-Jun-09 2:59
Gareth H10-Jun-09 2:59 
AnswerRe: JOIN on two tables where with a MAX value Pin
Gareth H10-Jun-09 5:55
Gareth H10-Jun-09 5:55 
GeneralRe: JOIN on two tables where with a MAX value Pin
Blue_Boy10-Jun-09 21:22
Blue_Boy10-Jun-09 21:22 
GeneralDatabase Certificate................... Pin
Isaac Gordon10-Jun-09 1:34
Isaac Gordon10-Jun-09 1:34 
Questionexecute procedure Pin
Abdul Rahman Hamidy9-Jun-09 20:59
Abdul Rahman Hamidy9-Jun-09 20:59 
AnswerRe: execute procedure Pin
Vimalsoft(Pty) Ltd9-Jun-09 21:25
professionalVimalsoft(Pty) Ltd9-Jun-09 21:25 
GeneralRe: execute procedure Pin
Abdul Rahman Hamidy9-Jun-09 21:44
Abdul Rahman Hamidy9-Jun-09 21:44 
AnswerRe: execute procedure Pin
Vimalsoft(Pty) Ltd9-Jun-09 22:04
professionalVimalsoft(Pty) Ltd9-Jun-09 22:04 
Good Morning Abdul

If you have create Your Sp like this

create proc sp_detail
(
@p varchar(max)
)
as
select * from tblName where code in (@p)
go


if you want to execute it , you have to do the Following

declare @codes varchar(max)
select @codes=cast(quotename('28-2801','''')+','+quotename('28-2802','''') as varchar(max))
exec [sp_detail] @codes


Now to understand the Second problem you are Having, if you say it doesnt work , do you get any sort of Error or you get a logical error , please give more info.


Vuyiswa Maseko

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

GeneralRe: execute procedure Pin
Abdul Rahman Hamidy9-Jun-09 22:18
Abdul Rahman Hamidy9-Jun-09 22:18 
AnswerRe: execute procedure Pin
Ashfield10-Jun-09 1:16
Ashfield10-Jun-09 1:16 
GeneralRe: execute procedure Pin
Abdul Rahman Hamidy10-Jun-09 1:33
Abdul Rahman Hamidy10-Jun-09 1:33 
GeneralRe: execute procedure Pin
Ashfield10-Jun-09 2:58
Ashfield10-Jun-09 2:58 
GeneralRe: execute procedure Pin
Abdul Rahman Hamidy10-Jun-09 23:00
Abdul Rahman Hamidy10-Jun-09 23:00 
GeneralRe: execute procedure Pin
Ashfield11-Jun-09 1:29
Ashfield11-Jun-09 1:29 
QuestionSetting password to my own SQL database. Pin
deepseeindeepsy9-Jun-09 20:23
deepseeindeepsy9-Jun-09 20:23 
AnswerRe: Setting password to my own SQL database. Pin
Vimalsoft(Pty) Ltd9-Jun-09 21:07
professionalVimalsoft(Pty) Ltd9-Jun-09 21:07 
GeneralRe: Setting password to my own SQL database. Pin
deepseeindeepsy9-Jun-09 21:47
deepseeindeepsy9-Jun-09 21:47 
GeneralRe: Setting password to my own SQL database. Pin
Vimalsoft(Pty) Ltd9-Jun-09 21:59
professionalVimalsoft(Pty) Ltd9-Jun-09 21:59 
GeneralRe: Setting password to my own SQL database. Pin
Jerry Hammond10-Jun-09 5:36
Jerry Hammond10-Jun-09 5:36 
GeneralRe: Setting password to my own SQL database. Pin
deepseeindeepsy11-Jun-09 18:45
deepseeindeepsy11-Jun-09 18:45 
GeneralRe: Setting password to my own SQL database. Pin
Vimalsoft(Pty) Ltd11-Jun-09 20:31
professionalVimalsoft(Pty) Ltd11-Jun-09 20:31 
AnswerRe: Setting password to my own SQL database. Pin
Isaac Gordon10-Jun-09 0:13
Isaac Gordon10-Jun-09 0:13 
AnswerRe: Setting password to my own SQL database. Pin
Jerry Hammond10-Jun-09 5:35
Jerry Hammond10-Jun-09 5:35 
GeneralAbout .mdf Database..... Pin
Isaac Gordon9-Jun-09 20:22
Isaac Gordon9-Jun-09 20:22 
GeneralRe: About .mdf Database..... Pin
Jerry Hammond10-Jun-09 5:38
Jerry Hammond10-Jun-09 5:38 

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.