Wrox Programmer Forums
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 29th, 2005, 04:04 AM
Authorized User
Join Date: Jul 2005
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default connection not initialized

Hello and thank you for taking a moment to read this message. I get the following error when I go to execute this Insert for an image into SQL Server: The ConnectionString property has not been initialized.
Can anybody tell me is the error in my code or is it perhaps in the way I have my permissions set up in SQL Server. (I am fairly new in working with sql server) Any suggestions would be greatly appreciated.



Sub Page
   ' Create Instance of Connection and Command
    Object Dim objConn As SqlConnection
    objConn = New SqlConnection( "Server=localhost;uid=jazzcatone;pwd=funkdafied;da tabase=Beatles" )

Dim myCommand As New SqlCommand("sp_person_isp",objConn)

<then do a whole bunch of stuff and then....>

 Response.Write("New person successfully added!")
Catch SQLexc As SqlException
 Response.Write("Insert Failed. Error Details are: " & SQLexc.ToString())
End Try

End Sub

Old July 29th, 2005, 01:02 PM
Friend of Wrox
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts

workstation id=<pc name>;packet size=4096;user id=jazzcatone;data source=<server name same as PC name>;persist security info=True;initial catalog=Beatles;password=funkdafied

Similar Threads
Thread Thread Starter Forum Replies Last Post
Connection property has not been initialized sasi.vempalli ASP.NET 1.0 and 1.1 Basics 0 September 19th, 2006 03:03 AM
ConnectionString not initialized samiboy ASP.NET 2.0 Basics 2 April 30th, 2006 06:18 AM
Connection Property:Has not been initialized louie001 ASP.NET 1.0 and 1.1 Basics 1 October 17th, 2005 11:46 PM
Connection has not initialized Properly ERROR!!!! ramana123 ASP.NET 1.0 and 1.1 Basics 0 July 7th, 2005 01:01 AM
which you have not initialized Gurpreetb78 Classic ASP Components 0 January 27th, 2005 03:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.