473,796 Members | 2,649 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Going Nuts!

This ASPX/SqlServer stuff is driving me nuts.

1 - In a previous post I said I had four tables and all were showing up in
Object Explorer (MS SQL Server Management Studio Express), but when I went
to do a query using the query text editor, only two of the tables showed up.
Then, mysteriously, the problem went away. Now, it is back.

2 - My insert into a table failed from the debug version in Web Developer,
so I copied that SQL call and pasted it into SQL Server Management Program
and ran the query. It worked. I then did a select * and only that entry
showed up, not all the others. However, from my localhost website, when I
do that select all the others show up but not the new one. This tells me
that I must be looking at two different databases. The one from the site is
the same as the one outlined in Object Explorer, but query window is
connected to a different one. Try as I might, I have not been able to get
the query window one to attach to the one in Object Explorer. In that app,
the one that I want is listed as LAPTOP\SQLEXPRE SS(Server 9,0.3042 -
LAPTOP\Sheldon) and then the db name. The "other one" is SQL Server
Compact Edition [MyComputer\...\ thedbname]. In my app, the connection
string in the config file is "Data Source=LAPTOP\S QLEXPRESS;Initi al
Catalog=thedbna me;Integrated Security=True"
providerName="S ystem.Data..Sql Client"

3 - I still can't figure out why my submit button will not fire an event if
the last event was the one fired by that submit button.

Please, someone, help me out here.

Shelly
Sep 19 '07 #1
5 1419
One more thing: The sql query window indicated that it is using
LAPTOP\SQLEXPRE SS -- the correct database, the one that I want. Doing a
change_connecti on to that one still results in the same thing. If I do a
select * from one of the tables that show up in Object Explorer (other than
this one), it gives me "Invalid object name" -- because it doesn't have that
table.

Could this be a problem with my configuration in that I should only have one
or the other? If that is the case, how do I get rid of the Compact Edition?
Also, how do I find out where the actual database file is located?
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
This ASPX/SqlServer stuff is driving me nuts.

1 - In a previous post I said I had four tables and all were showing up in
Object Explorer (MS SQL Server Management Studio Express), but when I went
to do a query using the query text editor, only two of the tables showed
up. Then, mysteriously, the problem went away. Now, it is back.

2 - My insert into a table failed from the debug version in Web Developer,
so I copied that SQL call and pasted it into SQL Server Management Program
and ran the query. It worked. I then did a select * and only that entry
showed up, not all the others. However, from my localhost website, when I
do that select all the others show up but not the new one. This tells me
that I must be looking at two different databases. The one from the site
is the same as the one outlined in Object Explorer, but query window is
connected to a different one. Try as I might, I have not been able to get
the query window one to attach to the one in Object Explorer. In that
app, the one that I want is listed as LAPTOP\SQLEXPRE SS(Server 9,0.3042 -
LAPTOP\Sheldon) and then the db name. The "other one" is SQL Server
Compact Edition [MyComputer\...\ thedbname]. In my app, the connection
string in the config file is "Data Source=LAPTOP\S QLEXPRESS;Initi al
Catalog=thedbna me;Integrated Security=True"
providerName="S ystem.Data..Sql Client"

3 - I still can't figure out why my submit button will not fire an event
if the last event was the one fired by that submit button.

Please, someone, help me out here.

Shelly

Sep 19 '07 #2
Well,
it certainly does sound like you've got more than one of the same database
going on.
What I'd do is:

1) Script out your "best" database using the Database Publishing Wizard to a
SQL text file.

2) Remove ALL database connections from management studio including the
compact edtion.

3) scour your machine(s) for *.MDF database files and get rid of them.

4) Create a new database in the exact place where you want it - ONLY ONE.

5) execute your saved SQL script against it to recreate your database.

6) connect to the same single database from anywhere you work so you don't
run into issues.

good luck.
Peter
--
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com

"Shelly" wrote:
This ASPX/SqlServer stuff is driving me nuts.

1 - In a previous post I said I had four tables and all were showing up in
Object Explorer (MS SQL Server Management Studio Express), but when I went
to do a query using the query text editor, only two of the tables showed up.
Then, mysteriously, the problem went away. Now, it is back.

2 - My insert into a table failed from the debug version in Web Developer,
so I copied that SQL call and pasted it into SQL Server Management Program
and ran the query. It worked. I then did a select * and only that entry
showed up, not all the others. However, from my localhost website, when I
do that select all the others show up but not the new one. This tells me
that I must be looking at two different databases. The one from the site is
the same as the one outlined in Object Explorer, but query window is
connected to a different one. Try as I might, I have not been able to get
the query window one to attach to the one in Object Explorer. In that app,
the one that I want is listed as LAPTOP\SQLEXPRE SS(Server 9,0.3042 -
LAPTOP\Sheldon) and then the db name. The "other one" is SQL Server
Compact Edition [MyComputer\...\ thedbname]. In my app, the connection
string in the config file is "Data Source=LAPTOP\S QLEXPRESS;Initi al
Catalog=thedbna me;Integrated Security=True"
providerName="S ystem.Data..Sql Client"

3 - I still can't figure out why my submit button will not fire an event if
the last event was the one fired by that submit button.

Please, someone, help me out here.

Shelly
Sep 19 '07 #3
OK, here is an update. Can someone please explain this to me?

I got it down to one database in the Object Explorer. When I then went into
the query editor, once again only two of the four tables showed up, and if I
queried one of them I got the wrong data.

I then went to Object Explorer and right clicked on each of the tables and
picked the "Script Table As...". Each one produced a query and each query
worked properly giving the correct data. That is for all four tables. I
then went back to the Query Editor and now all four tables show up?

What happened behind the scenes here?

Oh, I still have the second click on the button problem.

Shelly
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
One more thing: The sql query window indicated that it is using
LAPTOP\SQLEXPRE SS -- the correct database, the one that I want. Doing a
change_connecti on to that one still results in the same thing. If I do a
select * from one of the tables that show up in Object Explorer (other
than this one), it gives me "Invalid object name" -- because it doesn't
have that table.

Could this be a problem with my configuration in that I should only have
one or the other? If that is the case, how do I get rid of the Compact
Edition? Also, how do I find out where the actual database file is
located?
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
>This ASPX/SqlServer stuff is driving me nuts.

1 - In a previous post I said I had four tables and all were showing up
in Object Explorer (MS SQL Server Management Studio Express), but when I
went to do a query using the query text editor, only two of the tables
showed up. Then, mysteriously, the problem went away. Now, it is back.

2 - My insert into a table failed from the debug version in Web
Developer, so I copied that SQL call and pasted it into SQL Server
Management Program and ran the query. It worked. I then did a select *
and only that entry showed up, not all the others. However, from my
localhost website, when I do that select all the others show up but not
the new one. This tells me that I must be looking at two different
databases. The one from the site is the same as the one outlined in
Object Explorer, but query window is connected to a different one. Try
as I might, I have not been able to get the query window one to attach to
the one in Object Explorer. In that app, the one that I want is listed
as LAPTOP\SQLEXPRE SS(Server 9,0.3042 - LAPTOP\Sheldon) and then the db
name. The "other one" is SQL Server Compact Edition
[MyComputer\...\ thedbname]. In my app, the connection string in the
config file is "Data Source=LAPTOP\S QLEXPRESS;Initi al
Catalog=thedbn ame;Integrated Security=True"
providerName=" System.Data..Sq lClient"

3 - I still can't figure out why my submit button will not fire an event
if the last event was the one fired by that submit button.

Please, someone, help me out here.

Shelly


Sep 20 '07 #4
Now one more. From my code, I couldn't do the insert I wanted. I stopped
it in the debugger and copied the sql command. I then pasted that sql
command into the sql window in sql server manager and executed it. It
worked perfectly. I suspect it has to be a permissions problem. How can I
find what error was returned in the code from the attempted insert?

Shelly
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
OK, here is an update. Can someone please explain this to me?

I got it down to one database in the Object Explorer. When I then went
into the query editor, once again only two of the four tables showed up,
and if I queried one of them I got the wrong data.

I then went to Object Explorer and right clicked on each of the tables and
picked the "Script Table As...". Each one produced a query and each query
worked properly giving the correct data. That is for all four tables. I
then went back to the Query Editor and now all four tables show up?

What happened behind the scenes here?

Oh, I still have the second click on the button problem.

Shelly
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
>One more thing: The sql query window indicated that it is using
LAPTOP\SQLEXPR ESS -- the correct database, the one that I want. Doing a
change_connect ion to that one still results in the same thing. If I do a
select * from one of the tables that show up in Object Explorer (other
than this one), it gives me "Invalid object name" -- because it doesn't
have that table.

Could this be a problem with my configuration in that I should only have
one or the other? If that is the case, how do I get rid of the Compact
Edition? Also, how do I find out where the actual database file is
located?
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******* ******@corp.sup ernews.com...
>>This ASPX/SqlServer stuff is driving me nuts.

1 - In a previous post I said I had four tables and all were showing up
in Object Explorer (MS SQL Server Management Studio Express), but when I
went to do a query using the query text editor, only two of the tables
showed up. Then, mysteriously, the problem went away. Now, it is back.

2 - My insert into a table failed from the debug version in Web
Developer, so I copied that SQL call and pasted it into SQL Server
Management Program and ran the query. It worked. I then did a select *
and only that entry showed up, not all the others. However, from my
localhost website, when I do that select all the others show up but not
the new one. This tells me that I must be looking at two different
databases. The one from the site is the same as the one outlined in
Object Explorer, but query window is connected to a different one. Try
as I might, I have not been able to get the query window one to attach
to the one in Object Explorer. In that app, the one that I want is
listed as LAPTOP\SQLEXPRE SS(Server 9,0.3042 - LAPTOP\Sheldon) and then
the db name. The "other one" is SQL Server Compact Edition
[MyComputer\...\ thedbname]. In my app, the connection string in the
config file is "Data Source=LAPTOP\S QLEXPRESS;Initi al
Catalog=thedb name;Integrated Security=True"
providerName= "System.Data..S qlClient"

3 - I still can't figure out why my submit button will not fire an event
if the last event was the one fired by that submit button.

Please, someone, help me out here.

Shelly



Sep 20 '07 #5
I figured it out. In the catch all I had to do was add "e as Exception" and
then e.ToString() gave me the text. It works now.

I still have the second click not working.

Shelly

"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
Now one more. From my code, I couldn't do the insert I wanted. I stopped
it in the debugger and copied the sql command. I then pasted that sql
command into the sql window in sql server manager and executed it. It
worked perfectly. I suspect it has to be a permissions problem. How can
I find what error was returned in the code from the attempted insert?

Shelly
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******** *****@corp.supe rnews.com...
>OK, here is an update. Can someone please explain this to me?

I got it down to one database in the Object Explorer. When I then went
into the query editor, once again only two of the four tables showed up,
and if I queried one of them I got the wrong data.

I then went to Object Explorer and right clicked on each of the tables
and picked the "Script Table As...". Each one produced a query and each
query worked properly giving the correct data. That is for all four
tables. I then went back to the Query Editor and now all four tables
show up?

What happened behind the scenes here?

Oh, I still have the second click on the button problem.

Shelly
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13******* ******@corp.sup ernews.com...
>>One more thing: The sql query window indicated that it is using
LAPTOP\SQLEXP RESS -- the correct database, the one that I want. Doing a
change_connec tion to that one still results in the same thing. If I do
a select * from one of the tables that show up in Object Explorer (other
than this one), it gives me "Invalid object name" -- because it doesn't
have that table.

Could this be a problem with my configuration in that I should only have
one or the other? If that is the case, how do I get rid of the Compact
Edition? Also, how do I find out where the actual database file is
located?
"Shelly" <sh************ @asap-consult.comwrot e in message
news:13****** *******@corp.su pernews.com...
This ASPX/SqlServer stuff is driving me nuts.

1 - In a previous post I said I had four tables and all were showing up
in Object Explorer (MS SQL Server Management Studio Express), but when
I went to do a query using the query text editor, only two of the
tables showed up. Then, mysteriously, the problem went away. Now, it
is back.

2 - My insert into a table failed from the debug version in Web
Developer, so I copied that SQL call and pasted it into SQL Server
Management Program and ran the query. It worked. I then did a select
* and only that entry showed up, not all the others. However, from my
localhost website, when I do that select all the others show up but not
the new one. This tells me that I must be looking at two different
databases. The one from the site is the same as the one outlined in
Object Explorer, but query window is connected to a different one. Try
as I might, I have not been able to get the query window one to attach
to the one in Object Explorer. In that app, the one that I want is
listed as LAPTOP\SQLEXPRE SS(Server 9,0.3042 - LAPTOP\Sheldon) and then
the db name. The "other one" is SQL Server Compact Edition
[MyComputer\...\ thedbname]. In my app, the connection string in the
config file is "Data Source=LAPTOP\S QLEXPRESS;Initi al
Catalog=thed bname;Integrate d Security=True"
providerName ="System.Data.. SqlClient"

3 - I still can't figure out why my submit button will not fire an
event if the last event was the one fired by that submit button.

Please, someone, help me out here.

Shelly



Sep 20 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1875
by: Jim Davidson | last post by:
Here's what I'm trying to do: I have a string with 30 numbers in it. I want to generate a random number between 0 an 30, go to that position in the string and get that number. Here is the code you can run it and see it doesn't work. I'm new at this (only about a week) but I thought this should work. Please help. It's probably something simple, but I don't see it.
8
1420
by: Tom Szabo | last post by:
cTemp = oNode.cName; aStatList = "term"; window.alert(aStatList); -> "term" window.alert(aStatList.length); -> "0" the above code is going to display "term" and "0" That is it somehow adds/sets the value of the intended associative array "aStatList" to "term" but beleives the length is still zero...
32
2272
by: Fresh Air Rider | last post by:
Hi I understand that ASP.net 2.0 (Whidbey) is going to reduce coding by 70%. Surely this is going to de-skill or dumb down the developer's task and open up the task of web development to less qualified and trained staff. Tell me if I'm wrong.
132
5800
by: Kevin | last post by:
I don't know if I should even start this topic but here goes. I'm an ex vb6 developer, now developing in C#. The reason why I started developing in C# is because the company that I worked for at the time standarised on C#. Many of my friends working in previous companies that I worked for are starting to move back to VB.Net. When I asked them why, it seems that the next release of VB.Net seems very promising and they kinda see...
6
3250
by: Kathy Burke | last post by:
Ugh. I'm using the following in an asp.net. I get an Syntax Error in INSERT INTO Statement on line Cmd1.ExecuteNonQuery(). I've made all my database fields text (just to eliminate that as a potential problem). I changed all my variables in the insert statement to text to test as shown below. Still getting the error! I've checked again and again my db table and field names. Could someone please tell me where to go from here??? THANKS,...
12
1617
by: Marty | last post by:
It seems all of the sudden that user controls that contain images are referencing image sources relative to the document that I drop the control on. This obviously does not work beacuase the image source is relative to the user control, not necessarily the form. Can anyone tell me why this would be the case?
4
1222
by: Johnny Emde | last post by:
Hello Newsgroup I'm about going nuts!!! Sometime when I coding a asp.net (using C#) I'll get this wierd error. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
1
1568
by: windandwaves | last post by:
Hi I have the following file: --myfile.php <?php if($s) { echo $s; session_id($s); session_start;
16
342
by: jimmy.musselwhite | last post by:
Hello all It would be great if I could make a number that can go beyond current size limitations. Is there any sort of external library that can have infinitely huge numbers? Way way way way beyond say 5x10^350 or whatever it is? I'm hitting that "inf" boundary rather fast and I can't seem to work around it. Thanks!
0
9524
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10449
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6785
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5568
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.