Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 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
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old July 29th, 2005, 04:04 AM
Authorized User
Points: 239, Level: 4
Points: 239, Level: 4 Points: 239, Level: 4 Points: 239, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2005
Location: , , .
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.

Thanks,
Jason

<Script>

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....>

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

End Sub



  #2 (permalink)  
Old July 29th, 2005, 01:02 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

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

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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



All times are GMT -4. The time now is 05:34 AM.


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