|
| Guests can view and read messages in the community forums, but you must register and log in to Deployment Forum before you can post messages. Click Register at the top of this page. Before posting messages, please read the forum guidelines at the bottom of this page. | |
| | Author | Messages | |
BiscuitGod
Posts:5

 | | 06/24/2008 4:47 PM |
| I have been in talks with several people about this and can't find an answer anywhere! It's getting to be a real headache for me too. Granted, i don't need this feature yet, but down the road, this will be something very handy to have. I just recently made a move to MDT2008. I was lucky and had the luxury of utilizing a whole different server, incase i screwed something up. So MDT, WDS, the server itself, and SQL 2005 are all fresh installs on my server. I have various things in MDT setup already, like an image in the Operating Systems, Applications, Out of Box Drivers, 1 Task Sequence, 2 deployment points (LAB and another i called DEPLOY), and my current problem, the Database. I am trying to deploy my images by utilizing the Make and Model Database (for now). I then plan on also utilizing the Computers Database too so i can further drill down settings by SN or MAC. I have had quite a time with trying to get the deployment process to see my database entry. I currently have 1, for a Dell Latitude D830. Right now i have SQL 2005 installed on my MDT server, but also have a database on another server with SQL 2000, both give me the same problems, but I think i'm getting better results with the 2005 server so far. Here's what i've done - I will only list steps taken since i installed SQL 2005: - Installed SQL 2005 and updated to SP2
- Opened SQL Server Management Studio (SSMS) and created a database called Deployment
- Right-clicked on Database in Deployment Workbench and selected new
- Entered in my server name, Named Pipes was selected, then selected to Create tables in existing database, and selected Deployment (the one i created in SSMS)
- Then Created my Make and Model entry for a Dell Inc. Latitude D830, and set the following settings: BuildID=D830, DriverGroup=D830, OSInstall=YES, SkipBDDWelcome=YES, SkipBuild=YES, SkipSummary=YES, AND just incase those didn't show during deployment i also added: SkipComputerName=YES, and ComputerName=TEST
- Then went back to SQL and enabled Named Pipes
- Tried a Deployment - No go... All the Wizard screens that i set to skip showed, and my computer name didn't change
- Followed this article: http://209.34.241.68/benhunter/archive/2007/07/10/bdd-2007-troubleshooting-database-issues.aspx
- Copied all 4 files it states to my imaged laptop, and ran ztigather.wsf in debug mode. I get the following error:
OPENING TRUSTED SQL CONNECTION to server mySQLServer. Connecting to SQL Server using connect string: Provider=SQLOLEDB;OLE DB Services=0;Data Source=wdm-tsdb;Initial Catalog=IMAGING;Network Library=DBNMPNTW;Integrated Security=SSPI ZTI error opening SQL Connection: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. (-2147467259) Unable to establish database connection using [MMSETTINGS] properties. So I then made a MANUAL connection to the server (Start|Run, \\mySQLServer, and entered credentials of the Domain account i'm using) Then ran the debug again... It worked! Then i found out i can use DBID= and DBPWD= and just supply the necesary credentials. I do this but i still get an error: OPENING STANDARD SECURITY SQL CONNECTION to server mySQLServer using login DOMAIN\deploy. Connecting to SQL Server using connect string: Provider=SQLOLEDB;OLE DB Services=0;Data Source=mySQLServer;Initial Catalog=Deployment;Network Library=DBNMPNTW;User ID=DOMAIN\deploy;Password=deploypassword ZTI error opening SQL Connection: Login failed for user 'DOMAIN\deploy'. The user is not associated with a trusted SQL Server connection. (-2147467259) Unable to establish database connection using [MMSETTINGS] properties. - I then Googled the error i got and found out that i need to set the authentication mode on the SQL Server to 'SQL Server and Windows Authentication Mode'. I do that and get the following error:
ZTI error opening SQL Connection: Login failed for user 'DOMAIN\deploy'. (-2147217843) I then Google that message... Can't find a lot on it.. but it dawns on me that maybe i need to somehow add that user to the SQL Server. I do this by going to SSMS and to Security, then to Logins, i add the user, associate it with my Deployment Database (not sure if i did this right), and try again, still errors. I then add another user... a local user SQL user (not Windows User), named Deploy with the same password, associate it the same way to the Deployment Database, and change my DBID in the customsettings.ini to just 'deploy' not 'DOMAIN\deploy'. this works! Try to do a deployment PXE boot and try it with those new credentials in the DBID and DBPWD. Still the same as before... i see all the wizard pages that should be skipped and the computer name didn't change. I'm told this should work with the UserID variable i have set in bootsector.ini, which is the domain user of deploy. Doesn't work!
I guess i'm at a total loss here... I have no clue how the heck to get this thing to work... and all i read about is how people are doing this and they make it seem so simple! My problem might be that i don't know JACK about SQL. I'm sure that's where the issue is, since i can't get the domain username to work. (or the local one for that matter with the deployment). I don't care how it's done i guess, i just want it to work. I know this was an unusually long post, but i wanted to make sure everyone had all the info i have up to this point. i've finally reached the end here i think.. i can't think of anything else to do, so if someone can help, that'd be wonderful!!! If anyone needs any files, error logs or whatever, let me know. The other issue is that i don't know if where the issue is during the deployment process.. there's nothing in any error logs there stating it couldn't connect or anything. Not sure where to look there either. Thanks in advance!!! | | | |
| Konrad
Posts:67

 | | 06/24/2008 6:36 PM |
| Have you defined an SQLShare variable in your customsettings.ini for the windows account to authenticate against?
You could also check your "Surface Area Configuration" of your SQL server as this was a problem for us. For certain versions of SQL 2005 remote connections is disabled by default. This article explains how to fix it: http://support.microsoft.com/kb/914277
Do you get any entries on the server's eventlog at the time of the failed connection attempts? | | | |
| BiscuitGod
Posts:5

 | | 06/24/2008 7:06 PM |
| Thanks for the response Konrad - I just checked the logs... nothing really too unusual... the only error that seems to appear is: Login failed for user 'KIESLING\Deploy'. The user is not associated with a trusted SQL Server connection. [CLIENT: ] I have tried using the SQLShare variable and i've tried it without. I get the same results both way. I checked out the MS article you listed.. My SQL Server 2005 is setup to allow Local and Remote connections, using both TCPIP and Named Pipes Thanks! | | | |
| bn2hunt
Posts:95

 | | 06/25/2008 7:34 AM |
| Just a thought but I checked mine and I have both tcpip and named pipes enabled on sql server 2005 Network configuration --> protocols for mssqlserver and on SQL Native Client Configuration ---> Client protocols.
Also in SQL did you add the user to the database security or just to SQL security? And what rights did you give them to the database?
| | | |
| BiscuitGod
Posts:5

 | | 06/25/2008 9:03 AM |
| Yep - Just checked there... They are both enabled on mine too.. in both places... I will walk you through what i did to add my domain user to SQL... I really have no clue about the permissions, but i will tell you what i did: 1. Opened Management Studio and connected (using domain Admin account) 2. Went to Security, then Logins... Right-clicked on logins and selected New Login 3. Under LoginName, i did a search and made sure my domain was selected and typed in 'deploy' for my domain account, it finds it and puts in 'DOMAIN\Deploy' for my LoginName. Then Changed my default database to Deployment. 4. Under Server Roles, i selected EVERYTHING 5. Under UserMapping, i selected the Deployment Database, and gave it the dbo schema, then down below for the database role membership, i selected all, except: db_denydatareader, and db_denydatawriter 6. Under Securables, i did nothing (not sure what that meant) 7. Under Status, i set it to Grant and Enabled. Clicked OK. The user gets added. 8. Then went to Databases, and my Deployment db, then Security, then users. My new account shows up here. 9. I got properties, just to double check everything, and my default schema is dbo, and i don't own any schema, but i have role membership to all but the db_denydatareader and db_denydatawriter 10. Everything else was blank, so I just left it. That's what i did to get my user setup. Now i did the same thing for a local user or SQL Server Authentication. Created a password for this user and setup everything the same way. I can actually get this user to work in my debugging that i do with ztigather.wsf IF i put in the DBID and DBPWD into the customsettings.ini file. However, it will not work in the actual deployment process... Which i find so incredibly ODD. My understanding is that if it works in the debugging, it should work under normal circumstances... Maybe i'm adding this user wrong in SQL?? I'm not a SQL guru by any means, I know about enough to be dangerous actually  Thanks | | | |
| BiscuitGod
Posts:5

 | | 06/25/2008 9:29 AM |
| Just tried the debugging again with the ztigather.wsf and had DBID=DOMAIN\Deploy and DBPWD=deploypassword and got the following error...
ZTI error opening SQL Connection: Login failed for user 'DOMAIN\Deploy'. (-2147217843)
Tried it again with DBID=deploy and DBPWD=deploypassword (for my SQL Server Authentication account) and it worked:
Successfully opened connection to database. About to issue SQL statement: SELECT * FROM MakeModelSettings WHERE MAKE = 'Dell Inc.' AND MODEL = 'Latitude D830' Successfully queried the database. Records returned from SQL = 1
maybe this will help... | | | |
| BiscuitGod
Posts:5

 | | 06/25/2008 10:11 AM |
| Possibly figured out the issue here, but someone is going to have to explain this one to me... as it makes ABSOLUTELY NO SENSE to me!!!
So i did a PXE deployment boot... once again not reading from the SQL Server... so i opened the CMD window in the bottom left and went to the Z: drive... I noticed that it was reading the customsettings.ini from the LAB distribution point!!!
I have two deployment points, as i was told i needed in some article. 1 (LAB) for captures and image creation only, and the other (DEPLOY) for image deployments. I've been modifying the customsettings.ini this whole time in the DEPLOY distribution point.
So I physically took the files from the Deploy\Controls folder and copied them to the Distribution\Controls folder... Rebooted into deployment and what do ya know?! It works!
Someone please explain to me WHY ON EARTH is it still using the LAB distribution point?????? and then if that's just the way it works, then why do i need two distribution points???? WHAT A FREAKIN HEADACHE! Typical free MS product!
| | | |
| bn2hunt
Posts:95

 | | 06/25/2008 10:55 AM |
| | Don't know if it right or wrong but I only have one distribution point called lab. | | | |
| JCadavid
Posts:64

 | | 07/01/2008 1:33 PM |
| BiscuitGod,
Have you tried updating your deployment points? In bootstrap.ini, one of the first lines there is the share that the CD needs to point itself to. If you have multiple deployment points, make sure you are using the correct CD from that deployment point. There are ways to add multiple deployment points that the Deployment Guys have blogged on as well if that is a scenario you are looking to utilize.
-Johnny C | | | |
| Scoobysnax
Posts:3

 | | 09/08/2008 8:54 AM |
| | Did you start the SQL Browser service? I had the same problem, in that I could connect from the MDT box but not remotely and as soon as I started the service I could connect from my clients ok | | | |
| Scoobysnax
Posts:3

 | | 09/08/2008 8:54 AM |
| | Did you start the SQL Browser service? I had the same problem, in that I could connect from the MDT box but not remotely and as soon as I started the service I could connect from my clients ok | | | |
|
| | You are not authorized to post a reply. |
|
| |
ActiveForums 3.7 | |
|  | These forums are a user-supported community for IT professionals to exchange deployment tips, solutions, and techniques. For the benefit of all Deployment Forum members, please observe the following guidelines when posting to these forums: - We reserve the right to remove any message. Our moderators will remove all messages that are not respectful or productive. Profanity, racism, prejudice, and flaming are not tolerated.
- Do not advertise products or services. Our moderators will remove all advertisements or service announcements. Product and service recommendations from active Deployment Forum members are encouraged, however.
- Make sure your question isn't already answered. Before posting questions, search the forums. After ensuring that your questions are unique, post them to the most appropriate forum. This will help reduce noise in the forums.
- Help make the most of each thread. Do not post unrelated messages to a thread. Also, if you've resolved a question outside of these forums, please share the solution with other members by posting it back to the thread.
- Do not share confidential information. Confidential information includes product keys and addresses. Our moderators will edit any message containing confidential information, so double-check messages and their attachments before posting them.
- Post messages using only the English language. For the benefit of all Deployment Forum members, please post your messages using the English language.
We hope that you enjoy using this community. Please submit your comments and feedback on the Comments and Feedback page or post them to the Comments, Feedback forum. |
|  |
| |
|