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 > august 2004 > threads for saturday august 7

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 31

Update when condition is met
Posted by Aleks at 8/7/2004 11:43:50 PM
I need to run this update Update Cases set archived = 2 But only on records found with this query ... Select * from Cases Inner join processstep ON cases.PROCESSSTEP = processstep.ProcessstepID where processstep.Processtep LIKE '%closed%' How can I do this ? Aleks ...more >>

converting log file to db table
Posted by gordy at 8/7/2004 11:33:10 PM
Dear Experts, I have a log file that is stored in a nested tree format. The logical record is this: int datetime int eventid int deploymentid int recipientid int templateid If the data were stored in a typed file it would be 20bytes/record which would be a problem because we add about ...more >>

INSERT FROM other table
Posted by Just D. at 8/7/2004 10:19:26 PM
All, What's the easiest way to add a few new parameters to this sql string? I need to retrieve data from one table, add a few new values in the same script and save this data in a remote database table. For example: INSERT INTO tblRemoteTable Value1, Value2, Value3, Value4 (SELECT Value1, V...more >>

Multi-Table Outer Join Syntax Question
Posted by Jeff Swanberg at 8/7/2004 9:50:12 PM
I have three tables I need to relate to each other in a query. The PE table relates to the PRP table by ST_NUM and COURSECODE. The PRP table, in turn, relates to the PREP table by PRPCODE. There is no direct relation between the PE table and the PREP table. The data entry query I need to wr...more >>

Insert error: "Command Execute Insert Multiple step OLE DB operation generate error..."
Posted by Tumurbaatar S. at 8/7/2004 7:53:42 PM
I'm getting error "Command Execute Insert Multiple step OLE DB operation generate error..." when inserting a new record into the following table: CREATE TABLE Profession ( SeekerID INTEGER NOT NULL, SkillName NVARCHAR(30) NOT NULL, JobType SMALLINT, SubType SMALLINT, Prime BIT N...more >>

Table Size
Posted by amish m shah at 8/7/2004 7:45:02 PM
Hi all gurus If I want to count the size of a Table that how much space the table will contain after filling the table with some millions of data how can i count it from an empty table. Thanks and Regards Amish M Shah ...more >>

truncate the space for each column
Posted by Agnes at 8/7/2004 3:49:58 PM
I got a "description" field in my tables with char(40) Now, How I can I Trim(descprition) by using sql statment ??? thanks in advance ...more >>

Set Rowcount Effect on Sub-Query
Posted by hdsjunk at 8/7/2004 1:24:09 PM
When using "Set Rowcount" in a stored procedure that is executing a SQL select statment that contains a sub-query in its where clause, does the rowcount get applied to the sub-query as well? If so, how would effect my results? For example: SET ROWCOUNT 1000 SELECT Hdr_VdrNbr, Hdr_Inv...more >>



Automating 'results to file' in script
Posted by Sydney Lotterby at 8/7/2004 1:04:02 PM
(Sql2K) In QA, I would like to automatically send the results of a script to a filename. Now I have to select 'Results to File' before I run the script then specify the filename afterwards. Is there a way to do this? Or ... can you tell me a better way to do what I am trying (see below) d...more >>

GetDate() inside a trigger not returning miliseconds portion
Posted by Craig Kenisston at 8/7/2004 12:58:43 PM
Hi, I'm using Sql 2000 Enterprise. I've setup a couple of instead of triggers that put the value returned from GetDate() function in one of the table fields. I've inserted serveral records and non of them has saved the miliseconds portion of the time, all the have is up to seconds. Is ...more >>

Dynamic VS Static SQL Statement
Posted by hdsjunk at 8/7/2004 11:55:38 AM
Does anyone know if Microsoft has an article that compares dynamic and static sql queries, and when it is appropriate to use each? I have found several other articles from IBM and Oracle, but would prefer to see what people from Microsoft have to say. Thank you!...more >>

Reuse Connection for Temp Tables
Posted by blinton25 at 8/7/2004 11:02:09 AM
Hello, I have a number of Pass-Through queries to an SQL-Server backed. The ODBC connection string property of Access report is set to the following: ODBC;DSN=testDsn;UID=sa;PWD=;DATABASE=testDb 1. Is it correct to say that each time I open a query a new connection is created? 2....more >>

Help Retrieving XML with HTTP within stored procedure ..
Posted by Richard Weerts at 8/7/2004 9:58:56 AM
Within a stored procedure, I need to retrieve XML over HTTP from an external URL, then load some stuff into a recordset and return as such. Like this, sort-of: -- ******************************* create procudure queryremote (@param) declare @xmldoc varchar(2000) set @xmldoc = (GET ...more >>

Is there a way...?
Posted by REMOVETHISyabbadoo_2004 NO[at]SPAM hotmail.com at 8/7/2004 9:28:07 AM
Is there a way to use the execute method to retrieve data from a single field. I use... sqlStr = "INSERT INTO Table (data1, data2) Values(1, 2)" con.execute sqlStr to insert info into the db Is there a similar execute method to retrieve it without opening a recordset? any tips or po...more >>

Best Practice Code needed
Posted by Amil at 8/7/2004 7:41:01 AM
Hi all, I am a newbie to SQL programming and I was hoping that someone can provide me an optimized (leaner) version of this code: ALTER PROCEDURE dbo.quo_Whos_Update @UpdateWhoID INT = 0, @UpdateWho VARCHAR(10), @UpdateWhoValue VARCHAR(10), @UpdateWhoNameValue VARCHAR(10), @Result I...more >>

Checking if a set exists already -- non-normalized to normalized
Posted by versteijn NO[at]SPAM 538mail.nl at 8/7/2004 2:22:53 AM
Hello all, I have a table Boxes and a table Products with a 1:n relation. 1 Box can have N Products. And I have a third table that is a non-normalized version of these 2, with BoxName and ProductName fields. My Boxes and Products tables are empty, the third table is filled. I want to conver...more >>

Reading From Log Files
Posted by Arbi Baghdanian at 8/7/2004 1:49:48 AM
Hi I want to read my user logs . my users are sql server users , i want to know which one of my users insert-update-delete on which one of my table , or execute a stored procedure , how can i know which user do what? thanks...more >>


DevelopmentNow Blog