Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' Visual Basic Programming 24-Hour Trainer by Rod Stephens; ISBN: 978-0-470-94335-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' Visual Basic Programming 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 1st, 2014, 05:31 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default Database connection issues

Hi,

I am trying to follow the steps in lesson 39. When I create the orderContext and then create the customerQuery, I don't see all the options for orderContext such as AcceptAllChanges. I only see a very few of them. I use visual studio 2012 professional.

I have SQL Server 2014 management studio, but I didn't download any .Net framework. Could that be why?

Thanks in advance!
shabnam
Reply With Quote
  #2 (permalink)  
Old May 1st, 2014, 07:17 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Update:
I continued with the try-it example regardless, and my datagridview doesn't display anything. The code runs without an error except for the part that has:
Code:
        DataGridView1.Columns("CustomerId").Visible = False
        DataGridView1.Columns("Customer").Visible = False
        DataGridView1.Columns("OrderItems").Visible = False

I appreciate your help.
Reply With Quote
  #3 (permalink)  
Old May 2nd, 2014, 10:38 AM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

OK; here I found the answer to this very tricky problem:
http://msdn.microsoft.com/en-us/data/jj556581

It seems that visual studio 2012 has that issue.

Shabnam
Reply With Quote
  #4 (permalink)  
Old May 2nd, 2014, 01:11 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,153, Level: 23
Points: 3,153, Level: 23 Points: 3,153, Level: 23 Points: 3,153, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 643
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Hi Shabnam,

Sorry I didn't have a chance to get back to you sooner.

I'm glad you figured this out. I hadn't seen this problem before and it's good to have the link you posted in case others have similar problems. On behalf of anyone who has this problem in the future, Thanks!
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
Reply With Quote
  #5 (permalink)  
Old May 2nd, 2014, 01:35 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Sure; I hope it helps someone else too. I spent quite a few hours until I finally found it.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
DataAdapter Connection string issues.... lochoa .NET Framework 2.0 0 January 30th, 2007 09:03 AM
SQL Connection/Database Issues fs22 ASP.NET 2.0 Basics 0 August 1st, 2006 03:17 PM
Connection issues with ADP file tdl6281 Access 7 June 19th, 2004 01:54 PM
Connection issues from an Access project VBAHole22 SQL Server 2000 2 June 13th, 2003 08:15 AM



All times are GMT -4. The time now is 06:27 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.