Click here to Skip to main content
15,907,231 members
Home / Discussions / Database
   

Database

 
AnswerRe: Weird nullable DateTime issue... Pin
Peter Josefsson Sweden30-May-08 1:00
Peter Josefsson Sweden30-May-08 1:00 
QuestionGetting size of database programatically using C# or VB.NET Pin
Zerox MXI29-May-08 21:35
Zerox MXI29-May-08 21:35 
AnswerRe: Getting size of database programatically using C# or VB.NET Pin
Hesham Amin30-May-08 5:23
Hesham Amin30-May-08 5:23 
Questionun-cooperative DataSets & TableAdapters Pin
ghazanfarKhan29-May-08 8:23
ghazanfarKhan29-May-08 8:23 
QuestionLotus Notes to SQL Replication Pin
madhuGM29-May-08 5:09
madhuGM29-May-08 5:09 
QuestionUsing select or set with exec Pin
ChrisFarrugia29-May-08 4:23
ChrisFarrugia29-May-08 4:23 
AnswerRe: Using select or set with exec Pin
Alsvha29-May-08 6:08
Alsvha29-May-08 6:08 
AnswerRe: Using select or set with exec Pin
SomeGuyThatIsMe29-May-08 7:59
SomeGuyThatIsMe29-May-08 7:59 
in sql 2000 sp4(mabye in other versions of 2000 but i dont have any to test on)


EXEC @var = procGetCount

but you have to RETURN the value out of the stored procedure for it to work and sql 2000 can only return int values.

example procedure code


DECLARE @var INTEGER
SET @var = 3
RETURN @var

you can also put SELECT @var before the return if you need to as well.
QuestionPrevent queries from SQL Injection attack in SQL Server 2005 Pin
salon29-May-08 2:22
salon29-May-08 2:22 
AnswerRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
SomeGuyThatIsMe29-May-08 2:28
SomeGuyThatIsMe29-May-08 2:28 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
salon29-May-08 3:32
salon29-May-08 3:32 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
SomeGuyThatIsMe29-May-08 4:02
SomeGuyThatIsMe29-May-08 4:02 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Alsvha29-May-08 6:11
Alsvha29-May-08 6:11 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
SomeGuyThatIsMe29-May-08 7:52
SomeGuyThatIsMe29-May-08 7:52 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Alsvha29-May-08 8:29
Alsvha29-May-08 8:29 
AnswerRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Alsvha29-May-08 6:15
Alsvha29-May-08 6:15 
GeneralRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
salon29-May-08 22:41
salon29-May-08 22:41 
AnswerRe: Prevent queries from SQL Injection attack in SQL Server 2005 Pin
Peter Josefsson Sweden30-May-08 1:17
Peter Josefsson Sweden30-May-08 1:17 
QuestionTRIGGER problem!!!!!! Help me! [modified] Pin
Karan_TN29-May-08 2:16
Karan_TN29-May-08 2:16 
AnswerRe: TRIGGER problem!!!!!! Help me! Pin
Peter Josefsson Sweden30-May-08 1:31
Peter Josefsson Sweden30-May-08 1:31 
GeneralRe: TRIGGER problem!!!!!! Help me! Pin
Karan_TN30-May-08 21:16
Karan_TN30-May-08 21:16 
GeneralRe: TRIGGER problem!!!!!! Help me! Pin
Peter Josefsson Sweden2-Jun-08 2:11
Peter Josefsson Sweden2-Jun-08 2:11 
GeneralRe: TRIGGER problem!!!!!! Help me! Pin
Karan_TN6-Jun-08 19:13
Karan_TN6-Jun-08 19:13 
QuestionBuilt in stored procedures Pin
dan!sh 28-May-08 23:53
professional dan!sh 28-May-08 23:53 
AnswerRe: Built in stored procedures Pin
Mark J. Miller29-May-08 3:32
Mark J. Miller29-May-08 3:32 

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.