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 > may 2004 > threads for sunday may 16

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

ISOLATION LEVEL setting at different trancounts
Posted by Peter at 5/16/2004 8:16:04 PM
When the client code calls a Stored Procedure (SP), a new connection is created. The first thing I typically do inside the SP is to do the BEGIN TRAN SET TRANSACTION ISOLATOIN LEVEL <value ....<sp code Now, if the current SP calls another SP and I also do define a new transaction (BEGIN TRAN, S...more >>


Create query - a question for guru.
Posted by Just D at 5/16/2004 5:18:15 PM
Hi, I'm having a table like: ID [int], PK, NOT NULL, Plan [int], NOT NULL, Description [varchar (50)], NOT NULL, Amount [varchar (50)], NULL, LastUpdate [smalldatetime], NOT NULL I need to create ...more >>

Trees as Sets
Posted by we.aver NO[at]SPAM verizon.net at 5/16/2004 3:01:06 PM
Having read Joe Celko's book 'SQL for Smarties' and a posting here from 2001, I certainly appreciate the elegence of using the set concept for representing a tree structure in SQL. However, the project that I'm working on requires that the user be able to specify that a particular node be a par...more >>

Problems with using a calculated value in my WHERE clause
Posted by Laphan at 5/16/2004 1:04:57 PM
Hi All If I run the below query: SELECT s.THUMBPIC, sd.STOCKNAME, s.STOCKID, sm.MANUNAME, s.QTYINSTOCK, (sp.NETAMOUNT + sp.TAXAMOUNT) AS PRICE FROM STOCK s, STOCKDESCS sd, STOCKMANUFACTURERS sm, STOCKPRICES sp WHERE s.STOCKID=sd.STOCKID AND s.MANUID=sm.MANUID AND s.STOCKID=sp.STOCKID AND sd...more >>

Server B accessing Server A
Posted by Mac Davis at 5/16/2004 10:49:23 AM
Given server A & server B Server A is Server 20003 Web Edition SQL Server 2000 Server B on Server 20003 SQL Server 2000 Both servers have database "dog" with the same tables I would like to periodically run a stored procedure on Server B that deletes the tables in database "dog" and then re...more >>

Performance Issues
Posted by johnshines NO[at]SPAM hotmail.com at 5/16/2004 9:59:09 AM
I'm not a SQL DBA, but I've inheritied quite a mess. Based on a ton of research I was able to dig out some information on our SQL 2000 database. Apparently, the design was to use varchars for almost 70% of the database. Is this one reason for the performance issues? All I see are varchar 25...more >>

Need help understanding ADO Command execution of SP
Posted by Larry Woods at 5/16/2004 9:39:59 AM
I have an SP with one input param (SP simplified): SP dbo.blah ( @IN ) DELETE * FROM tbl WHERE x=y // DELETE does not need value of @IN SELECT * FROM tbl WHERE ABC=@IN GO I created and appended a parameter before executing the ADO Command. But, when I execute this SP using an ADO Co...more >>

Issue w/ accessing an User Defined Function across LInked Servers
Posted by sh2os NO[at]SPAM comcast.net at 5/16/2004 8:48:16 AM
I was wondering if anyone has had an issue with accessing User Defined Functions(UDFs) across Linked Servers. I created a UDF on Server A and I want to use it in a Join on Server B inside a stored procedure. When I try to access the UDF on Server B, I get a syntax error referring to the parenthe...more >>



Deadlock
Posted by Maryam Teimourian at 5/16/2004 3:16:04 AM
H I want to execute these statements in a transaction SET TRANSACTION ISOLATION LEVEL READ COMMITTE BEGIN TRA TRUNCATE TABLE T G BULK INSERT T1 .. G T1 has foreign key with T2.Executing these statements cause in deadlock but when I delete the foreign key no deadlock error happens.How can I ...more >>

DB name as parameter
Posted by Ziv Riezman at 5/16/2004 3:01:05 AM
Hi Al I'm writhing an application with two SQL SERVER Database the name of the two db's can change, My question is how to execute a SP in other D when the DB name is a paramter that the SP get (the EXEC command is not a good solution) Thabks in Adncance Ziv Riezman ...more >>

Executing SQL query from a VB application
Posted by Bhavtosh at 5/16/2004 1:01:05 AM
Hello all im writing an automation application in VB in which i want to implement if have a SQL query in a multi text box and a button which when clicked i want to display the results of that query in a grid in a new window how can i achieve this? pls suggest TI bhavtosh...more >>

Pleasehelp - Having problem getting correct results linking tables (JOIN related)
Posted by Learner at 5/16/2004 12:34:20 AM
Hi, I have 2 tables as follows: CREATE TABLE [PlannedSales] ( [PlanYear] [smallint] , [PlanMonth] [smallint] , [PlanProdCode] [nvarchar] (20) , [PlanQty] [numeric](28, 8) , [PlanAmt] [money] ) ON [PRIMARY] GO CREATE TABLE [ActualSales] ( [SaleYear] [smallint] , [SaleMon...more >>


DevelopmentNow Blog