Click here to Skip to main content
15,920,896 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralMPEG encryption Pin
zeeshi_247-Dec-07 23:31
zeeshi_247-Dec-07 23:31 
GeneralRe: MPEG encryption Pin
Christian Graus7-Dec-07 23:46
protectorChristian Graus7-Dec-07 23:46 
GeneralAbout TabPane Pin
Meenge7-Dec-07 23:02
Meenge7-Dec-07 23:02 
GeneralRe: About TabPane Pin
pmarfleet7-Dec-07 23:43
pmarfleet7-Dec-07 23:43 
GeneralRe: About TabPane Pin
Paul Conrad9-Dec-07 8:57
professionalPaul Conrad9-Dec-07 8:57 
GeneralRe: About TabPane Pin
John_Adams9-Dec-07 23:46
John_Adams9-Dec-07 23:46 
QuestionHow many records afected by this code Pin
Vimalsoft(Pty) Ltd7-Dec-07 22:45
professionalVimalsoft(Pty) Ltd7-Dec-07 22:45 
AnswerRe: How many records afected by this code Pin
pmarfleet7-Dec-07 23:40
pmarfleet7-Dec-07 23:40 
Vuyiswa wrote:
Select @@Rowcount from Login where Username = @username


This doesn't look right. Getting the rowcount from a query in T-SQL requires a separate query.

IMHO, the most efficient way to check for the existence of a record is to use the EXISTS keyword. This is because SQL Server will stop searching as soon as it finds the first match. For instance:

IF EXISTS (SELECT TOP 1 * FROM Login WHERE Username = @username)
  RETURN 1
ELSE
  RETURN 0
END


BTW, not sure what problem you are having with <pre> tags. They're working OK for me.

Hope this helps.


Paul Marfleet

"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush


AnswerRe: How many records afected by this code Pin
Vimalsoft(Pty) Ltd8-Dec-07 1:25
professionalVimalsoft(Pty) Ltd8-Dec-07 1:25 
GeneralError handling in TAPI3.0 by vb.net Pin
Sumit Prakash Sharma7-Dec-07 19:56
professionalSumit Prakash Sharma7-Dec-07 19:56 
GeneralRe: Error handling in TAPI3.0 by vb.net Pin
Dave Kreskowiak8-Dec-07 4:18
mveDave Kreskowiak8-Dec-07 4:18 
GeneralRe: Error handling in TAPI3.0 by vb.net Pin
Paul Conrad9-Dec-07 9:00
professionalPaul Conrad9-Dec-07 9:00 
GeneralRe: Error handling in TAPI3.0 by vb.net Pin
Paul Conrad9-Dec-07 8:58
professionalPaul Conrad9-Dec-07 8:58 
Generalfra tab Pin
Meenge7-Dec-07 18:13
Meenge7-Dec-07 18:13 
GeneralRe: fra tab Pin
Ray Cassick7-Dec-07 20:16
Ray Cassick7-Dec-07 20:16 
GeneralRe: fra tab Pin
Meenge7-Dec-07 23:19
Meenge7-Dec-07 23:19 
GeneralRe: fra tab Pin
Christian Graus7-Dec-07 23:46
protectorChristian Graus7-Dec-07 23:46 
GeneralRe: fra tab Pin
Ray Cassick8-Dec-07 7:01
Ray Cassick8-Dec-07 7:01 
GeneralFinding Available DB2 Servers Pin
Bob Bonser7-Dec-07 14:25
Bob Bonser7-Dec-07 14:25 
Generaladding multiple textboxes at runtime Pin
craigmg787-Dec-07 10:32
craigmg787-Dec-07 10:32 
GeneralRe: adding multiple textboxes at runtime Pin
Christian Graus7-Dec-07 10:51
protectorChristian Graus7-Dec-07 10:51 
GeneralRe: adding multiple textboxes at runtime Pin
craigmg787-Dec-07 10:57
craigmg787-Dec-07 10:57 
GeneralRe: adding multiple textboxes at runtime Pin
nlarson117-Dec-07 10:52
nlarson117-Dec-07 10:52 
QuestionWhat is the best way to write the same VBA code for multiple Excel workbooks? [modified] Pin
redjoy7-Dec-07 9:19
redjoy7-Dec-07 9:19 
GeneralRe: What is the best way to write the same VBA code for multiple Excel workbooks? Pin
Dave Kreskowiak8-Dec-07 17:04
mveDave Kreskowiak8-Dec-07 17:04 

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.