Groups | Blog | Home


Archived Months
January 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
all groups > sql server (alternate) > march 2006 > threads for march 29 - 31, 2006

Filter by week: 1 2 3 4 5

alter table column, which is part of foreign key
Posted by RamaKrishna Narla at 3/31/2006 10:00:17 PM
In MS SQL Server, I have the following tables with some data in it. create table table1 ( column1 varchar(32), column2 int not null, column10 varchar(255), ..... primary key (column1, column2), ); create table table2 ( column1 varchar(32), column2 int not null, column...more >>


Math functions
Posted by kai at 3/31/2006 2:22:18 PM
Hi, How to find the list of SQL math functions in SQL Server 2005? Thanks Kai ...more >>

ERROR_STATE() Always = 0?
Posted by wackyphill NO[at]SPAM yahoo.com at 3/30/2006 6:20:43 PM
Below is the contents of a SPROC I have. I want to return the error info in the catch block for it so I call RaiseError. But the ERROR_STATE() always comes up as 0 which is ilegal since it must be between 1-127 I guess. So I wrote a stupid if block to set it to 1 to stop that error. But I'd r...more >>

Need a So-Called SSN Encryption
Posted by ILCSP NO[at]SPAM NETZERO.NET at 3/30/2006 9:28:53 AM
Hello, perhaps you guys have heard this before in the past, but here is what I'm looking for. I have a SQL 2000 table with Social security numbers. We need to create a Member ID using the Member's real SSN but since we are not allowed to use the exact SSN, we need to add 1 to each number in t...more >>

Update SQL 2000 Query (converting an Old Access 2k query to SQL)
Posted by ILCSP NO[at]SPAM NETZERO.NET at 3/30/2006 9:01:09 AM
Hello, I have the following query in Access 2000 that I need to convert to SQL 2000: UPDATE tblShoes, tblBoxes SET tblShoes.Laces1 = Null WHERE (((tblShoes.ShoesID)=Int([tblBoxes].[ShoesID])) AND ((tblBoxes.Code8)="A" Or (tblBoxes.Code8)="B")) WITH OWNERACCESS OPTION; The ShoesID in the...more >>

Timeout Expired
Posted by cheesey_toastie at 3/30/2006 8:39:07 AM
Hi, I'm connecting to a SQL server (7.0) from Excel and VBA. I've checked the VBA and don't think I've got this wrong but I keep getting a Timeout Expired error message. Is there a setting in SQL that I am not aware of that I need to set? Could it be the connection string I use? The...more >>

Bind Variable in CURSOR
Posted by traceable1 at 3/30/2006 7:13:25 AM
SQL Server 2000 SP4 with AWE hotfix. Windows 2003 SP1. I have a stored procedure which is not working the way I think it should be. I have a CURSOR which has a variable in the WHERE clause: DECLARE get_tabs CURSOR local fast_forward FOR SELECT distinct tablename, id, shcontig1dt, sh...more >>

Automatic statistics update
Posted by Chris Weston at 3/30/2006 6:07:04 AM
Hi. I have automatic statistic update turned on for all my databases. Is this an overhead I can do without? Could I update them overnight when the database is hardly in use? Thanks -- Chris Weston ...more >>



Full text indexing with Japanese characters problem
Posted by ibiza at 3/29/2006 7:56:36 PM
Hi all, I am quite experimented with SQL Server, but not that much with full text indexing. After some successful attempts with english fields, I've decided to try it with Japanese characters. I don't know why, but it seems to have a strange behaviour. As in this screenshot (http://img65.i...more >>

I'm sure this is an easy one...Error trap to skip over a "bad" object.
Posted by rod.weir NO[at]SPAM gmail.com at 3/29/2006 7:07:34 PM
Hello, I have the following code to iterate through each view in a SQL Server and call the "sp_refreshview" command against it. It works great until it finds a view that is damaged, or otherwise cannot be refreshed. Then the whole routine stops working. Can someone please help me re-write t...more >>

Sqlserver Login and user
Posted by waqarkust NO[at]SPAM gmail.com at 3/29/2006 6:09:57 PM
What is the diffrence between Sql Server Login and Sql server Database User? I want to put a funtionality in my application from where administartor make Application User. these application user will be made also in sqlserver.. Now I am confuse here In sqlserver Login and User Well I will make...more >>

Can this be optimized? Newbie question
Posted by wgblackmon NO[at]SPAM yahoo.com at 3/29/2006 2:59:16 PM
Hi, I'm running the following SQL to get values for 4 fields. It is unacceptably slow. I have no control over the structure of the database, field names, indexes etc. - what I'm given as far as DB design is all I'm going to get. If anyone could make any suggestions I'd really appreciate it! ...more >>

Transpose Rows to Columns ?
Posted by bogtom NO[at]SPAM gmail.com at 3/29/2006 2:32:41 PM
I have records ID Sku Name Date 2 41 Blair 01/04/03 3 45 John 03/04/03 that should look like... ID 2 3 Sku 41 45 Name Blair John ..... and so on. Number of source rows will be fixed (12) so no of target columns will be...more >>

database design for fast client updates
Posted by T.H.N. at 3/29/2006 2:24:43 PM
I'm trying to work out a database design to make it quicker for my client program to read and display updates to the data set. Currently it reads in the entire data set again after each change, which was acceptable when the data set was small but now it's large enough to start causing noticable ...more >>

Hiding NULL
Posted by jim_geissman NO[at]SPAM countrywide.com at 3/29/2006 9:43:16 AM
In SQL 2000 Query Analyzer, you can set up the text output pane to leave null values blank. That could give you this (assuming it's set to comma-delimited) -- CREATE TABLE #Test (A int, B int) INSERT #Test SELECT 1,2 INSERT #Test SELECT NULL,4 INSERT #Test SELECT 5,NULL INSERT #Test SELEC...more >>

Optimizing SQL - Union
Posted by das at 3/29/2006 9:02:18 AM
Hello all, I have a table with thousands of rows and is in this format: id col1 col2 col3 col4 --- ------ ----- ------ ------ 1 nm 78 xyz pir 2 bn 45 abc dir I now want to get the data from this table in this format: fiel...more >>

speeding up inserts
Posted by zelnaga NO[at]SPAM gmail.com at 3/29/2006 7:25:25 AM
according to the mysql manual, multiple inserts can be sped up by locking the table before doing them and unlocking the table afterwards. is the same true of multiple inserts in mysql? if so, how would the table be locked? any insights would be appreciated - thanks! ...more >>

Down and dirty database infrastructure
Posted by Beeker at 3/29/2006 6:41:21 AM
Does any have a link, or know of an MS book(s) that details the underlying database structure, tables, processes? Something that explains in detail how/why this stuff is configured and works, like DDL, TDS, varchar, int, index, tables, normalization, DML, Primary Key/Foreign key. ...more >>

2005:how to find installed assemblies
Posted by LLik at 3/29/2006 6:10:48 AM
Did this as a exercise and am fed up with my fruitless searching. Went and create an CLR assembly and all with min hassel. Now that I have that dll out there, I am tring to find some system table or some display in management studio that shows me where the file is located on the hard drive an...more >>

Stored procedure with unknown numer of paramters, how?
Posted by Igor at 3/29/2006 2:27:03 AM
I have one table with categories tblCategories cat_id | cat_name ----------------- 1 | cat 1 2 | cat 2 3 | cat 3 4 | cat 4 5 | cat 5 6 | cat 6 and one table with projects which relates to tblCategories tblProjects proj_id | pr...more >>

Problem with a join due to multiple Nulls
Posted by chudson007 NO[at]SPAM hotmail.com at 3/29/2006 1:40:10 AM
I want to join 2 tables by a unique ID field, but the ID field also has multiple NULLS which I do not want to ignore and I fear they will cause duplication. Using TableA and TableB below i will demonstrate the problem. TableA TableA.ID Field1 Field2 1 Paul 1 Null John 1 ...more >>


DevelopmentNow Blog