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

Database

 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
QuintesV21-Jul-05 21:10
QuintesV21-Jul-05 21:10 
GeneralRe: ADO 2.8 Connection Object Closing SQL Server Connection Pin
Rob Graham22-Jul-05 10:54
Rob Graham22-Jul-05 10:54 
GeneraldataReader not executing properly Pin
WetRivrRat21-Jul-05 3:54
WetRivrRat21-Jul-05 3:54 
GeneralRe: dataReader not executing properly Pin
Rob Graham21-Jul-05 6:22
Rob Graham21-Jul-05 6:22 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 9:49
WetRivrRat22-Jul-05 9:49 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 10:42
Rob Graham22-Jul-05 10:42 
GeneralRe: dataReader not executing properly Pin
WetRivrRat22-Jul-05 10:48
WetRivrRat22-Jul-05 10:48 
GeneralRe: dataReader not executing properly Pin
Rob Graham22-Jul-05 11:13
Rob Graham22-Jul-05 11:13 
if the 'as' cast fails, thePwd will be a null (uninitialized object) so the Equals() call would throw an exception, so I tested for this first.
A suggestion:

<pre>

bool loginOk = false;
string thePwd = o as string;
if( thePwd != null)
{
if( thePwd.Equals("board"))
{
loginOk = true;
}
}
if(loginOk == true)
{
// initialise your stuff
}
else
msgbox("can't Log in...");

</pre>



<small><b>Absolute faith corrupts as absolutely as absolute power<i>
Eric Hoffer</i></b></small>
<small><b>All that is necessary for the triumph of evil is that good men do nothing.
<i>Edmund Burke</i></b></small>

GeneralHelp About Working with DataBases Pin
korso_rogan20-Jul-05 23:21
korso_rogan20-Jul-05 23:21 
QuestionHow can i clear all database connection via t-sql script Pin
m.rastgar20-Jul-05 20:28
m.rastgar20-Jul-05 20:28 
AnswerRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah21-Jul-05 4:10
Alomgir Miah21-Jul-05 4:10 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar21-Jul-05 11:59
m.rastgar21-Jul-05 11:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 5:59
Alomgir Miah22-Jul-05 5:59 
GeneralRe: How can i clear all database connection via t-sql script Pin
Alomgir Miah22-Jul-05 10:02
Alomgir Miah22-Jul-05 10:02 
GeneralRe: How can i clear all database connection via t-sql script Pin
m.rastgar22-Jul-05 12:17
m.rastgar22-Jul-05 12:17 
Questionhow to serialize (save) object into SQL Server? Pin
maaaxwell20-Jul-05 16:02
maaaxwell20-Jul-05 16:02 
AnswerRe: how to serialize (save) object into SQL Server? Pin
Christian Graus20-Jul-05 17:27
protectorChristian Graus20-Jul-05 17:27 
GeneralRe: how to serialize (save) object into SQL Server? Pin
maaaxwell21-Jul-05 15:32
maaaxwell21-Jul-05 15:32 
GeneralRe: how to serialize (save) object into SQL Server? Pin
Christian Graus21-Jul-05 16:21
protectorChristian Graus21-Jul-05 16:21 
GeneralDynamically creating DTS package Pin
Martin@captivasystems20-Jul-05 9:30
Martin@captivasystems20-Jul-05 9:30 
GeneralRe: Dynamically creating DTS package Pin
ToddHileHoffer21-Jul-05 10:00
ToddHileHoffer21-Jul-05 10:00 
GeneralRounding Problem of DateTime field Pin
zsharon1120-Jul-05 4:22
zsharon1120-Jul-05 4:22 
GeneralRe: Rounding Problem of DateTime field Pin
Albert Pascual20-Jul-05 7:44
sitebuilderAlbert Pascual20-Jul-05 7:44 
GeneralRe: Rounding Problem of DateTime field Pin
zsharon1120-Jul-05 11:05
zsharon1120-Jul-05 11:05 
GeneralLinking problems helppppp please!!! Pin
zvanolli20-Jul-05 1:32
zvanolli20-Jul-05 1: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.