I have such sql query, in which there are 8 to 9 temp table generated and from each temp table, I am fetching data with use of read table.
I want to store temp table output into gridview, but after using sqlcommand,I am able to display first temp table output into gridview, but after executing query first temp table destroyed and second sql query which is using first temp table, is not getting reference. as first temp table is not available.
e.g. #temp1 -> I am able to display out put in grid view & destroyed
#temp2 -> which is using #temp1, but not getting reference of #temp1.
Works a charm locally but as soon as i upload this to the live server (hosted by heart internet) i get:
Code:
Server Error in '/' Application.
Specified argument was out of the range of valid values.
Parameter name: i
Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
I have use ajax calendar extendar which is working fine in development environment. But it is not not working in server. other Ajax controls are working fine.
Using sql server 2005 and vb.net 2005.I'm creating a .net console application where I am doing a SqlBulkCopy from a non-sql server db to a sql server db table and on the call for the bulk insert:
[Code]....
I'm getting a time out error after around 1 minute, however I set BulkCopyTimeout (see above) to 100 minutes, the error:
<ERROR>
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
</ERROR>
Has anyone experienced this and how to fix this or how do I change the timeout so I dont get this error?
I have a customized data import executable in .NET 3.5 which the SqlBulkCopy to basically do faster inserts on large amounts of data. The app basically takes an input file, massages the data and bulk uploads it into a SQL Server 2000. It was written by a consultant who was building it with a SQL 2008 database environment. Would that env difference be causing this? SQL 2000 does have the bcp utility which is what BulkCopy is based on. So, When we ran this, it triggered a Deadlock error.
Error details: Transaction (Process ID 58) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
I've tried numerous ways to try to resolve it. like temporarily setting the connection string variable MultipleActiveResultSets=true, which wasn't ideal, but it still gives a Deadlock error. I also made sure it wasn't a connection time out problem. here's the function.
/// <summary> /// Bulks the insert. /// </summary>[code].....
I have an ASPNET application written in VB.NET which resides on the company's intranet. I am trying to do a bulkcopy from an excel file which is located in a secure folder on the web server to an existing table in Sql Server. The problem is that the folder requires a user name and password which is not the current logged in user or the ASPNET user. My question is how do I logon to the folder so that I can access the Excel file.
moving some tables & stored procedures from SQL Server 2000, to SQL Server 2005.So far so good, but I've come across a problem with this stored procedure:
I used SQL SERVER 2008 R2 express as my web development database and I set its compatibility level to 2005. Unfortunately this database cannot be be attached to SQL server 2005. Are there any other options?
I added a DateTime column to a table in my database through the Server Explorer. Because the team lead for this project wasn't savvy on nullable types, one of the requirements was that there be no null values in the database. This requires me to program all sorts of useless code into the system, but that's another story. My problem arises when assigning a default value to this column. I typed the following into the cell for the "Default Value or Binding":
1/1/1753 12:00:00 AM
When I went to inspect the content of the table, I found that all of the dates had been populated with:
i had the sql 2008 enterprise and i want to go back to sql server 2005 because in 2008 i created new database but when i did some changes in the table , it gave me an eror that i cant save thins and i need to creat new one if some one know what i'm talking aboutif not i need the sql server installation tutorial i tried by myself but probebly i did it wrong and now i cant connect well to the sql
As I tested SQL temp table drops every time when sql connection from ASP.NET is closed/open. Is this only way using it, or it can be used depends on ASP.NET session as well? I'd need to access temp table from more separate selects on more different pages on the web site, if it is possible.
I run a web site with VB.Net and Sql Server, at a web host (so I use one instance of their Sql Server db). I now get this nasty message when trying to access the web site: Column 'kryptotext' does not belong to table tabellen. I have seen this before (but with other columns mentioned), and when I spoke to the tech guys they said that the server gives up after five (or so) invalid requests. The old problems I had were due to the fact that I had used Application variables - at least the problems appeared when I added the variable and diappeared when I deleted them.
This time, I have done very little. I ran a new check when some items of a gridview were databound, and if a condition was ok, then a mail should be sent and an update take place in the db. For now, this will not be true, so the new code doesn't fire, and I have now reverted to the old code anyway. I got htis message this morning, and then it has worked the entire day without me changing the code at all, and now it stopped working again, so to me it seems as if it's either not my code's fault, or I somehow flood the db server with requests (but the web site is new so there are really no users yet). One more thing I have added: I imported the Net.Mail namespace to the baseclass I'm using for the aspx pages, but I can't believe that has anything to do with this.
I asked the tech guys again, and the server has been working the whole day. Here's the web site: [URL] I am able to connect to the admin part of the web site, so it's just the public web site itself that doesn't run. What should I do? Edit: Now, 30 minutes later, it works again. I haven't done anything, in fact I had dinner now.
I want to secure my certain web page of site, Displaying lock icon at status bar of browser. How do I achieve this in 2.0 using any default certificate?
I have a login page with a login control; I have created a user using the asp.net configuration tool and when I enter the user details in it seems to be okay except it does not go to the destinationpageurl; why??? If I put an invalid username and password it show an error which is correct but I cant understand why it will not redirect to default?It seems to refresh and the address bar has change to :-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
[code]....
no alert box is displayed when i left the textbox blank and clicked the button
I have code behind which is being executed because it is causing an error. The problem is my breakpoint is not working. I have under debugger ASP.Net ticked and have this in my web.config