Archived Months
January 2003
June 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 (alternate) > april 2005

Filter by week: 1 2 3 4 5

What hardware to get?
Posted by grouparchive NO[at]SPAM gmail.com at 4/30/2005 11:54:19 PM
We are upgrading our SQL Server hardware because we need more CPU power. The current server is a P4 3.2 GHz with HT. The system we have been looking at is a dual Opteron, and the questions is: will two Opteron 244 (1.8GHz) give considerably more CPU power than a single P4 3.2 GHz? Or would we ...more >>


generating auto sequential numbers
Posted by Praveen D'Souza via SQLMonster.com at 4/30/2005 12:00:00 AM
I am using sybase aSE12.5. I have a table with only one column with datatype char(2). when i query this table to select all the records, i should get these records in the ascending order and they should be numbered , i.e, the o/p should look something like this column_name ------ -...more >>

Improve a very large T-SQL query
Posted by laurenq uantrell at 4/29/2005 5:54:24 PM
I have an MS Access form that users use to filter aproximately 30 criteria from a table of clients with all sorts of joins. I'm hoping someone can tell me a better way to do this: I use a stored procedure that looks like this: @emailSearch nvarchar(50) = Null, @nameSearch nvarchar(50) = Nul...more >>

Filter a text field for only numerics
Posted by laurenq uantrell at 4/29/2005 5:37:36 PM
Is there a way to filter a string field (nvarchar) for only the numerics. Example, I have a column that users use to enter phone numbers. Sometimes they enter 555-1212, sometimes 5551212, sometimes 555 1212, sometimes (001)555-1212. (Unfortunately that was the client's requirement to be able to...more >>

Install Client Connectivity (SQL Server 2000) Only w/ Less Files?
Posted by pengfrank NO[at]SPAM gmail.com at 4/29/2005 12:22:30 PM
I have a 500-MB full installation CD for SQL Server 2000. All I need is to install "Client Connectivity" component (about 272K) on a bunch of workstations for users across the nation. How do I reduce the installation file size, by eliminating most of the unwanted files? Thanks. ...more >>

Write only database
Posted by shahpiyush NO[at]SPAM gmail.com at 4/29/2005 10:25:10 AM
Hi, Is there a way to make a database write only, like in SQL server you can make a DB read only? There is sensitive data which we want dont want to read. What other alternatives can anyone think? Thanks. ...more >>

sp_elpuser rights
Posted by guitarman at 4/29/2005 9:22:12 AM
what users have the rights to execute sp_helpuser? ...more >>

Mail Profile disabled in SQL Server Agent Properties
Posted by brianhensley NO[at]SPAM yahoo.com at 4/29/2005 7:13:07 AM
It's a Windows 2000 Server box with SQL 2000 on it. MSSQLSERVER & SQLSERVERAGENT services are logged in as valid domain user. I set up a mail profile for that user, and can send email via Outlook 2003. However, when I go to the SQL Agent Properties in Enterprise Manager, Mail Profile is disabl...more >>



checking success of a request in a stored procedure
Posted by Sam at 4/29/2005 3:05:32 AM
Hi, Say I have a stored procedure which does two INSERT operation. How can I check if the first INSERT succeeded in order to know if I should carry on and do the second one ? Regards ...more >>

Session State InProc. HELP??????
Posted by bharath at 4/29/2005 2:41:46 AM
Hi Can anyone help me with Session Management in ASP.NET. I have a web application with a login page and i need to retain the username after he logs in. This is what I have in Config Files Global.asax <OBJECT RUNAT="SERVER" SCOPE="SESSION" ID="MyInfo" PROGID="Scripting.Dictionary"> </...more >>

can't print variable
Posted by Sam at 4/29/2005 2:33:43 AM
Hi, In the query analyser if I type the following: DECLARE @SortOrder integer exec pr_Admin_SetFieldSortOrder @SortOrder print @SortOrder @SortOrder is never printed. I just get the message saying that the Query Batch Completed. Why ? Regards ...more >>

Timeout Expired Error
Posted by Tommy.Vincent NO[at]SPAM gmail.com at 4/29/2005 2:14:45 AM
hi, I have a database in sql 2000 and its size is 30 gb. problem faced by me is when From my front end application when my user updates a record for a category,900 records are suppose to be updated. Updation uses only 3 tables from my database, but in between only user gets a error of...more >>

Monitoring Data file size
Posted by robin9876 NO[at]SPAM hotmail.com at 4/29/2005 1:23:03 AM
I am looking to automate monitoring space used for each file in each database on a SQL Server 2000. Does anybody have any SQL Scripts to do this or to find the space used? ...more >>

Splitting of database
Posted by Tommy.Vincent NO[at]SPAM gmail.com at 4/29/2005 1:16:51 AM
hi I am new to SQL.I have database of 30GB.I have just heard about spliting Databases which helps in Performance.So please can any one guide me in what are the steps involved in it. Anxious to know How does it work if i split my database in two different location. We are using SQl 2000. Opera...more >>

don't permit manual access to database
Posted by rpeinadorgz NO[at]SPAM gmail.com at 4/29/2005 12:51:11 AM
I've got a java application that connects to a sql server 2000 database. The application must access with total permissions to database but I don't want that anybody can insert or delete data with the corporative administrator of sql server 2000. How can I lock the corporative administrator in ...more >>

PRIMARY Files
Posted by 101 at 4/29/2005 12:00:00 AM
Taking a course on SQL. They are saying you can get better performance by having multiple files for a group. They then graphically show an example of "Primary" with multiple data files. I have tried altering PRIMARY to have multiple data files and I get and error. I have tried creating a n...more >>

case, joins and NULL trouble
Posted by Geremy at 4/29/2005 12:00:00 AM
Hi Consider two tables id1 code1 ----------- ----- 1 a 2 b 3 c id2 code2 value ----------- ----- ----------- 1 a 0 2 a 1 3 b 1 They are joined on the code field. For each code, I wa...more >>

Linked Servers - Postgres 8.0.2
Posted by Maniek at 4/29/2005 12:00:00 AM
Hi, I have: (WinXP+SP2+MSSQL2k+Postgres 8.0.2) I'm trying to link the PostgreSQL 8.0.2 server in Enterprise Manager Tree and don't know some of the parameters. Has someone of you a Postgres server linked to MSSQL? Could you tell me, what data you have, please? Security / Linked Servers / ...more >>

Ignore Triggers
Posted by Frank Bishop at 4/29/2005 12:00:00 AM
Is there a way I can perform an update on a table, but ignore the trigger (or disable the trigger) each time I run a particular update script from a DTS package? I would like subsequent DTS steps to use the trigger except for my last update statement. Is this possible? Thanks, Frank ...more >>

Frontpage 2002 & passing an SQL variable
Posted by Omar K at 4/28/2005 6:23:56 PM
Hi, I am quite new to frontpage and SQL but I have a Stock Control access database / frontpage to set up. My last problem deals with the automatic updating of the total quantity of stock with parts move in or out of the warehouse. The following shows my page layout (i posted this on the frontp...more >>

Snapshot replication
Posted by Gary Lou at 4/28/2005 4:21:40 PM
Hi All, I have set up a snapshot replication, and schedule it to run every night. The snapshot run successfully, and data get replicated to the subscribed server. However, data do not get transfer as the second day and there after. I check the job history, the job (distribution) run successfu...more >>

SQL - query improvement MAX(date), IN
Posted by jorgedelgadolopez NO[at]SPAM gmail.com at 4/28/2005 1:48:46 PM
Hi, I wonder if you could shed some light into this. I have the following table. Id, ContentId, VersionDate, ContentXml There are several ContentIds in the table. SELECT * FROM tblVersions WHERE (VersionDate = (SELECT MAX(tblVersions2.Vers...more >>

Creating a trace file with the date appended to it's name
Posted by Bill at 4/28/2005 1:29:05 PM
I'm trying to create a trace file with the file as part of it's name. For example, I'd like to create a file called FailedLogins-20050428. So far I haven't been able to figure out how to get the name of the file and the date together (I'm sill very new to SQL Server and tracing). What I've don...more >>

SQL Server & MSDE on same machine?
Posted by gcetti NO[at]SPAM nauticom.net at 4/28/2005 1:24:51 PM
Can an individual computer be configured contain both a SQL Server instance & an MSDE instance? Our software we charge separate costs depending if they are running on a MSDE or SQL Server edition, and if they already have SQL Server running (which they may have installed for some other applica...more >>

Linking Two SQL Servers
Posted by m.ramana NO[at]SPAM gmail.com at 4/28/2005 11:47:26 AM
Two SQL Servers 1) "Test" Payroll DB Transaction Table pr_SubmitTransaction in Payroll DB ******************************************** 2) "Production" Payroll DB Transaction Table Pr_SubmitTransaction in Payroll DB Accounts DB Pr_VerifyAccounts (@AcctNumber) *****************************...more >>

Can I ghost an SQL server?
Posted by otisim NO[at]SPAM YAHOO.COM at 4/28/2005 11:41:22 AM
I have a test environment that we rebuild servers on a regular basis. To streamline the process we use ghost. We will be installing SQL on the servers and want to build a ghost image with that build. We have tested it by doing the build, loading the data, and then stopping all the services and...more >>

Tables get Locked
Posted by Bardolator at 4/28/2005 11:33:52 AM
Hello I have a stand alone Java application that uses SQL Server 2000 on the same machine. Sometimes, when we run the applications and follow a certain steps, the SQL server locks some of the table. At that point of time, if we try to query Select * on those table, in Query Analyzer, it just ...more >>

Count of related records??
Posted by hartley_aaron NO[at]SPAM hotmail.com at 4/28/2005 10:02:07 AM
Hi, I was wondering if it was possible to build a query that will include a column that will provide a count related records from another table. Although there is a way to achieve this through programming in the front end, I would like to know if it possible to achieve the same thing through ...more >>

Net Send Failure
Posted by robboll at 4/28/2005 9:24:16 AM
On a Windows 2000 Server in MYDomain I can do the following successfully: Net Send JoeUser "test" However on a Windows Server 2003 (Standard Edition) in MyDomain I get: An error occurred while sending a message to JoeUser. The message alias could not be found on the network. More help ...more >>

Best way to create dynamic update statement
Posted by jw56578 NO[at]SPAM gmail.com at 4/28/2005 8:06:06 AM
In general, What is the best approach in creating a dynamic update stored procedure, that can handle recieving varying input paramters and update the approporiate columns. ...more >>

Job openings for scientifically-oriented programmers
Posted by bior_jobs NO[at]SPAM yahoo.com at 4/28/2005 7:21:40 AM
Positions: Scientific Programmers Location: Department of Radiation Oncology, Division of Bioinformatics and Outcomes Research, Washington University School of Medicine, St. Louis, Missouri Our newly created Division of Bioinformatics and Outcomes Research has immediate openings for scien...more >>

Edit .mdf database
Posted by mindphasr NO[at]SPAM gmail.com at 4/28/2005 6:43:00 AM
Greetings, Are there any tools freely available to modify or edit a .mdf database file? As far as seeing the actual tables? Regards, cd ...more >>

importing a .txt file
Posted by chudson007 NO[at]SPAM hotmail.com at 4/28/2005 3:35:13 AM
I have a .txt file that I need to add to an existing table, which is made up of Varchar, Char, numeric and int fields. What is the best way to do it. The first thing I tried was importing the .txt file, and then going into the design and changing the field type, but I hit problems on the Nume...more >>

MS SQL 2005 Express
Posted by Jassim Rahma at 4/28/2005 12:00:00 AM
Hi, I have just installed MS SQL 2005 Express for testing purpose but a unabe t gn.. what user id and passwrd should use? Many Thanks, Jassim Rahma *** Sent via Developersdex http://www.developersdex.com ***...more >>

Problem with dbo.sysindexkeys in SQL 2000
Posted by herman at 4/28/2005 12:00:00 AM
Hello, I am experiencing some performance issues with the dbo.sysindexkeys. I wonder if anyone can help me create an index on it? Thanx! SQL script: set nocount on set ansi_warnings off --############################################################################################ -...more >>

SQL Backup procedures...
Posted by gcetti NO[at]SPAM nauticom.net at 4/27/2005 1:58:51 PM
Can anyone recommend backup procedures for a SQL Server/MSDE product? We have upgraded our program from Access to SQL & before we could just tell our customers what .mdb files to include on their backup script. Now with SQL, the BACKUP/RESTORE SQL commands work as backups, but would involve a ...more >>

Noob: Why does this Query work?
Posted by shumaker NO[at]SPAM cs.fsu.edu at 4/27/2005 10:54:43 AM
I'm wondering how/why this query works. Trying to get my head wrapped around SQL. Basically the Query deletes from the Import table all records that are already in FooStrings so that when I do an insert from the FooStringsImport table into the FooStrings table, then I won't get primary key vio...more >>

concatenate where clause
Posted by Rodusa at 4/27/2005 10:23:31 AM
I am beggining to learn stored procedures and I am trying to concatenate the where clause below but I keep getting an error: declare @sqlwhere varchar(15) set @sqlwhere = 'parentid=2' select * from categories where @sqlwhere This is the error I am getting Server: Msg 170, Level 15, S...more >>

Moving db across the country- full copy, then differential?
Posted by Burt at 4/27/2005 10:16:11 AM
My company needs to move a 30 Gig SQL Server across the country as soon as possble on July 1. Turns out moving the full db across the network takes a few hours. I'd like to move a full copy of db a week ahead of time, and then just move either a differential backup(s) or transaction log with w...more >>

Inserting Records with limited privileges
Posted by stacey.michols NO[at]SPAM gmail.com at 4/27/2005 8:47:41 AM
I am trying to insert records via ASP, with a user that has only write access to the table (db_datawriter, db_denydatareader). That way, if the server is ever compromised, the access information stored in the source code's connection string will not allow anybody to actually read the database. ...more >>

Scripted delete rows
Posted by rcamarda at 4/27/2005 7:50:28 AM
Hi, I need to delete rows from my user tables dependant upon there non existence from another table: delete student where student_id not in (select student_id from tblStudent) The reasons is convoluted, simplest explanation is that our operational system allows the change of business keys....more >>

SCOPE_IDENTITY with ASP
Posted by Larry at 4/27/2005 7:03:24 AM
I am seeing a problem with an ASP application, where I have 2 tables. In the first table, the ASP inserts just 1 row and retrieves the primary key of the new row using SCOPE_IDENTITY. It then uses that primary key in the column of a second table (foreign key) to insert many rows. What I'm se...more >>

A query that chooses non-matching items
Posted by chudson007 NO[at]SPAM hotmail.com at 4/27/2005 5:41:54 AM
I've never been the most articulate person in the world, so i though the best way to illustrate the script I am looking for help with, is to provide you with two tables and the results I require. Table 1 ProductName1 ProductName2 Qty AA AA-1 2 BB BB-1 3 CC CC-1 4 Table2 ProductName Qt...more >>

Installing MSDE2000 for Remote Connection
Posted by Phil at 4/27/2005 12:00:00 AM
I attempted to install MSDE on a WinXP machine(server) today. I installed from the command prompt as follows:- >setup INSTANCENAME="NetSDK" SECURITYMODE=SQL BLANKSAPWD=1 Before I get 'blasted', I know that I 'really shouldn't' use a blank sa pswd but.......I did :-) I then detached (sp_...more >>

Counting based on a field combination
Posted by calan at 4/27/2005 12:00:00 AM
Having a brainfart.... I need a query that returns a record count, based on two distinct fields. For example: Order Revision Customer 001 1 Bob 001 2 Bob 002 1 John 003 ...more >>

SQL Server Hot Fix Install Error - dbmslpcn.dll is WRITE LOCKED
Posted by petek NO[at]SPAM csi-colorado.com at 4/26/2005 10:22:08 PM
Hi- I've been trying to install SS2K Hot Fix # 818095 for one of my clients and it keeps terminating - the Log for the install contains an error message that reads "...dbmslpcn.dll is WRITE LOCKED". I stopped all but a few of the services on the box, but still can't seem to get it installed. ...more >>

Enterprise Manager Collision
Posted by jw56578 NO[at]SPAM gmail.com at 4/26/2005 4:09:57 PM
Is there a setting for enterprise manager, to prevent two instances from having the same stored procedure or any other object open and overwritting one another? ...more >>

Views Are Deleted
Posted by rockio at 4/26/2005 2:11:34 PM
I am runnnig Microsoft SQL Server 2000 and have a database that gets downloaded everymorning from an ftp site. This download contains the new records and any changes to existing records. However I am running into a problem in that I am forced to recreate the views over everytime we replace the...more >>

Storing a month
Posted by Thomas R. Hummel at 4/26/2005 12:01:46 PM
Hello all, I have been working with several databases here that are basically data marts. A lot of the entities have an attribute that is a particular year and month. For example, a financial transaction may be posted for a particular month, regardless of the actual date on which it occurred. ...more >>

Storing a month
Posted by Thomas R. Hummel at 4/26/2005 11:09:26 AM
Hello all, I have been working with several databases here that are basically data marts. A lot of the entities have an attribute that is a particular year and month. For example, a financial transaction may be posted for a particular month, regardless of the actual date on which it occurred. ...more >>


DevelopmentNow Blog