Dropdownlist Resetting On Post Back, ??SQL 2005 Express Database Problem

Apr 21, 2008

Hi all,

I am trying to write a web page connected to an sql database of my MP3 files.  I have a dropdown list box that populates with the artist,  this hopefully being used to filter results into a datagrid.  However,  i am having a problem with the ddlb box repopulating on post back,  i trawled the news groups and coded the population of the ddlb within an "if not page.postback" statement but to no avail.  If i connect the ddlb to another sql database i have,  the page reloads with the selctedvalue retained.  So the theory is now that it is the SQL database,  (is this a limitation of SQL express?) and i am having troubleshooting this.  Here is the SQL of the databse:

USE [mp3]
GO
/****** Object:  Table [dbo].[Table_1]    Script Date: 04/21/2008 20:40:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Table_1](
[Title] [nvarchar](50) NOT NULL,
[Artist] [nvarchar](50) NULL,
[Album] [nvarchar](50) NULL,
[Year] [nvarchar](25) NULL,
[Comment] [nvarchar](500) NULL,
[TrackNumber] [nvarchar](10) NULL,
[path] [nvarchar](300) NOT NULL,
[genre] [nvarchar](25) NULL,
[id] [int] IDENTITY(1,1) NOT NULL,
CONSTRAINT [PK_Table_1_1] PRIMARY KEY CLUSTERED
(
[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]


Any help much appreciated.

 

Cheers

 

Billy

View 17 Replies


ADVERTISEMENT

Edited Data Won't Propagate Back To The Database (VB 2005 Express && SQL Server 2005 Express)

Dec 11, 2006



Hi,

I'm trying to learn some VB programming with the VB 2005 Express Absolute Beginner Series video tutorials (which I think is great) and have come across a problem that I can't solve.

When I follow the instructions in Lesson 9 (Databinding Data to User Interface Controls) my application will display the data from the database correctly and I can edit it (and as long as the debugger is running the data remains changed). However, the changes won't propagate back to the database. I don't get any error messages but after I edit the data, save (with the save button on the BindingNavigator toolbar), and end debugging the data in my database remains unchanged. When I use a MessageBox to show how many rows where edited/updated in the

Me.myTableTableAdapter.Update(Me.myDatabaseDataSet.myTable)

I get the correct number back. I'm sure the problem is not due to coding errors since I've also tried running the accompanying Lesson 9 project file that can be downloaded from MSDN and the problem persists.

I'm using Windows XP SP2, SQL Server 2005 Express Edition and VB 2005 Express Edition. I've tried installing SQL Server 2005 Express with a number of different settings, including default settings, but it doesn't make any difference.

Would greatly appreciate any feedback on this as I'm keen to resolve this problem so I can get on with the next tutorial lesson.

Thanks,
Ieyasu

View 6 Replies View Related

HELP : How To Back Up A Database On Ms Sql 2005 Studio Express

Nov 14, 2006

hi

Im using the free version of ms sql 2005 studio express. I can upload databases, edit them and check them etc.

how do I back them up on to my pc, I do not have the server with me, my ms database is hosted on namesco.co.uk hosting.

I know how to right click the database, click task and back up. But I dont know where to back it up?

Whenever I try to back up to somewhere on my c: drive it won't. I think it also only backs up on a .bak files. Which I don't have.

I've looked on the net and it says you need a seperate hard drive or tape drive for back. Do I need to add another hard drive to my pc, if yes what do I format it as. And also how do I get a .bak file?

Here is a screenshot of where I can get to:(you might have to copy and paste them in your browser, there bmp so are big images)

http://www.uktattoostudios.co.uk/images/ms1.bmp

http://www.uktattoostudios.co.uk/images/ms3.bmp

As you can see I dont have a .bak to choose so it comes up this. If I click ok and try and back it up, it says back up complete. However when I go in the folder there is no .bak file

I also read on the net that if there shared databases the hosts are the only ones who can back stuff up, I asked them and they said that I should be able to do it on ms sql studio express.

thanks

dave

View 6 Replies View Related

Unable To Back Up Database In MS SQL SERVER 2005 Express Edition

Aug 9, 2007

Dear supports,

This is the following Error when i tried to back up database in MS SQL SERVER 2005 Express Edition.

"
TITLE: Microsoft SQL Server Management Studio Express
------------------------------

Backup failed for Server 'OFIX07SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: The backup of the file or filegroup "sysft_article" is not permitted because it is not online. BACKUP can be performed by using the FILEGROUP or FILE clauses to restrict the selection to include only online data. (Microsoft.SqlServer.Express.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------"

Any one know the solution please help

Rith

View 1 Replies View Related

Unable To Back Database In MS SQL SERVER 2005 SP2 Express Edition

Aug 31, 2007

Dear Friend ,

I have try to back up database in MS SQL SERVER 2005 SP2 Express Edition ,It shows the following error .Please help me to solve it and tell me why it happend like this.Thanks

"
===================================

Backup failed for Server 'OFIX07'. (Microsoft.SqlServer.Express.Smo)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
Program Location:

at Microsoft.SqlServer.Management.Smo.Backup.SqlBackup(Server srv)
at Microsoft.SqlServer.Management.SqlManagerUI.BackupPropOptions.OnRunNow(Object sender)

===================================

System.Data.SqlClient.SqlError: The backup of full-text catalog 'article' is not permitted because it is not online. Check errorlog file for the reason that full-text catalog became offline and bring it online. Or BACKUP can be performed by using the FILEGROUP or FILE clauses to restrict the selection to include only online data. (Microsoft.SqlServer.Express.Smo)

------------------------------
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&LinkId=20476

------------------------------
Program Location:

at Microsoft.SqlServer.Management.Smo.ExecutionManager.ExecuteNonQueryWithMessage(StringCollection queries, ServerMessageEventHandler dbccMessageHandler, Boolean errorsAsMessages)
at Microsoft.SqlServer.Management.Smo.BackupRestoreBase.ExecuteSql(Server server, StringCollection queries)
at Microsoft.SqlServer.Management.Smo.Backup.SqlBackup(Server srv)

"

View 1 Replies View Related

What Happens To My SQL Express When I Post My Site To Full SQL 2005 Server

Jan 9, 2006

Lets say I use the 'enabling roles' for my ASP 2.0 site. This creates a ASPNETDB.DBF SQL Express file.
Later I go to post this to a real web server - which runs the 'full' MS SQL2005 server. What happens to the ASPNETDB.MDF file (or for that matter, any other MDF file I create with SQL Express) when it leaves the Express world and enters the Real world.

View 4 Replies View Related

2nd Post - Problem Installing SQL Server 2005 Express SP2

Feb 27, 2007

Hi,

I started applying "SQL server Express with advanced tools SP2" and had to stop on following items which I'm not too sure about what I must understand from step "Existing components". Those three items listed were:

- "SQL Server DataBase Services 9.1.2047.00"

=> which I can check

- "Reporting Services 9.1.2047.00"

=> which I can check

- Workstation components and development tools 9.1.2047.00

=> which is simply disabled???

If I then look at the details of that last item, I can see the following warning:

Name: Microsoft SQL Server 2005 Tools

Reason: Your upgrade is blocked. For more information about upgrade support, see the "Version and Edition Upgrades" and "Hardware and Software Requirements" topics in SQL Server 2005 Setup Help or SQL Server 2005 Books Online.

Edition check:

Your upgrade is blocked because of edition upgrade rules. For more information about edition upgrades, see the Version and Edition Upgrades topic in SQL Server 2005 Setup Help or SQL Server 2005 Books Online.

Now, following the suggestion of one person answering previous thread,

"If you're not sure if you have tools from another edition, you can check by going to Add/Remove Program, selecting the Microsoft SQL Server 2005 entry and clicking Change..."

I followed suggestion and got following result:

DEVELOPPEMENT

The following components are installed on this server

SQLEXPRESS



Database Engine

[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]

Reporting Services

[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]

Common components



Workstation Components

[Version: 9.1.2047.00 Edition: Express Edition Patch level: 9.1.2047 Language: Anglais (États-Unis)]

Looking at the results, everything seems to be normal. Only Express Edition, all same level which should be SP1. What step should I take to be able to upgrade to SP2 properly?

Thanks in advance,

Stéphane

P.S.

From "Add/Remove Programs" I have, all listed, the following SQL Server installed programs:

- Microsoft SQL Server 2005

- Microsoft SQL Server 2005 Backward compatibility

- Microsoft SQL Server 2005 Books Online (English) (July 2006)

- Microsoft SQL Server 2005 Compact Edition (ENU)

- Microsoft SQL Server 2005 Compact Edition Books Online (ENU)

- Microsoft SQL Server 2005 Compact Edition Developer Software Development Kit (ENU)

- Microsoft SQL Server 2005 Compact Edition Tools for Visual Studio 2005 (ENU)

- Microsoft SQL Server Management Studio Express

- Microsoft SQL Server Native Client

- Microsoft SQL Setup Support Files (English)

- Microsoft SQL Server VSS Writer

View 7 Replies View Related

POST BACK TO SERVER

Aug 31, 2007

hi all,

View 2 Replies View Related

Reporting Service Post Back Issues

Nov 25, 2007



I have developed a report in which I have two date parameters. when I deploy the report and view the report
I can see that for each date selection it is going for a postback. could you please advice me how can I solve this issue.

View 4 Replies View Related

How Can I Post Back A Statement From A Store Procedure To The .aspx Page

Oct 17, 2005

Hi all,Anyone can show me how can I catch the 'Print' statement that I have defined in my store procedure using SQL server 2000 DB on the .aspx page? ( I am using ASP.NET 1.0)My store procedure as follow:CREATE PROC NewAcctType(@acctType VARCHAR(20))ASBEGIN --checks if the new account type is already exist IF EXISTS (SELECT * FROM AcctTypeCatalog WHERE acctType = @acctType) BEGIN  PRINT 'The account type is already exist'  RETURN END
 BEGIN TRANSACTION  INSERT INTO AcctTypeCatalog (acctType) VALUES (@acctType)
  --if there is an error on the insertion, rolls back the transaction; otherwise, commits the transaction  IF @@error <> 0 OR @@rowcount <> 1   BEGIN    ROLLBACK TRANSACTION    PRINT 'Insertion failure on AcctTypeCatalog table.'    RETURN   END  ELSE    BEGIN    COMMIT TRANSACTION   ENDENDThanks for all your replies

View 10 Replies View Related

MS SQL Server 2005 Express Edition (Back-Up)

Oct 24, 2007



Hi,


I am using MS SQL Server 2005 Express edition with my application.


I am new to SQL Server.. Can any body help me in solving the following:


1) Is there any automatic back-up provision available in MS SQL Express edition ?
2) How can i take the back-up/archive my data ?
3) How to implement Data aging & Data pruning by using MS SQL Express edition 2005 ?


Thanks in advance

View 9 Replies View Related

Moving Back To MSDE 2000 After Removing SQLServer 2005 Express

Sep 18, 2007

Apparently you cannot go backwards. Once 2005 Express is installed, even removing it does not allow you to setup MSDE 2000 again. So there is no "trying it out" option.

Unfortunately, our software does not use 2005 Express. I tried it out, and now have a useless testing workstation that can't have MSDE 2000 installed again.

Any ideas on how to break the chain here are welcome.

View 1 Replies View Related

Back &&amp; Restore From Network Path Using SQL Server 2005 Express Edition

May 27, 2008



I am trying to restore database from network drive but
sql server 2005 express is giving error
"system.data.sqlclient.sqlErroratabase <dbname> cannot be opened due to inaccessible files
or insufficient memory or disk space (microsoft.sqlserver.express.smo)."
But when I restore database from "C:" or local drive it alows to do so.
Can anyone help.



View 5 Replies View Related

SQL Express Resetting To Windows Authentication Only After Power Failure

May 9, 2007

Has anyone else experienced SQL Express resetting to Windows Authentication only instead of mixed mode for logins after a power failure. I only noticed it happen today as we had 2 power outages in the office and it happened both times. If anyone has seen this happen or knows of a fix please let me know.

View 1 Replies View Related

Resetting Database

Aug 10, 2005

hi!i'm new to sql server and enterprise manager and i accidentally deleted all data in a table. how do i recover them? the table (CaptureManager) is still there but empty. i have the following information:if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[CaptureManager]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)drop table [dbo].[CaptureManager]GO
CREATE TABLE [dbo].[CaptureManager] ( [ID] [tinyint] IDENTITY (1, 1) NOT NULL , [Name] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Email] [varchar] (75) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Ext] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Status] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY]GO

View 4 Replies View Related

Need To Back Up && Restore A SQL Server Database When Only SQL 2000 And 2005 Are Available.

Oct 22, 2007

I am maintaining a .net 1.0 asp.net web application that accesses a SQL server 2000 database. I need to backup the database and then restore it on a laptop. Currently it resides on a server. The problem is that on the server they are using sql server 2005. If I backup using 2005 and then try and restore this database using SQL server 2000 or 2005 on the laptop, I get an error message. "Too many backup devices specified for backup or restore; only 64 are allowed. RESTORE DATABASE is terminating abnormally.
What can I do to restore the database? Must it be backed up with SQL server 2000 and then restored with SQL Server 2005?
Please help!

View 1 Replies View Related

Mirroring :: Principal Database Get Role Back After Being Back On Line

May 14, 2015

New to Database Mirroring and I have a question about the Principal database server. I have a Database Mirroring setup configured for High-safety with automatic fail over mode using a witness.

When a fail over occurs because of a lost of communication between the principal and mirror, the mirror server takes on the roll of Principal. When communication is returned to the Principal server, at some point does the database that was the previous Principal database automatically go back to being the Principal server?

View 2 Replies View Related

Question On Resetting Sql User Password For Sql 2005?

Feb 6, 2007

I have question regarding updating user password in sql 2005.

Is there a way to update user password in tsql without specify the old password?

In sql 2000, since we are still able to mess with the data in system table, I can use update statement to update the password field in the login table with encrypted data. But since sql 2005 does not allow users to mess with system tables, I am wondering if there are any ways to update user password without specifying the old password when I use "sa" user to login.

Thank you.

View 1 Replies View Related

Converting From SQL Server 2005 Back To Sql Server Express Edition?

Feb 17, 2007

Hi folks,I was working on MS sql server 2005 evalution where i have built a number of databases. However, i came to discove that the evalution version has expried before i finished my work. Now i have disinstalled the sql server 2005 and installed the Sql express edition.My concern here is how can i keep my databases so they can work with sql express edition?Thank you very much in advance.

View 1 Replies View Related

Get Info From Database With Dropdownlist

Dec 19, 2003

How do you get info from an SQL database to be displayed on a dropdownlist?

View 2 Replies View Related

Dropdownlist Database Search

Mar 19, 2008

Hi all.

I have a huge problem that ive been sitting with for awhile.

I have a web page with 4 dropdownlist boxes on it

Gender:
Race:
Field:
Location:

Now a user can search a SQL db from selecting values from these 4 dropdownlist boxes which are equal to values in the db obviously.

when they have done that and pressed submit a Gridview is populated with the people corresponding details and the user is able to view each row seperately.

Now the problem i am having is that when i havent used all 4 selections for eg

Gender: null (no value selected)
Race: Black
Field: Accounting
Location: Los Angeles

then no information is returned from the db in the gridview.
im using a sqldatasource to populate the gridview and here is the query string that i am using :


Code:

sql
SELECT [title], [gender], [initials], [name], [surname], [birthdate], [postaladdress], [suburb], [city], [zipcode], [criminalrecord], [drivers], [maritalstatus], [dependants], [citizenship], [province], [contactref], [hometel], [cell], [jobtitle], [relocate], [emmigrate], [email], [worktel], [enddate], [startdate], [FIELD], [education], [company], [positionheld], [jobdescription], [contactperson], [contacttel], [startdate2], [contactperson3], [jobdescription3], [positionheld3], [company3], [enddate3], [startdate3], [contacttel3], [other] FROM [cvinformation] WHERE (([race] = CASE WHEN @race IS NOT NULL THEN @race ELSE [race] END) AND ([province] = CASE WHEN @province IS NOT NULL THEN @province ELSE [province] END) AND ([education] = CASE WHEN @education IS NOT NULL THEN @education ELSE [education] END))



what i want to do is whether the user doesnt choose any selection and leaves the choice null that ALL the information in the table of the db be shown and even if they only choose 2 values and leave the others null then it still brings back the information from the criteria chosen..

Is this possible.?

View 8 Replies View Related

Binding A Database Records To A Dropdownlist

Nov 24, 2006

Hey I just wanted to know if anyone could tell me how to bind values from a database to a dropdownlist?

View 2 Replies View Related

Search For Database Using Textbox And Dropdownlist

Nov 28, 2006

hello..i need your help to provide me the idea and code how to view the data from database based on search criteria from user's input?the user's may fill up textbox and choose a criteria from dropdownlist...i am so no idea how to code it since i am fairly new in asp.net
 

View 5 Replies View Related

Dropdownlist Retrieve Data From Sql Database

Feb 13, 2008

i have 2 dropdownlist which is  ddlCategory and ddlItem.i want<<< a)both ddl get data from sql db.b)view the data in gridview.   i need code in vb.net to retrieve and post.tq  

View 1 Replies View Related

Dropdownlist: Database Connections Problems At EditItemTemplate

Apr 25, 2006

Hello,
I'm attempting to generate a dropdownlist by binding it to a database table.  My screen has a view of the records plus a footer for inserting new records.  I want to populate a drop down list of items from the database on both FooterTemplate and EditItemTemplate.  I can successfully create the list on FooterTemplate (the insert new record fields).  Here, I have no problems with my database connections.
On page load, if I hit 'Edit', it gives me this error:
There is already an open DataReader associated with this Connection which must be closed first.
I tried closing the datareader and I get an error: Invalid attempt to Read when reader is closed.
Here's the snippet of code:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
LoadDataFromDB()
If Not IsPostBack Then
DataBindGrid()
End If
End Sub
Sub LoadDataFromDB()
Dim strSQLStmnt As String
Dim cmdDefaults As SqlCommand
' Create new command object passing it our SQL query
' and telling it which connection to use.
strSQLStmnt = "SELECT tblTemplates.TemplateID, tblTemplates.Description, " _
& "tblTemplates.Tuition, tblTemplates.Books, tblTemplates.TrainingTable, tblTemplates.Housing, " _
& "tblResidency.ResidencyType, tblCategory.Type, tblCategory.Description AS CategoryDesc, " _
& "tblScholarship.ScholarshipType FROM tblTemplates INNER JOIN tblResidency ON tblTemplates.ResidencyID = " _
& "tblResidency.ResidencyID INNER JOIN tblScholarship ON tblTemplates.ScholarshipID = tblScholarship.ScholarshipID " _
& "INNER JOIN tblCategory ON tblTemplates.CategoryID = tblCategory.CategoryID"
cmdDefaults = New SqlCommand(strSQLStmnt, conDefaults)
' Open the connection, execute the command, and close the connection.
conDefaults.Open()
rdrDefaults = cmdDefaults.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
DefaultsDataGrid.ShowFooter = True
End Sub
Sub DataBindGrid()
DefaultsDataGrid.DataSource = rdrDefaults
DefaultsDataGrid.DataBind()
End Sub
Function BindResidency() As DataSet
'Populate the ddlDataSet
Const strSQLDDL As String = _
"SELECT Distinct ResidencyID, ResidencyType FROM tblResidency"
Dim myDataAdapter As SqlDataAdapter = New _
SqlDataAdapter(strSQLDDL, conDefaults)
myDataAdapter.Fill(ddlDataSet)
Return ddlDataSet
End Function
And the asp.net:
      <asp:TemplateColumn HeaderText="Residency">       <ItemTemplate>        <%# Container.DataItem("ResidencyType") %>       </ItemTemplate>       <FooterTemplate>        <asp:DropDownList id="add_residency" runat="server" Width="178px" DataSource="<%# BindResidency() %>" DataTextField="ResidencyType" DataValueField="ResidencyID">        </asp:DropDownList>       </FooterTemplate>       <EditItemTemplate>        <asp:DropDownList id="edit_residency" runat="server" Width="178px" DataSource="<%# BindResidency() %>"  DataTextField="ResidencyType" DataValueField="ResidencyID">        </asp:DropDownList>       </EditItemTemplate>      </asp:TemplateColumn>
Any help would be appreciated!
Thanks,
Curtis

View 2 Replies View Related

Import Excel File Into Dropdownlist Then Export To Sql Server 2005

Jun 13, 2006

i am handling a project where user can choose the excel file and the field in the excel file to export into sql server 2005. which mean there will be dropdownlist where the user can choose the field and so on. anyone know how to do this?

View 2 Replies View Related

Error Creating First SQL Express Database Via VWD 2005 Express: User Does Not Have Permission To Perform This Action

Aug 18, 2006

I get an error dialog when I try to create a new SQL database, both via the Add New Item dialog and the property wizard of a new SqlDataSource control. The error is:


Local Database File:

User does not have permission to perform this action.

I've searched for help with this.

I ensured the App_Data folder exists and I added the local ASP.NET account to the group that have R/W access to it (although the RO flag is in an unchangeable tri-state on the folder).
The SQL Server Express error log is clean and indicates full functionality.
Everything is running locally.
No VWD installation errors.

Any ideas?

Thank you!

View 3 Replies View Related

Northwind Database In SQL Server Management Studio Express Is Lost Or Used/processed By VB 2005 Express:How To Locate/return It

Dec 3, 2007

Hi all,

In the last one and half years, I used the Northwind Database in SQL Server Management Studio Express (SSMSE) to learn the programming of SqlConnections, Data sources, Database Exploere, ADO.NET 2.0, etc. via VB 2005 Express.

The Northwind Database in my SSMSE got lost very often, but I was not aware of it. How can I know where the Northwind Database is used or processed by my VB 2005 Express projects that were the examples of some tutorial books or my trial projects? How can I release the Northwind Database back to my SSMSE from the VB 2005 Express projects? Please help and advise.

Thanks in advance,
Scott Chang

View 2 Replies View Related

Unable To Pass Null Value With DropDownList Parameter In Reporting Services 2005

Dec 3, 2007



Hello,

I have a stored procedure that on two fields it allows null. On the report, I have two DropDownList boxes that are populated with data, however, I would like the user to be able to have the option of not selecting an item from these list, thus passing null to the stored procedure.

When I goto "Report | Report Parameters" I have set these fields to "allow null" and "allow blank" and at the bottom I also gave it the default value of null.

When I run the report in preview mode, those two dropdownlist have a <Select a Value> and my assumption is since I want them to pass null, I will just leave them that way. However, when the report is ran, I receive an error saying "Please select a value for the parameter: (my parameter)". So it forces me to select an option at which I don't want to do.

How can I set this to pass a null?

Thanks,
Flea#

View 11 Replies View Related

VB Express Connecting To Remote SQL 2005 Express Database?

Nov 26, 2007

Can VB 2005 express able to connect remote SQL 2005 express database?
I played with connection string many time and still could not success!
 Thanks all.
 

View 1 Replies View Related

Refering To Distinct Values Post(My Other Post)

Oct 22, 2007

---------------------------------------------------------------
My Original Post
I have to query n table(NLRImports) using the Distinct keyword, to retrieve a set of ID numbers. ( "Select DISTINCT id_nbr from NLRImport" ).

Now i want to use those values i retrieved, to process the records in the table(NLRImports) 1 by 1. How do i use those ID no's i retrieved as Variables or parameters for my next query?? If this makes sense?
----------------------------------------------------------------

First, thanks for the response.... now here is what im trying to do.
I created a simple application in delphi to import information to a table in MSSql2005. This is some of the resulting columns...

date | id_nbr | account_nbr | sub_account_nbr | ... etc
-------------------------------------------------------------

Now there will be several entries with the same id no but on different dates, so i take it dates would rather be my pkey.

Then i need to take one person's entries(i work on id_nbr) and go thru all the entries taking the earliest date and comparing all the other entries for that person to the first date and select all the dates more than 19 days after the first date and less than 91 days from first date and place it in a new table.
I used cursor s and while loops to kind of get it going but i know that cursors are not really recommended use but the performance implications dont bother with this particular job.

What other ways should i be using to accomplish this?

thanks, i hope this is clear...

View 1 Replies View Related

Rolling Back SQL Server 2005 Databases Back To SQL Server 2000

Sep 22, 2006

Does anybody know of a way to rollback SQL Server 2005
databases back to SQL Server 2000? Is there a way of doing it without
resorting to Copy Database Wizard? I love to find a way of attaching a SS 2005 database
to a SS 2000 instance without any issues.



I recently upgraded to SS 2005 and I am very unhappy with the SS 2005 and I
want to rollback to SS 2000, which was a lot more stable. I am having
several major issues that are affecting my whole company's day-to-day
operations and the managers are not happy. Some of the issues include
night time batch running very sluggish for no apparent reason. This is a
biggest problem because it only occurs once or so a week and causes a disturbance
with the daily activities when the night time processing isn€™t completed on
time. The rest of the time, the batch processing runs great, even a little better then on SS 2000. I
don't believe it is a matter of my application needing to be retuned because if
that was the case, then why isn't it running sluggish every night? Also,
it's never the same day that the sluggish behavior occurs. If it was occurring
on the same night, then I would have something to investigate within our
application, but it doesn't. Another issue that I am having involves a
night time job that restores a copy of the production database to the Data
Warehouse server to be used for updating the data warehouse. Again, most
of the time it runs great (~2 1/2 hours), but once or twice a week, it goes
stupid and takes 6 1/2 hours for no apparent reason. Again, it is not happening
the same day either, which could give me something to invesigate. On SS 2000, this same job ran flawlessly. Never I did I run into situation that the
database restoration took that long to run. Even another issue involves a SQL Server Agent Job that was put into suspended
state. What's a suspended state and how can I get it out of suspended
state? I can find no information about suspended state in BOL. I
did a Google and nothing came up. If this suspended state was put
in for security reasons, great, but then tell me how I can remove the suspended
state. I am also not happy with the
fact that I can't get accurate information about the queries that are actively
running at that particular moment. In SS 2000, when I noticed high CPU
usage on the server, I would run the sp_who2 active stored proc and it would
show me all the active thread and how much CPU it was consuming. I would
then find the running threads with the highest CPU numbers and investigate the
query and see if we could improve it. Now in SS 2005, I get in the same
situation and run the sp_who2 stored proc, and there is no smoking gun.
All of the active threads are showing very little CPU usage, which I am very
suspect of. What the heck happen to sp_who2? I looked at some of
the other ways of looking at running processes (i.e... sys.sysprocesses) and
they don't appear to be giving the information that I need.



I am very unhappy and I just want to roll back to SS 2000 and wait a couple of
years before I upgrade to SS 2005.


Dave Brown

View 1 Replies View Related

Can't Connect To The Database Using C# Express And SQL 2005 Express

Jul 4, 2007

Hi

I'm trying to connect to the northwind database thats available online using c# and SQL 2005, both express editions. i used the following command



sqlcmd -S yourServerSQLExpress -E -iinstnwnd.sql



and it connects to the northwind database. but when it comes to the part where i have to select the data source, there are only 2 available - microsoft access database file, microsoft SQL server database file. but according to the microsoft books that i'm following, there should also be a "micosoft SQL server" in the data source list. because of this i cant connect to the database.

Please help...



thank you

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved