Re: Filtering a voter?
From: Jon (Jon_at_discussions.microsoft.com)
Date: 01/02/05
- Next message: Leila: "Re: Problem with View"
- Previous message: Erland Sommarskog: "Re: Filtering a voter?"
- In reply to: Erland Sommarskog: "Re: Filtering a voter?"
- Next in thread: Jon: "Re: Filtering a voter?"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 2 Jan 2005 08:27:01 -0800
Thanks, i'll get typing...
"Erland Sommarskog" wrote:
> Jon (Jon@discussions.microsoft.com) writes:
> > I'm a complete novice with SQl, I'm completely self taught I have not
> > studied computer programming at any level and I have had to bodge things
> > as I have gone along. A hobby in my spare time. I'm trying to learn. I
> > have tried to create data inserts, but have failed I tried with
> > http://vyaskn.tripod.com/code.htm#inserts and had no joy. I kept getting
> > errors with it.
> >
> > Is there any other way that I can create these INSERT statements?
>
> Type them!
>
> No, you don't have to include the entire database. Usually for this
> sort of question, three to six rows per table is enough to demonstrate
> the problem.
>
> Yes, it's a bit of a boring job, but if you don't do, someone else will
> have to do it, and you are the one who is asking for help. (A hint is
> you don't have include columns that are not relevant to the question. Not
> as long you ascertain that the code you post - CREATE TABLE + INSERT -
> demonstrates the problem you see.) Don't forget to include the expected
> results! (The expected results can be in a simple text table, as the
> results as such are not to be run.)
>
> > When I first started, I could not get some of my web forms to insert
> > into certain tables on my database and as a result I changed them all to
> > Nullable, the whole database is updated from forms on the web which I
> > control, so I'm not worried about that.
>
> It's always a good idea to have several lines of defense. One day you
> might be poke around in your web forms, and as a result you fail to
> insert the data data for a column. If the column is declared as NOT NULL,
> you discover the problem, before there is any damage to the database.
> The same applies to foreign-key constraints.
>
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server SP3 at
> http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp
>
- Next message: Leila: "Re: Problem with View"
- Previous message: Erland Sommarskog: "Re: Filtering a voter?"
- In reply to: Erland Sommarskog: "Re: Filtering a voter?"
- Next in thread: Jon: "Re: Filtering a voter?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|