473,320 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

sql server database 2005 connection error

Expand|Select|Wrap|Line Numbers
  1. myConn.Open()
  2.             myCommand.ExecuteNonQuery()
  3.             MessageBox.Show("Database is created successfully", _
  4.                             "MyProgram", MessageBoxButtons.OK, _
  5.                              MessageBoxIcon.Information)
  6.             Dim DbConStrng2 = "Data Source=.\SQLEXPRESS;AttachDbFilename=" & DbFullPath & ";Integrated Security=True;Connect Timeout=30;User Instance=True"
  7.             Dim DbConnection As SqlConnection = New SqlConnection(DbConStrng2)
  8.             Dim obj As New SqlCommand
  9.             Dim DbReader As SqlDataReader = Nothing
  10.  
  11.      Line no. 114      If createTable(obj, DbConnection, DbReader, DbConStrng2) Then
  12.            MessageBox.Show("Tables Created successfully")
  13.      End If
I am getting the attached error on line no. 114
Attached Files
File Type: docx Doc1.docx (277.0 KB, 354 views)
Jun 25 '14 #1
0 910

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Irishmaninusa | last post by:
I have a client who is trying to connect to a sql server database using asp.net and this is the error message that they get, any ideas on what is causing the error message and what the correction...
2
by: Abram | last post by:
I have an ODBC 3.0 Application on Windows NT Server maintaining a connection to a SQL Server 2000 database on the same machine. When an error occurs, I'd like to be able to determine whether the...
1
by: PJ | last post by:
I'm getting an error message when posting information from my asp page to the database. This is the error message: DODB.Connection error '800a0e7c' Parameter object is improperly defined....
1
by: jimmy84c | last post by:
Hi all, After working for weeks on a project in VB.Net, I decided to deploy a test version on a user's computer. The user's XP SP2 computer has sql server xpress 2005 installed, and my VB.net...
2
by: Peter Afonin | last post by:
Hello, I'm using CreateUserWizard control in ASP.NET 2.0. I'm storing the data in SQL Server 2005. The first and last steps run smoothly without any problems. But I added one middle step to...
1
by: deepa80 | last post by:
I am trying to work on uploading images in SQL Server Database.Therez no error in the code though I encountered this while uploading the image @ runtime ..... Object reference not set to an...
0
by: Brad Brening | last post by:
I'm developing a quick site in VWD 2005 and SQL Server Express 2005. I'm using custom forms authentication where my user accounts are stored in a local MDF file attached to the project. I note...
5
by: icegray | last post by:
Hi, I am new about C# and MS SQL. I have done a new program which use MS SQL Database and I've install it to a new computer. But program doesn't run on new computer. I give SQL Server Connection...
1
by: johnlim20088 | last post by:
Hi, Hi, currently I have a timer window application and web application (Visual Studio 2005) which is connect to database (SQL Server 2005). How I connect to database>? I am using Visual...
0
by: Mugs321 | last post by:
Hi there, I'm trying to use an asp-based database GUI (a-la PHPMyAdmin) and I'm having problems connecting to my production MSSQL 2005 database. I connected successfully to my SQLExpress server...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.