Question : Reseeding Identity column

I have an ms sql server database 2008, with an identity column (1,1).  I had to delete a lot of data from the table which left my next seed at 1,111,938.  I would like to revert back to the next row id after the last valid row which is 57.  How can I reseed?  May do an insert and turn the identity off?

Answer : Reseeding Identity column

This is not possible by the design of Basic authentication and IIS. Basic authentication tells the browser to send the username (in clear text, so only use this over SSL). The server then determines the authentication source and method. In this case, it means authentication against AD. However, AD uses DOMAIN\Username (or sometimes UPN), thus a "Default Domain" option exists for simplicity. However, since you have multiple domains, it doesn't know which one to authenticate each user against. Unless IIS changes to allow a list of domain to try in a certain order, what you are looking for doesn't exist. I wouldn't count on MS adding such a feature either since it means doing multiple authentication requests against multiple domains, which isn't good for performance or security.

A few options:
1) Tell the users in one domain or another (or both) to use the full domain formatted username
2) Create a custom authentication filter to do what you want, and install it into IIS and use that (complicated and far beyond the scope of this question).
3) You *may*, depending on your setup and web application(s), be able to create multiple virtual IIS servers on the PC, attached to multiple IP addresses, with different default domains on each. Then  direct the users (either manually or via a script or web page) to the appropriate IIS website.
Random Solutions  
 
programming4us programming4us