infiniteLoop
06-25-2005, 03:51 AM
Hi, i'm kinda new to ASP, especially when it comes to database.
I have 2 questions about SQL server. First, what should i do about allowing NULL values when designing the database? What difference does it make? And if I disallow NULL values, should i enter default values?
Second, when adding new records to database with recordset.addnew, what SELECT statment, cursor, and lock type should i use.
I've always used "SELECT * FROM Table" and adOpenStatic, and adLockOptimistic. This SELECT statement looks very inefficient to me, but I don't know what else to use.
Please help me out, thanx.
I have 2 questions about SQL server. First, what should i do about allowing NULL values when designing the database? What difference does it make? And if I disallow NULL values, should i enter default values?
Second, when adding new records to database with recordset.addnew, what SELECT statment, cursor, and lock type should i use.
I've always used "SELECT * FROM Table" and adOpenStatic, and adLockOptimistic. This SELECT statement looks very inefficient to me, but I don't know what else to use.
Please help me out, thanx.