Archived Months
January 2003
March 2003
April 2003
May 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
November 2007
April 2008


all groups > sql server programming > april 2005 > threads for sunday april 17

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

how to change the default table locking type ?
Posted by Sniper at 4/17/2005 11:43:01 PM
Hi guys, Is there anyway to change the default recode locking type (Table Locking) to row locking !! ? Thanks in help -Sniper ...more >>

does microsoft offer new updatable version of MSDTC?
Posted by cjpark at 4/17/2005 9:36:21 PM
hi all microsoft offers new updatable version of MSDTC not by the windows service pack or sql server service pack -- cjpar ----------------------------------------------------------------------- cjpark's Profile: http://www.msusenet.com/member.php?userid=54 View this thread: http://www....more >>

Sql 2000 Update command
Posted by kingpinjl2 at 4/17/2005 9:35:02 PM
I currently have a comment column with hundreds of rows. For example, the comment column states message 3 has a issue with programming datasets. I would like to change the word programming only to developing to. What is simplest way of doing this using the update command? currently messag...more >>

LINKING TWO TABLES WITHOUT UNIQUE CONSTRAINT
Posted by Dan Slaby at 4/17/2005 9:05:54 PM
I have a Contracts table that has a contractNumber and ContractCode which is the first 4 digits of the ContractNumber. I have a serviceRates table that lists the billable components based on the ContractCode which identifies the contract year. There are multiple contracts using the ContractCod...more >>

DISK SPACE QUERY
Posted by Gervaise at 4/17/2005 8:45:01 PM
Hello, is there a way to make a sql statement that checks disk space and returns a value if it is below x%?...more >>

Time Datatype
Posted by wrytat at 4/17/2005 8:21:01 PM
Hi! I have 2 field in my table that needs to store time only (it's a field that stores the timing a user can logon to the system). Is there any datatype that stores time only, as to what I understand, Datetime and Smalldatetime stores both date and time. I don't want date, I just want time. If...more >>

Question regarding Identitiy field
Posted by Manny Chohan at 4/17/2005 5:04:02 PM
Guys, I have a identity flag set on a column. When i am testing the system, inserting records the identity goes all the way to 60 and so on. I need to put the table in production system now. However i need to reset the identity field to start from 1. How can i clear the identity field and m...more >>

delete triggers
Posted by ChrisR at 4/17/2005 4:18:26 PM
sql2k sp3 I assumed this would work as easily as the Insert and Update Triggers I wrote did: create trigger DelAuthors on authors for delete as begin set nocount on delete tmp_authors where tmp_authors.au_id = deleted.au_id end Server: Msg 107, Level 16, State 2, Procedure DelAu...more >>



Question about Where clause
Posted by Kenny M. at 4/17/2005 2:52:01 PM
Hi I Have a Ticket field in my DB and store tickets numbers : There are two formats to store the ticket: 00001 00002 00003 S0001 00004 S0002 I want to retrieve the last number without "S" format (e.g 00004) What is the best way to write the Where? Select Max(Ticket) From Sales...more >>

ODBC Call To sp_prepexec Failing
Posted by GeoffB at 4/17/2005 1:34:02 PM
Hi all, I'm working on creating a ms-sql database that will work with an existing third-party application. As such, I have full control over the DB schema, but no control over the third-party source. The application is using ODBC to talk to my DB. I have everything working fine, up to wh...more >>

Using IF in a WHERE Clause
Posted by Carol Cox at 4/17/2005 12:16:30 PM
How can I use an IF statement in a WHERE clause in T-SQL? I only want to include that part of the WHERE clause if a variable that has been passed to the sproc has a certain value. Example: SELECT * FROM Reservations WHERE (DTBooked = getdate()) if @vBookedBy_UserId <> -99 and @vBookedBy_...more >>

off topic posts
Posted by CBretana at 4/17/2005 12:08:09 PM
to the MSDN forum monitors, Is there a way to permanently block ALL posts from indviduals (such as the person whose signature is 'unknown') who have demostrated a predilection for, or have a history of, proselytizing, or posting religious, political, commercial (or any other completely i...more >>

Help - Best way to store related data (across or down)??
Posted by bajan_rick at 4/17/2005 7:45:30 AM
Good day. I have a form with approx 90 related components. All 90 components are associated with an App_ID. An App_ID can occur more than once but with different data from the 90 fields. I simply cannot decide whether to store the data from each component in it's own column or as a separ...more >>

Source control for SQL Server 2000?
Posted by Johannes Hansen at 4/17/2005 1:26:02 AM
Hi, I am currently working on a project where we have approx. 10 developers working on the same database creating & editing functions, triggers, stored procedures and such... However, at the moment this causes a lot of problems because two developers can work on the same procedure at the sa...more >>

DateTime Performance
Posted by steve at 4/17/2005 12:00:00 AM
Hi all, I have a table below, with approx 2 million rows. I have a clustered index on CLI, and a foreign key constraint on FileID and CarrierID. None of the columns allow nulls. ID int FileID int CarrierID tinyint CLI varchar(11) Extension varchar(4) Start datetime Duration int Cost...more >>

TRIGGER question
Posted by Lisa Pearlson at 4/17/2005 12:00:00 AM
Hi, I have tables like these CREATE TABLE Companies ( Id INT PRIMARY KEY, ParentId INT NULL REFERENCES Companies(Id), Name VARCHAR(100) NOT NULL, Deleted BIT DEFAULT 0 ) GO CREATE TABLE People ( Id INT PRIMARY KEY, CompanyId INT NULL REFERENCES Companies(Id...more >>

simple relation problem
Posted by Lisa Pearlson at 4/17/2005 12:00:00 AM
Not gonna talk about my love life, but rather this simple sql problem, but not sure how to solve it. Imagine CREATE TABLE Relations ( INT PersonId1, INT PersonId2 ) Now I define these relations: INSERT INTO Relations VALUES(1,2) INSERT INTO Relations VALUES(2,1)* INSERT INTO Rel...more >>

Assigning the for xml query output to a variable
Posted by Arun at 4/17/2005 12:00:00 AM
Hi, I would like to generate an XML query using the 'for xml' clause and assign that to a text variable for further manipulation. for e.g., I would like to do some thing like this. declare @test text Set @test = Select * from test_table for xml auto But this gives my the syntax error. Ca...more >>

Hard time master log files
Posted by Christian Perthen at 4/17/2005 12:00:00 AM
Hi, I have a small DB, about 200MB, but my transaction log files grows regulary over 900MB. The only way I have been able to manage the log file is to detach the database, delete the log file and reattach the DB. Is there any better way to manage growing log files? Thanks in advance Chris...more >>

Charindex
Posted by Trond at 4/17/2005 12:00:00 AM
I have atable where i store visitor data (from a website). In table i have a column LanguageData Typical entries are: no en-us no,en-us en; en-us; no ..... So i am trying to do a select where i remove every thing after the ,. Like this: LEFT(LanguageData, CHARINDEX(',', ...more >>


DevelopmentNow Blog