Archived Months
March 2003
April 2003
May 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
all groups > sql server (microsoft) > october 2004

Query on a non indexed column with SQL Server 2000...
Posted by Aiden Fung at 10/28/2004 9:38:24 PM
I made a query on a non indexed column using SQL Server 2000. The estimated execution plan in Query Analyzer stated that it used the Clustered Index Scan. Can anybody explain to me why and how? Thanks much! Aiden Fung ...more >>


Does searching a field with null data cause overhead?
Posted by Shabam at 10/28/2004 2:38:40 AM
I have a search page that takes in various fields. Users may leave some of them empty. However in the sql generated the code is still doing a "Where X='' or Y='12'". Notice how X is still there, just that it's blank. Does this lead to more overhead on the sql server? ...more >>

Bulk insert slowing select in different DB?
Posted by Danny at 10/28/2004 1:21:30 AM
We have a SQL 2K standard sp3a box with 4 procs, 4GB ram, and IO on a good SAN. We had a situation where there were only two processes running on server. Process one is a bulk insert into DB1. Process two is a simple select in DB2 with join of 2000 rows with 3.5 million rows. The select ...more >>

Too many connections
Posted by Shabam at 10/27/2004 8:26:12 PM
I just stress tested my web application (dotnet + ms sql) using 50 virtual users. Now, after the stress test is long over, I'm still unable to browse the site. I've restarted the sql server as well as IIS, but still it doesn't work. I've not restarted the server yet though. What can be caus...more >>

SQL Password Query
Posted by BGlacain at 10/27/2004 8:13:25 PM
Hi Folks, I was wondering if there's a way to change a user's password without knowing what the current one is. sp_password needs the new password, even if the sa account is executing it. Is it possible to change the password without knowing the new one? Thanks, Brian ...more >>

Advanced SQL Update Query ?
Posted by peloffis NO[at]SPAM hotmail.com at 10/27/2004 3:15:40 PM
I would like to update a field in a table based on the summazition query of a value in the same table where the value of the record is in the top 10% of the total value In my head I figure I need to get the the following : "select sum(inventory.value) from inventory" = 270...more >>

locking
Posted by dvsbis at 10/22/2004 2:21:22 PM
hi all....i need to write a stored procedure to generate a key colum id/code/number etc here is wat i need to do... lock the record so it can't be updated until i finish generating a new number lastnum is in the column, need to increment this number than write it back again before anyother use...more >>

Handling duplicates in linked server and dealing with raised error
Posted by NOOR.FAZLI NO[at]SPAM gmail.com at 10/22/2004 8:45:50 AM
Hi I hope somebody has already dealt with this type of situation and will help me. We have Sql7sp4 and db2/AS400. By using openquery and linked server(for libraries in AS400) in sql server I'm able to insert, delete and update the data. But my problem is I need to write Stored procedure for ...more >>



msdb database marked suspect
Posted by Trifon Triantafillidis at 10/20/2004 12:57:02 PM
In my SQL server installation the msdb database has been marked "suspect" and also the SQL agent cannot be started. Also I can not define any backups in database management plans (there was on but now it is not working). The rest database seems to work fine for more than 2 weeks now. Any ide...more >>

creating unique #'s without identity column
Posted by jon.paugh NO[at]SPAM insurity.com at 10/20/2004 10:42:58 AM
We need to create a new unique file # for a document. This file # will be unique to the document type and to a year of the document. So each (document type, document year) combination has a next key value. Anyone have a suggestion for how to do this and avoid concurrency problems without using a...more >>

SQL Query Help
Posted by Ed MacAlmon at 10/19/2004 5:32:06 PM
I have a db that should only have one entry per client for one of two services offered in a fixed time period. I am trying to write a query that will show any client that has more than one of these services. I have entered a known case with both services offered but the following query doe...more >>

Query with multiple tables
Posted by Don at 10/19/2004 2:33:02 PM
I have what is probably a simple query, but I can't get anything to work. I have three tables. Table one(t1). Item, Description, product group, ........ 111 My item 43 222 Another item 44 Table two(t2): Item, location, qty_on_hand 111 1 12 111 2 4 222 1 20 222 2 10 Ta...more >>

Help with converting MS SQL To MS Access
Posted by samy.saied NO[at]SPAM gmail.com at 10/19/2004 7:08:01 AM
Hi, can anyone help me convert from MS SQL database, into MS Access, with keeping all relations and constraints?...more >>

Querying Data Dictionary?
Posted by NavEEd at 10/18/2004 5:19:27 PM
Hi there. Just wondering if there's a select you can do against the sys tables in SQL server like there are in Oracle. ie. SELECT distinct column_name from user_tab_columns where table_name = 'CUSTOMER' order by column_id ...more >>

SQLSourceSafe, anyone?
Posted by kelmen NO[at]SPAM hotmail.com at 10/14/2004 8:00:44 PM
Anyone used SQLSourceSafe? Or any other sql source control tool? Just want to learn your exp. ;)...more >>

Script a Table content?
Posted by Freestyler at 10/13/2004 5:13:00 PM
Is it possible to script a Table as: "Create table a ..... Insert into a (....) values (...)" how can I do it (not manually;-) ? Thanks for any help Freestyler ...more >>

zero padding
Posted by ppandya NO[at]SPAM orthodon.com at 10/13/2004 1:11:28 PM
Below is a function i created for adding zero padding. The function works if i want to add '0' padding at the back. for example test00000. But if i change the function to make it pad '0's in the front it does not work. for example 00000test DOES NOT work. The commented code in the function...more >>

Duplicates
Posted by yeetien NO[at]SPAM ennovations.com.sg at 10/12/2004 12:37:08 AM
Hi all, I have a customer table with duplicate records. There's a primary key in the table and there're few other tables linking to it. I would like to keep the oldest record and delete the rest of the duplicates. Before that, I need to update some columns in the oldest record with the newe...more >>

String searching
Posted by Shabam at 10/9/2004 5:35:50 AM
Searching through a database with data stored as text places a huge load on the server. I've seen some applications that use some sort of word indexing that helps speed things up. Is this the recommended strategy? And if so, how is this implemented and are there any articles that detail this...more >>

Looking for help with a calendar logic
Posted by ucraimx NO[at]SPAM hotmail.com at 10/7/2004 8:37:52 AM
I have written a application that stores tasks for a given day on my laptop. I'd like a query that , upon execution (I would call it from the task listing page) , would see that i have task(s) from a previous day that was not complete. Then it would set that status to 'Forwarded' and crate a NEW...more >>

Cannot View database properties in Enterprise Manager
Posted by graham.collins NO[at]SPAM gmail.com at 10/7/2004 6:51:31 AM
I have recently installed XP SP2 on my machine and am unable to access the database properties in Enterprise Manager. If I right-click on a database and select properties, Enterprise Manager closes. Earlier, it had popped up a message saying that Data Execution Prevention had caught it and was...more >>

Why is creating a SP "Greyed Out"?
Posted by tjgraham4 NO[at]SPAM hotmail.com at 10/7/2004 6:50:42 AM
Hi, I am trying to create a new stored procedure in a database that has already been created. In SQL 2000 when I right click on stored procedures and look to New Stored Procedure it is greyed out and will not let me create a new one. Why is that? TG...more >>

What does RECMODEL_70BACKCOMP do?
Posted by skissane NO[at]SPAM gmail.com at 10/6/2004 12:09:14 AM
Hi, Can anyone tell me what the recovery model RECMODEL_70BACKCOMP, referred to in the source of sp_helpdboption, is? I can find no references to it on Google. Cheers Simon Kissane...more >>

Connect problems with Sql Server Authentication
Posted by tshad at 10/4/2004 4:51:33 PM
I am trying to allow connection to my ASP page using Sql Server 2000. I have set up a login name "web" and password "web" on my development machine (not my normal Sql System). In Sql Enterprise Manager, it shows "web". In my default database, I have it set up as public,db_datareader,db_da...more >>

SQL Server newbie has questions
Posted by l;kdf[poiqwt at 10/2/2004 7:30:29 AM
I am wondering how I deploy SQL Server in a multi-seat application if I have SQL Server Developer edition. DO I have to buy a license to deploy, if so how much am I likely to pay per license. DO I have to buy the multi-thousand dollar package to deploy and then do I not have to pay per deployment...more >>

SQL Server 2000 MSDE and XP sp2 problem
Posted by Thomas Phaneuf at 10/1/2004 12:47:45 AM
To all, After installing Windows XP SP2, a new problem was created in Enterprise manager. When you select a table and try to view the rows, the message "Provider cannot be found. It may not be properly installed." This occurs regardless of all the fixes that I have tried as posted by Micros...more >>


DevelopmentNow Blog