Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Populating tblAuthor from SQLServer 2K
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Populating tblAuthor from SQLServer 2K

 Post Reply Post Reply
Author
kayaker411 View Drop Down
Newbie
Newbie


Joined: 15 June 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote kayaker411 Quote  Post ReplyReply Direct Link To This Post Topic: Populating tblAuthor from SQLServer 2K
    Posted: 17 June 2004 at 9:07am
There are posts regarding importing but my question is bit different (if not I'll accept a link as a response to this post )

I want to import a bunch of users from another sql2k db into tblAuthor. I am not using encrypted passwords and I want people to be automatically logged in.

If I do a simple insert statement or use the Enterprise Manager Import Utility will User_code automatically populate or does it get it's unique value after an insert is made into that column? Should i include it in my insert statement? I have the same question for the salt field. Is this the same for each user?

TIA!
Rich
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 17 June 2004 at 10:47am
The User_code and Salt fields are not automactiaclly populated and do require a unquie value.

The Salt field is not use if you are not using encrypted passwords, but I would recommened doing so as the forum has not be fully tested with encrypted passwords disabled and so there are a few porpblems if this option is disabled.

The User_code field contains a unquie hex value that is around 20 characters long. You can put whatever you like in this field as long as it is unquie and not easy to guess as it is used in cookies to login users.
Back to Top
kayaker411 View Drop Down
Newbie
Newbie


Joined: 15 June 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote kayaker411 Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2004 at 9:57am
Thanx for the info boRg.

I used a little script to loop through a recordset containing the results of my other members table and do an insert on each into tblAuthors. Inefficient but there's only about 90.

I put the username into the user_code field. After a user logs in the system appends a value to the user_code and we're off and running.

So far I have not encountered any problems with encrypted passwords being disabled. I'll post back here if I do though. Thanks again!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.