INF: Doc Err on Visual Basic Library for SQL Server Login Proc

ID Number: Q78026

1.10

OS/2

docerr

Summary:

Pages 11, 12, and 16 of the "Microsoft SQL Server Programmer's

Reference for Visual Basic Library for SQL Server" manual contain

examples that incorrectly call the SqlInit$() and SqlLogin%()

functions.

The manual shows the following incorrect syntax:

If SqlInit$ = "" Then

Print "Can't start VBSQL."

End

End If

Login% = SqlLogin%

The manual should show the following correct syntax:

If SqlInit$() = "" Then

Print "Can't start VBSQL."

End

End If

Login% = SqlLogin%()

If the opening and closing parentheses are not present after the

SqlInit$() and SqlLogin%() function calls, Visual Basic will assume

they are variables and login attempts will fail.

Microsoft has confirmed this to be a documentation error on pages 11,

12, and 16 of the "Microsoft SQL Server Programmer's Reference for

Visual Basic Library for SQL Server" manual. We will post new

information here when the documentation has been updated to correct

this error.