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 > september 2004 > threads for sunday september 26

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

Datediff help
Posted by Suman Dahal at 9/26/2004 11:31:52 PM
hi I am trying to convers an acccess sql given below to a view in sql server 2000 SELECT DISTINCT tblA.ID, Date()-(SELECT max(Date) FROM tblB WHERE tblA.ID = tblB.ID ) AS Expr1 FROM tblA INNER JOIN tblB ON ID; I TRIED SELECT DISTINCT tblA.ID, DATEDIFF(day, SELECT max(Date) FROM B , ...more >>


Encrypt Stored Procedure
Posted by Gabriel at 9/26/2004 7:59:53 PM
I have a database with lots of Stored Procedures and I want to encrypt all them . I need to know if it's an automatically metod to encrypt all of them. Thanks Gabriel . ...more >>

Filegroups and indexes
Posted by Leila at 9/26/2004 7:59:24 PM
Hi, I have two physical disks that each have and NDF file(two different filegroups: FG1 on Disk1, FG2 on disk2). Also I have two tables that my queries always join them. Which decision will lead to better performance: 1) Placing Table1 and Table2 on first disk(FG1) and placing their indexes on ...more >>

Newbie question...setting GUIDs
Posted by darrel at 9/26/2004 7:14:17 PM
Apologies if this is the wrong newsgroup to ask this in. I couldn't find a 'newbie/general' forum for MS SQL. I'm fairly new to using MS SQL and ASP.net. I've done one site working with some other developers. I'm now on to my second site where I'm doing it alone. To start with, I'd like ...more >>

Row size and DBCC SHOWCONTIG
Posted by Amy at 9/26/2004 6:29:28 PM
Hi All, I am having a hard time understanding when does SQL Server update metadata in sysindexes. I investigated a given schema and found out that data types were abused and I want to change it. After I execute "ALTER TABLE ALTER COLUMN" to change the datatypes, DBCC SHOWCONTIG (and other ...more >>

Query taking long to respond
Posted by Ishan Bhalla at 9/26/2004 6:25:25 PM
The query below is taking 3 to 4 seconds to execute. If I don’t use the variable ‘@iConnoteCodeFound ‘ then the same query returns the result immediately. There is a non-clustered index on sConnoteCode in the Connote table, but the query plan shows a search on the whole argument i...more >>

XPSMTP
Posted by Vince at 9/26/2004 5:49:24 PM
Hi all, I need to send SMTP mails from the SQL server everyday. I understand that I have to download the XPSMTP DLL and run a stored procedure everyday using the SQL Server Agent. This works fine; however, I have one problem. I need to send the result of a query as the message content in th...more >>

Mistake Conflict of operation of cursor -2147217885
Posted by Frank Dulk at 9/26/2004 4:14:54 PM
Gentlemen are trying an application that worked with access for MSDE to migrate and everything went well until that went to try to increase a registration in a table. using the following code: Dim MiRS As ADODB.Recordset Set MiRS = New ADODB.Recordset MiRS.CursorType = adOpenKeyset MiRS.Lock...more >>



How to synch up values from multiple tables into a single row
Posted by kfrost at 9/26/2004 2:43:02 PM
I have a database that users enter in their the job name's and locations of projects they are working on. THey enter in revenue and expenses on the job until finished. Thus I created 2 tables. jobs jobID int jobEmpID int jobName 200 jobLocation char 200 startDate smalldate finishDat...more >>

Large-scale databases - common practice
Posted by Noam at 9/26/2004 2:09:01 PM
Hi, We are designing a large-scale database application. The current one will receive information from many inputs constantly. We expect it to grow in one year to 60GB (on average of 4-5GB/Mo). The database then (after one year) will have a cleaning procedure that will delete informatio...more >>

Cannot modify data
Posted by Leila at 9/26/2004 12:57:13 PM
Hi, Sometimes when I try to modify data in enterprise manager, I get this error: Key column information is insufficient or incorrect. Too many rows were affected by How can I solve this problem? Many thanks in advance. Leila ...more >>

Foreign key indexes - to delete?
Posted by sreckos at 9/26/2004 12:05:01 PM
My Powerdesigner helps me design a SQL Server 7 database (approx. 100 tables) and automaticaly creates primary key index as well as indexes for all foreign keys in each table. So I got a lot of indexes table and I am asking myself whether this is correct from performance point of view? Would...more >>

select multiple addrress info from a Code/Description table
Posted by Doug at 9/26/2004 11:37:02 AM
Hi, I have a Code Table which is: ID Address1 Address2 City State I need to create a view to pull three records from this based on three unique ID's that I have. Pseudo: Get Address info where ID=1 AND also Get Address info where ID=2 AND also Get Address info where ID=3 And do...more >>

IIf statement
Posted by fpvt2 NO[at]SPAM yahoo.com at 9/26/2004 11:34:42 AM
In Access, we can do "IIf" statement. Can we do "IIf" in SQL Server 7 ? Thanks....more >>

Text Classification Clustering
Posted by http://www.visual-basic-data-mining.net/forum at 9/26/2004 11:29:13 AM
Hi, I have implemented TF/IDF functionality with tokenizing, stop words, ranking features within SQL stored procedures. I have anoutput that looks like the following examples: token idf cross 1.79175946922806 duplicates 1.79175946922806 extract 1.79175946922806 messages 1.7917594...more >>

Returning a variable from a Stored Procedure?
Posted by Frunobulax at 9/26/2004 11:09:03 AM
I bought a component to do calculations based on Zip code distances, and I'm trying to create a stored procedure out of their sample code to return the distance value. Here's what I have: CREATE PROCEDURE zipcode_distance @ZipStart nchar(5), @ZipEnd nchar(5) as DECLARE @Lat1 REAL DE...more >>

Relationship to table in another DB possible?
Posted by David Slinn at 9/26/2004 10:41:49 AM
Is it possible to create a relationship to a table in another database, either on the same server or a linked server? - Dave ...more >>

linking servers
Posted by Scott at 9/26/2004 10:13:57 AM
I have 2 sql servers on my development LAN, both with same sa account passwords. I'm trying to "register" or "link" the 2 so i can run SPROCs from either against the other. I've gone exactly by BOL's example using sp_addlinkedserver, but I get errors. On server 1, when I run FIGURE 1, the 1...more >>

Encrypt Stored procedure
Posted by Bill at 9/26/2004 9:31:27 AM
Hi, Can I encrypt a stored procedure in SQL2000 and if so how. Cheers...more >>

sproc & ASP problem
Posted by gdp at 9/26/2004 8:35:25 AM
hi...this is no doubt easy but I cant do it below is a sproc i am calling from an ASP page ------------------------------ CREATE PROCEDURE dbo.populate_MAIN_visitors @IP nvarchar(20), @passScreen int AS declare @ident int declare @guid nvarchar(45) SET NOCOUNT ON insert ...more >>

dtproperties shows up as a regular table but is a System Object?
Posted by johndoe NO[at]SPAM driver.net at 9/26/2004 4:43:20 AM
sp_tables @table_owner = [dbo], @table_type = ['TABLE'] returns the below data WebPortal dbo BusinessDirectory TABLE WebPortal dbo dtproperties TABLE WebPortal dbo EntryTypes TABLE WebPortal dbo LeftMenu TABLE WebPortal dbo Movies TABLE WebPortal dbo Sample_ChangeLog TABLE WebPor...more >>

Help with CONSTRAINT CHECK
Posted by Suman Dahal at 9/26/2004 12:57:17 AM
Hi, I am trying to create a table that has a primary key field SystemID The SystemID should start with an alphabet S and then should be a five digit number greater than 20000. It should only be 6 characters long as well. so valid systemIDs are S20001 S20005 S99999 I tried doing this ...more >>


DevelopmentNow Blog