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 > december 2006 > threads for monday december 18

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

Event Notification not generating.!!
Posted by bill k. at 12/18/2006 10:23:00 PM
Hi, I ran below to setup Event Notification but it did not seem to work (SELECT * FROM EventLog returns 0 row). Can you help? -- enable Service Broker USE AdventureWorks ALTER DATABASE AdventureWorks SET ENABLE_BROKER; -- drop and create the eventLog table IF exists (select * from dbo.sy...more >>

Access 2003 "Format" in SQL - how to? (Newbie)
Posted by Rick at 12/18/2006 9:05:18 PM
I need your advice since I have searched the web and looked at the = Newsgroups but don't really know the terminology that I am looking for. I have migrated my data to SQL Express 2005 and am now (trying) to = convert the FE Access 2003 Jet SQL to use the SQL server. Through trial = and error ...more >>

Problem using a list of intgers as parameter in a SP
Posted by Filips Benoit at 12/18/2006 8:54:33 PM
Dear All, If I insert only 1 ID in parameter @ComIdList the SP run OK. But it is mostly a list of values like 1, 2, 5, 7, 8 If the list is more than 1 figure it return an error: Syntax error converting the varchar 1, 2, 5, 7, 8 ' to a column of datatype int. HOW TO SOLVE THIS PROBLEM !...more >>

union
Posted by vanitha at 12/18/2006 8:34:01 PM
hi, i have query like select empid,name,deptid from emp join dept on emp.empid = dept.empid union select empid,name,deptid from emp join dept on emp.empid = dept.secempid just one of my join clause varies, as union takes more time, is there any other way to achieve this. thank yo...more >>

update statements and locking hints
Posted by Derek at 12/18/2006 8:22:29 PM
i am reading the books on line to understand why a former co worker used a lock hint an update statement. if i specify a locking hint on an update query, (e.g. update sometable with (rowlock) set......) the lock manager will not necessarily grant the request if it feels that a higher lock...more >>

guid as an index column
Posted by Derek at 12/18/2006 8:13:16 PM
i have been reading the topics on guid being bad for primary keys because of performance and i had a question. i have a database server that has multiple databases with the same tables. i have a program that reads audit data from a table in each of these databases and inserts them into a ce...more >>

database design question
Posted by Derek at 12/18/2006 8:04:31 PM
i have this table that i'm designing create table person (id int identity(1,1) primary key, name varchar(50) not null, skill_id int not null) create table skill (skill_id int identity(1,1) primary key, skill_name varchar(30)) i'd like to make skill_id of the person table a foreign ...more >>

Multiple Inserts - One SP Call
Posted by Smithers at 12/18/2006 4:46:39 PM
I want to store a "document MRU list" in a database (table "DocMRU"). The list in question really has nothing to do with the data model otherwise implemented in the database. Each list entry would be 3 integers - so 3 int columns in the: UserID, DocID, MRU_Sequence. While I could have th...more >>



Open transactions
Posted by QDL at 12/18/2006 4:32:15 PM
Hello everyone, we have a database we use for an aspnet application that, sometimes, gives us problems. Checking my applications' logs I found many Timeout Expired problems, looks like a transaction is blocking some tables... I checked all my source code and it seems there is no way to let ...more >>

RTF to Text conversion
Posted by Mark Andrews at 12/18/2006 3:45:01 PM
I have a TEXT column in a table in SQL2000 that stores information in RTF. I would like to be able to strip out all the RTF codes etc and extract just the text used for use in reporting. Anyone have a solution that might meet my needs? Thanks in advance, Mark ...more >>

Creating DTS' outside of SQL?
Posted by Rob Meade at 12/18/2006 2:31:55 PM
Hi all, I have a bit of a connundrum (let alone not being able to spell that big word!)... I have an old legacy database system which can only be access via an equally old cache driver...I can fire off extremely simple SQL statements to it, which an MSQL job on the system must convert in...more >>

complicated update.
Posted by Beau D'Amore at 12/18/2006 1:51:18 PM
Hi all, Need SP to: a. update values in one table based on values in another. in order to do that, I need to get the last entries in a history table called "GA_Acct_Reset_History" I've got this code straightened out: (thanks to you Forumites... much appreciate it) (it gets the last Thre...more >>

large database - deleting takes too long
Posted by helenxx NO[at]SPAM gmail.com at 12/18/2006 12:32:16 PM
Hello there, I want to partition a very large SQL Server 2000 database into 2 parts and separate them in to different geographical locations (let's say 'A' and 'B'). My plan is: - step1: back up the original database in location A and delete some records from the largest table (DELETE FROM ...more >>

Select distinct problems
Posted by Beau D'Amore at 12/18/2006 11:49:58 AM
Here's my issue ======== history table to select from has the following columns: Acct_id, Threshold, DateCreated In this table, there are multiple rows that contain the same Acct_id & threshold but all DateCreated dates are different. (its a history table as well as the reference for the ...more >>

Formatting Default Date
Posted by Rich at 12/18/2006 11:41:26 AM
In a smalldatetime field I need the default value to equal current date with a format of mm/dd/yyyy. In the Default Value of the design view (getdate()) returns 12/18/2006 10:47:00 AM and (datepart(day,getdate())) returns 1/16/1900 I don't want the time, and I'm not sure where 1/16/1...more >>

Formatting Default Date
Posted by Rich at 12/18/2006 11:18:28 AM
In a smalldatetime field I need the default value to equal current date with a format of mm/dd/yyyy. In the Default Value of the design view (getdate()) returns 12/18/2006 10:47:00 AM and (datepart(day,getdate())) returns 1/16/1900 I don't want the time, and I'm not sure where 1/16/1...more >>

SQL help: fxn in sp
Posted by David Shorthouse at 12/18/2006 11:13:22 AM
Hello folks, I am messing around with MsSqlSpatial extension for SQL Server 2005 and am attempting to create a simple reverse geocoding query. The problem is rather simple & boils down to passing parameters into a table function when those parameters are obtained from the SELECT statement. ...more >>

Question on a join
Posted by Ryan S at 12/18/2006 10:07:54 AM
Well i am rather new to sql about a month into it and not sure if what i am trying to do is impossible or not. On my join i am trying to get the result of a specific products most recent date and time as well as who made the move. I have everything fine it will give me a result of about "30 ro...more >>

Split data file into multiple file groups..!
Posted by Query Builder at 12/18/2006 8:47:03 AM
I have one of our production Accounting Databases starting from 2 GB now grown into a 20 GB Database over the period of a few years... I have been getting timeouts when transactions are trying to update different tables in the database.. Most of the error I get are I/O requests to the data f...more >>

SQL Delete statement
Posted by Matt at 12/18/2006 5:59:06 AM
Can someone help me with the delete statement below? I am running SQL 2000 and I can't find a good way to run this delete. I am not a very good optimizer in SQL statements. I am not sure why but I cannot use the alias in the original delete statement hence the ridiculous code. I tried somethi...more >>

BCP
Posted by PBF at 12/18/2006 5:20:28 AM
I want to insert a text file into a tabel, and I am using the BCP utility. The file I am inserting looks like this: aaaa;1234;bbbb;123456;Dog Cat Bird;097763 I'm using a xml formatfile. Is there a way to truncate the field "Dog Cat Bird" so the string inserted into the database is only...more >>

Using a function within a SQL Statement
Posted by robin9876 NO[at]SPAM hotmail.com at 12/18/2006 3:29:09 AM
I have created a function which returns a table with two fields which works correctly when using select * from myFunction(1234) I have an exisitng SQL Statement that I would like to use this function in and use an int field from the existing SQL statement. When adding to the Select part of the...more >>

query
Posted by vanitha at 12/18/2006 12:27:00 AM
hi, i want to retrieve records with distinct emp_last for the ord_num example ord_num,emp_first,emp_last,desc duplicate records of ord_num is allowed only if there is different emp_last. please help me to solve this. thank you vanitha...more >>

List of all table's references.
Posted by lupina at 12/18/2006 12:00:00 AM
How to get list of all relations (references) of certein database's table? eg.: SELECT * FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE AS COLS INNER JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS CONS ON COLS.CONSTRAINT_NAME = CONS.CONSTRAINT_NAME WHERE COLS.CONSTRAINT_CATALOG = DB_NAME() ORDER BY C...more >>


DevelopmentNow Blog