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 > january 2004 > threads for thursday january 1

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

Friendly Data input user interface
Posted by Twinkle at 1/1/2004 10:37:47 PM
is it possible to create a friendly data input user input interface for user to key in data using SQL ? or what is the usual way to collect new data into SQL server ? something like a Field Name with a box to enter the data ? ...more >>

Stored procedure that executes a complete SQL string (parm)
Posted by Dean Slindee at 1/1/2004 10:27:37 PM
I need to pass a completely built SQL statement to a stored procedure as a string parameter and have the stored procedure execute it. Sort of like this: CREATE Procedure dbo.GetQueryRowsWithSQL @SQL varchar (500) As EXEC @SQL return @@RowCount GO Close, but not quite. Anybody d...more >>

Stored procedures
Posted by John at 1/1/2004 10:27:23 PM
I am trying to use a stored procedure to retreave some data acording to date the date comes in like '9/11/2003' however when i use this stored procedure it returns nothing. if i use this select statment in query analiser it works fine. if I remove the @RequiredDate string and insert the date dir...more >>

DMO and remote SQL Servers
Posted by Carles Beltran Vazquez at 1/1/2004 8:32:34 PM
Hi, I just have a question for this group because i could not find any information about this: Can I use SQL-DMO to access a remote database? Do i need to do something special? Thanks in advance. Carlos Beltrán Vázquez ...more >>

Use of Predicate IN in Store Procedure
Posted by Robert Robichaud at 1/1/2004 8:26:01 PM
Enough of banging my head against the wall! Maybe someone else has already been here and done it. The following code returns 535 records: SELECT * FROM [OrderDetails Temp] WHERE ((([OrderDetails Temp].OrderID)= 2104) AND ([OrderDetails Temp].CategoryID IN (1,2,3,4)) ) ORDER ...more >>

Finding duplicate fields
Posted by Marcelo Balgurevich at 1/1/2004 7:34:16 PM
I'd like to know what's the sentence to display just duplicated fields. Example: I need to know where are duplicated mails in my database. Thanks. -- Marcelo Balgurevich balgurevich@2vias.com.ar Buenos Aires - Argentina ...more >>

update record with variable number of fields changing...
Posted by Kurt Hill at 1/1/2004 5:27:41 PM
Hi! I would like to write a stored procedure that can take a variable number of parameters (I know how to do this part) and update or insert a record from the supplied data... The part I don't understand is how to write the update/insert statement to deal with the optional variables... I cann...more >>

Ignoring lines and values in report
Posted by Jonathan Blitz at 1/1/2004 4:11:07 PM
I have a report that produces a commission for our customers. Each row has details of a sale plus commission paid. In addition, each sale may have any number of notes. Each not on a new line. The notes are stored in separate table that is indexed by the sale id. In order to show the data I...more >>



Working with multiple rows update in Access?
Posted by Mario Breskovac at 1/1/2004 4:11:05 PM
How to do the multiple rows update within Access update quer where I need to update column CurrentCount in the table Cards wit values CurrentCount from the query countCards where cardId exist in both table and query So, I get the "Operation must use an updatable query." error when I tr some ide...more >>

SQL Commands
Posted by kuya789 NO[at]SPAM yahoo.com at 1/1/2004 3:31:45 PM
Is there a website that has a list or table of all the sql commands and a description of them? I tried looking up on MSDN and Google, but I always end up with some irrelevent websites. Thanks in advance, Aaron...more >>

SERIAL, P_SERIAL, LINKSERIAL ?
Posted by Bill at 1/1/2004 3:21:08 PM
I am a new to sql and I'm interfacing with a large db that has SERIAL, P_SERIAL, LINKSERIAL fields at the beginning of every record. Is there someplace or a paper I can read on the function of these fields? Thanks, Bill...more >>

WHERE
Posted by kuya789 NO[at]SPAM yahoo.com at 1/1/2004 3:15:24 PM
Need help with this query SELECT * FROM table1 WHERE FIELD2 is contained in FIELD1 ie. FIELD1 = "dfdf dsfdsf dfadfdf" FIELD2 = "dsfdsf" OK FIELD1 = "dfdf dsfdsf dfadfdf" FIELD2 = "erwerew" NOT OK both field1 and field2 are varchar type. thanks...more >>

How do I change the owner of a DTS package
Posted by G at 1/1/2004 2:35:55 PM
Hello How do I change the owner of a dts package? I've tried sp_changeobjectowner in msdb but it can't find the object. Also, does the DTS pacakge execute under the credentials of the sqlagent account? or if you use DTSRUNUI and put in you logon credentials, does it use those rather? Than...more >>

**exceeds the maximum number of bytes per row
Posted by R-M at 1/1/2004 1:22:04 PM
Hi I've a table with 4000 records and following structure, and sometime I've got an error like below why? CREATE TABLE [ENPARTT] ( [ENPART_COD] [char] (6) COLLATE SQL_Latin1_General_CP1256_CI_AS NOT NULL , [ENPART_NAME] [char] (30) COLLATE SQL_Latin1_General_CP1256_CI_AS NULL , [ENPART_...more >>

Newbie question inserting / updating records
Posted by JB at 1/1/2004 8:11:23 AM
I'm trying to either insert a record from TABLE A if it doesn't exist in TABLE B or update a record from TABLE A if it exists in TABLE B. Thanks, JB...more >>

Adding times
Posted by SJC at 1/1/2004 5:36:11 AM
I can't be the only person who's ever tried to do this but I can't find an answer anywhere... How can I set up a column to hold duration in MM:SS format and then be able to add them together eg record the individual track lengths on a CD and then add them up to get a total playing time. Many t...more >>

Query help on 2 tables, how to do it?
Posted by Lee at 1/1/2004 5:31:46 AM
Hi there, I have a table with training details, each record is a training that a member of staff as done, e.g. Training table tid: 01 Staff: Peter Training: MSOffice Done: Y tid: 02 Staff: John Training: Quark Done: Y tid: 03 Staff: Peter Training: Quark D...more >>

drive help
Posted by TIMA at 1/1/2004 12:43:38 AM
Hi have the sql program on the C drive I have all the data files including "master" on E. Sigh - must do maintenance If I copy everything from the E drive to a new drive, delete the E drive, then assign the letter E to this new drive, will SQL work? ...more >>

Best way to synchronise data between SQL Server and a third party database (mobile phone task list)
Posted by Angus Comber at 1/1/2004 12:40:16 AM
Hello I want to synchronise between two databases. Specifically between a list of tasks on a mobile phone and a table of Tasks in an SQL database. The fields are slightly different in the two database types and the common fields are task (text) and Priority (low, medium or high). I was th...more >>

dynamic sql does not recognize variable
Posted by microsoft at 1/1/2004 12:07:15 AM
Hey guys, The following code give me this error, "Must declare the variable '@numon'." I don't understand why, since I declare @numon at the beginning of the code. What am I doing wrong? Thanks, Paul Blaser declare @col varchar(10) declare @sql varchar(500) declare @numon dec(5,2) dec...more >>


DevelopmentNow Blog