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) > november 2006 > threads for november 1 - 7, 2006

Filter by week: 1 2 3 4 5

prevent one single row from being updated
Posted by Leanne at 11/7/2006 9:57:50 PM
I am doing customization for microsoft POS. I manually added a record to a table. The manage and maintenance of this table are done by POS, and user can update the contents of this table. Is there any way I can lock this single row at database level to prevent it from being deleted or changed b...more >>

regular expression issue
Posted by othellomy NO[at]SPAM yahoo.com at 11/7/2006 9:07:01 PM
I am trying to exclude all strings that has 'a' inside (I have simplified the actual problem) select 1 where 'bb b a dfg' like '%[^a]%' However, the above does not work. By the way, I can not use 'not like' such as: select 1 where 'bb b a dfg' not like '%a%' Although the above will work ...more >>

SQL with greatest date
Posted by BB at 11/7/2006 4:49:14 PM
Here is my SQL statement SELECT a.name, b.meterno, c.meterstatus, d.accountno, d.creation_date FROM fmdata.location a, cisdata.service_meters b, cisdata.meter_master c, cisdata.Account_Master d WHERE a.location_id = b.location_id AND b.meterno IS NOT NULL AND b.meterno = c.meterno AND a....more >>

Help with joining/selecting values to show
Posted by J at 11/7/2006 2:12:08 PM
I am editing a pre-existing view. This view is already bringing data from 40+ tables so I am to modify it without screwing with anything else that is already in there. I need to (left) join it with a new table that lists deposits and the dates they are due. What I need is to print, for each ...more >>

Select Unique Distinct records for Column
Posted by philip260 NO[at]SPAM gmail.com at 11/7/2006 1:19:51 PM
Im trying to run a query that will pull distinct data not for the entire select query but for a single column. Here is my sql statement below. Why is it not working? It is probably something stupid. Thanks for your help in advance SELECT Count(MastrQualityTbl.[WORK NUMBER]) AS [TOTAL WORK RECE...more >>

Changing column values on table insert trigger
Posted by post NO[at]SPAM maikrabe.de at 11/7/2006 6:59:11 AM
Hello, i have a table and if a record is inserted i will test a numeric value in this table. If the this value is greather as 1 million, than an status column should be changed from 'A' to 'B'. Yes and sorry, this is a newbie question. On Oracle this work simple: create trigger myTrigg...more >>

t-sql turn off a cpu
Posted by rcamarda at 11/7/2006 6:16:44 AM
Hello, In SQL Server 2005 Enterprise, I can change the CPU affinity via Management Studio. Is there a way that I can change these settings via t-sql? I wish to use all my cpu's at night when my data warehouse builds and then durning the day reduce the number of cpus for SQL so that the applica...more >>

MsAccess/ADP - record source doesn't exist
Posted by usenet_e at 11/7/2006 5:21:54 AM
Hello, few users have problems with our application (ADP/MsAcces2000+SqlServer2000). When they want to open a report which source is a stored procedure, they get message that "record source specified..... do not exist" - of course, it's not true. More details: - other users don't have this ...more >>



Return dataset in one column
Posted by louisyoung187 NO[at]SPAM hotmail.com at 11/7/2006 3:21:33 AM
Hi there I have the following two tables mainprofile (profile varchar(20), description) accprofile (profile varchar(20), acct_type int) Sample data could be mainprofile ---------------- prof1 | profile one prof2 | profile two prof3 | profile three accprofile -------------- pr...more >>

Basic Replication trouble.
Posted by senseihitokiri NO[at]SPAM gmail.com at 11/6/2006 7:19:16 PM
I'm trying to run a simple update script on this database which is created from a replication agent. Several individual databases are replicated into one consolidated. I've not worked with replication before and I was hoping someone could tell me what this error means. UPDATE CUSTOMER S...more >>

Copy databases from SQL 2005 server to SQL Express
Posted by Thanks at 11/6/2006 12:00:00 AM
Two Windows 2003 server, one with SQL 2005 server, another with SQL Express. Is it possible to copy databases from SQL 2005 to SQL Express? Thanks. ...more >>

SQL 2005 & MSDE 2000
Posted by rc NO[at]SPAM !die.!spammer.bhfshops.org.uk at 11/6/2006 12:00:00 AM
Hi We have just migrated to SQL 2005 database. We backup up our SQL database to disk, then backup files to tape using BckupExec 10.1. The only snag is that BackupExec uses MSDE2000 to manage jobs etc so it will want to install a MSDE2000 on the server that has SQL 2005 on it !! Back...more >>

Getting back set order from the IN param
Posted by Yobbo at 11/5/2006 12:00:00 AM
Hi All My query is as follows: SELECT STRINGTEXT, TOKENID FROM WEBSTRINGS WHERE TOKENID IN (6,20,234,19,32,4,800,177) All I want is my resultset to come back in the order that I have defined in the IN clause, but unfortunately SQL is trying to be too helpful and sorts the numbers in the...more >>

creating a database in SQL 2005 - using windows 2003
Posted by Bobby at 11/3/2006 2:32:20 PM
when i try to create a new database i get a error: The server could not load DCOM what is wrong and how can i fix it? i have updated mssql/win 2003 with the lates updates Rgds Bobby ...more >>

Databases in SQL Server
Posted by David at 11/3/2006 10:54:37 AM
Hi, We are about to move to SQL Server 2000, as we already have a licenced copy of it. However, as i understand it you licence by the number of users (where else can i find out what the options are with it). The big question is: We want it to run two seperate databases, we dont want the admin...more >>

using trusted connection from unix
Posted by Thyagu at 11/3/2006 3:46:59 AM
Hi, Is it possible to connect to SQL Server using trusted connection from unix? If yes, I'd like to know how. Regards, Thyagu. ...more >>

LEFT and string function
Posted by othellomy NO[at]SPAM yahoo.com at 11/3/2006 2:45:44 AM
select left('Hello World /Ok',charindex('/','Hello World /Ok')-1) Hello World That works fine. However I got an error message: select left('Hello World Ok',charindex('/','Hello World Ok')-1) Instead of: 'Hello World Ok' I get: Server: Msg 536, Level 16, State 3, Line 1 Invalid length pa...more >>

SQL query filtering date field by today's date?
Posted by Igor at 11/3/2006 2:27:40 AM
Can someone tell me sql query for filtering date field for current day, not last 24hours but from 00:00 to current time? ...more >>

Lock Problem and application is slowed down
Posted by laststubborn at 11/3/2006 12:03:47 AM
Dear Memebers, I have a critical problem. I have an application is running on 64 bit machine. It used to be running on 32 bit machine. That application is using a Stored Procedure that uses SELECT, INSERT, UPDATE statements. Whenever this applicataion is being run all the processes are locked ...more >>

Connecting to 'localhost' Problems?
Posted by Rick at 11/2/2006 8:33:20 PM
I'm taking a .NET class and I have SQL Server 2005 installed on my machine. When I go into Studio and then select Server Explorer and try to add a new Connection, it seems to bomb out when I type in 'localhost' for the server name. It doesn't come back with anything for the DBS. Is there some...more >>

Publisher is empty under Replication Monitor - Publisher.! But replication is still running fine..
Posted by Query Builder at 11/2/2006 11:52:39 AM
I have a wired situation..! I set up transactional replication on one of my development server (SQL 2000 Dev Edition with sp4). It is running fine without any issues and all of a sudden, i noticed in my repication monitor tab under Publisher where I usually see the publication is empty now....more >>

where DTS in SQL 2005; Oracle to SQL2k5??
Posted by Nasir at 11/2/2006 11:45:17 AM
I need tyo move tables from Oracle 9.2 or 10.2 version to SQL server 2005. Can any one give me some good hints, scripts etc. I try to look into the Business Intellegent Studio, but I only see Report, Analaysis or Integration services - NO DTS. Can someone tell me where to find it. It used ...more >>

MAX(DATE) - help
Posted by Freddie at 11/2/2006 11:22:06 AM
Hello everyone: i am trying to compare a MAX(DATE) from one table that would be greater than a date in another. first_table compname MYDATE abc comp 2006-09-26 09:19:43.250 123inc 2006-10-20 01:3:00.250 SELECT MAX(MYDATE) FROM first_table log_table logdate ...more >>

convert / group by date
Posted by kirke at 11/2/2006 10:53:08 AM
Hi, I have a datetime column named dtDateTime. its format is "Oct 27 2006 12:00:00 " I want to group by only date part of it and count my code is $sql1="SELECT convert(varchar,J1708Data.dtDateTime,120), count(convert(varchar,J1708Data.dtDateTime,120)) FROM Vehicle INNER JOIN J1708Dat...more >>

SQL 2005 -- export table to a "fixed width" flat file -- Posting again
Posted by gelangov NO[at]SPAM hotmail.com at 11/2/2006 10:33:44 AM
I am sorry, I am posting this message again, since I did not get any reply. I want to export a table into a "fixed width" file using SQL 2005 import export wizard. This is the version I have: SQL Server 2005 - 9.00.2047.00 For some reason it joins all the rows together. For EX: if t...more >>

Tricky group by date problem
Posted by edouard.spooner NO[at]SPAM gmail.com at 11/2/2006 2:11:23 AM
Hi, I have a tricky SQL query problem that I'm having probs with. I have a table which resembles something like this Date | Price1 | Price2 | Price3 01 Jan 2006 | 100 | 100 | 100 02 Jan 2006 | 100 | 100 | 100 03 Jan 2006 | 100 | 100 | 100 04 Jan 2006 | 115 | 100 | 100 05 Jan 2006 | 115...more >>

Stored Procedures and Functions
Posted by mcnewsxp at 11/1/2006 9:16:37 AM
what is the difference between a Stored Procedure and a Function? tia, mcnewsxp ...more >>

Runnable master awaiting command
Posted by NiponW at 11/1/2006 1:39:19 AM
Hi, Database Server running slow. I used SP_WHO2 ACTIVE and the result has many of XXXX SA RUNNABLE MASTER AWAITING COMMAND.......... (XXXX is spid) and they stay for couples seconds. Last week , the server was run...more >>

Create and then USE a dynamically-named database?
Posted by teddysnips NO[at]SPAM hotmail.com at 11/1/2006 1:25:46 AM
I have a need to create a database, and then populate it. However, the code below doesn't work as I hoped it might (it creates the table in the "master" database, which is Not A Good Thing). I know already (thanks Tony!) that if you use Dynamic SQL for the USE command, then the subsequent oper...more >>


DevelopmentNow Blog