Groups | Blog | Home


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
August 2008


all groups > sql server programming > july 2004 > threads for sunday july 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

create a relationship between two tables in two different databases
Posted by Raanan Avidor at 7/18/2004 10:30:07 PM
Hi. I need to move some tables to a separate database. Is it possible to create a relationship between two tables in two different databases? Thank you. R a a n a n . ...more >>

Adjacency List and nested set -- J celko example -- Guru needed
Posted by Martin at 7/18/2004 9:46:14 PM
Hi, I am designing a tree structure in my database and I found nearly the perfect solution to my problem at http://www.intelligententerprise.com/001020/celko1_2.jhtml The only problem is I can't get it to work (at least not perfectly) in sql server. I am basically trying to produce a nested...more >>

How to find SQL Licensing shceme
Posted by Lontae Jones at 7/18/2004 9:29:01 PM
Is there a Query to find the licesnse scheme that SQl is using? Per procesor or per seat and does it give a quantity? If not I have an NT SQL server7 that says per seat and doesnt give a count. Trying to find the count of all SQL licenses in my enviorment. I the little applet in the control ...more >>

stored procedure performance
Posted by Guoqi Zheng at 7/18/2004 9:27:48 PM
Sir, I am a little confused. I have an asp.net application, it is a forum site, in order to have a page navigation, I need to get the value of how many pages in total. I used a stored procedure to do this job. However, I found out that this sp always takes about 10 seconds to execute according...more >>

Similar but not exact industry needs
Posted by Earl at 7/18/2004 9:18:35 PM
I'm writing an app that can be used with some modifications in different markets. I can vary the differences in the app using .ini files, registry entries, etc., but I'm not sure about whether to create a new database design per industry. The current design has approximately 20-30% of the tables...more >>

Comments from the columns
Posted by Laurel at 7/18/2004 6:47:18 PM
Pretty simple I am sure. I ahve a table with comments and have commented all the columns. I am trying to create a view that renders the following columns TABLE, TABLE COMMENT, COLUMN, DATA TYPE,LENGTH,COLUMN COMMENT. What I have is way off... any help would be appreciated. Laurel S...more >>

Primary key with or without?
Posted by Viktor Popov at 7/18/2004 6:33:20 PM
Hi, What do you thing? Is it better every tbale to have Primary Key or it depends on something? I have a table SearchTBL --------------- UserID(FK to UserTBL) EstateID(FK to EstatesTBL) Pice Romms Floor Do I have to have a Primary KEY? And also if I use Primary Key in general m...more >>

query help
Posted by Alex at 7/18/2004 5:27:03 PM
Hi again... For a user and a list of dates, I need a count for each date for each table where the tables are donordonations, donorneeds, and donorgifts. The output would be something like this: Productivity Report User: Joe Date Range: 1/1/04 to 1/3/04 Date Donations Prayer Requests ...more >>



Creating a New Field with a CHAR field and a FLOAT field.
Posted by David C at 7/18/2004 4:32:51 PM
Hi All, I seem to be stumped at the moment, All I would like to do is join a Customer Name field (CHAR) with a Customer Number field (FLOAT) to get something like this "Joe Bloggs - 998477771". When I try to do this the CONVERT or CAST function stuffs up my FLOAT field giving me strange ...more >>

Trigger for updated rows when PK changed
Posted by John at 7/18/2004 4:06:53 PM
Does anyone know of a way to discover before and after values in a AFTER UPDATE trigger when the primary key has changed?? I need this to work with multi-rows too! I'm familiar with the 'inserted i inner join deleted d on i.pk = d.pk' technique for seeing 'before' and 'after' values, but of co...more >>

Passing column name to UDF
Posted by TomTom at 7/18/2004 11:45:40 AM
Hi! Is there a good way to pass a column name to a UDF and use the column name in the SELECT statement in the function? Because I cannot use EXECUTE in UDFs like below, I don't know how I can do it. CREATE FUNCTION dbo.myfunc(@columnname nvarchar(100) ) RETURNS TABLE AS RETURN(EXECUTE('...more >>

DB construction->too complicated queries
Posted by viketo at 7/18/2004 11:12:55 AM
Hi all! I have a problem with implementing something....Actually I realize what I want, but it is too complicated. My DB looks like that: UsersTable ------------ UserID(PK) | UserName | Password | Name | Addr | E-mail | UsrType | Role | LastLogOn EstatesTbale ----------- EstateID(PK) ...more >>

Query blocking insert?
Posted by guy at 7/18/2004 5:48:58 AM
Using MS SQL Server 7 I have a long running query which joins two tables with a group by. These tables have millions of rows. Any insert to the tables in the query will become blocked until the query ends. 1. How do I avoid this kind of blocking? 2. Will an upgrade tp SQL2K help? ...more >>

Enumerate SQL Server 2K/MSDE Named Instances
Posted by Michael C at 7/18/2004 3:51:24 AM
Hi all, I am currently using a Win32 API call to NetServerEnum to enumerate all SQL Servers on an NT Domain. The function returns the names of all servers running SQL Server on the network, but it doesn't return any SQL Server/MSDE named instances. Does anyone have any ideas on how to enumer...more >>

XML for DSNs
Posted by Michael C at 7/18/2004 3:46:33 AM
Hi all, Does anyone know if there is an XML DTD or XML Schema for DSNs? Specifically I'm writing an app to export ODBC DSN settings from the registry to an XML file. I can easily create my own DTD, but obviously don't want to reinvent the wheel... and if there is a standard out there that wi...more >>

Generate Email
Posted by Khurram Chaudhary at 7/18/2004 2:05:57 AM
Hi, I want to be able to send emails out to users. We're developing our app in ASP.NET using SQL 2000 however, is there any way to have the template (for the body of the email) reside in the DB but have ASP.NET parse the template? For example: DB - Hello [firstName]: Thank you .... A...more >>

Changing DB?
Posted by viketo at 7/18/2004 12:09:18 AM
Thank you for the reply, David! My DB looks like that, because I have one more table : SearchTable ----------------- EstateID(FK) UserID(FK) MinValue MaxValue ParamID(FK) and the others: UsersTable ------------ UserID(PK) | UserName | Password | Name | Addr | E-mail | UsrType ...more >>


DevelopmentNow Blog